@etherna/sdk-js
Version:
Etherna SDKs for operations on the network
44 lines • 1.26 kB
TypeScript
import { Auth } from "./auth";
import { Bytes } from "./bytes";
import { Bzz } from "./bzz";
import { ChainState } from "./chainstate";
import { Chunk } from "./chunk";
import { Feed } from "./feeds";
import { Pins } from "./pins";
import { Soc } from "./soc";
import { Stamps } from "./stamps";
import { Tags } from "./tags";
import type { PostageBatch, Reference, Signer } from "./types";
import type { AxiosInstance } from "axios";
export interface BeeClientOptions {
signer?: Signer | string;
postageBatches?: PostageBatch[];
axios?: AxiosInstance;
}
export declare class BeeClient {
url: string;
signer?: Signer;
request: AxiosInstance;
auth: Auth;
bytes: Bytes;
bzz: Bzz;
chainstate: ChainState;
chunk: Chunk;
feed: Feed;
pins: Pins;
soc: Soc;
stamps: Stamps;
tags: Tags;
postageBatches: PostageBatch[];
constructor(url: string, opts?: BeeClientOptions);
updateSigner(signer: Signer | string): void;
/**
* Check if an hash is a valid swarm hash
*
* @param hash Hash string
* @returns True if the hash is valid
*/
static isValidHash(hash: string): hash is Reference;
isValidHash(hash: string): boolean;
}
//# sourceMappingURL=index.d.ts.map