@etherna/sdk-js
Version:
Etherna SDKs for operations on the network
30 lines • 976 B
TypeScript
import type { EthernaGatewayClient } from ".";
import type { BatchId, RequestOptions } from "..";
import type { GatewayChainState } from "./types";
export declare class SystemClient {
private instance;
constructor(instance: EthernaGatewayClient);
/**
* Get the current byte price
*
* @param opts Request options
* @returns Dollar price per single byte
*/
fetchCurrentBytePrice(opts?: RequestOptions): Promise<number>;
/**
* Get the current chain state
*
* @param opts Request options
* @returns chain state object
*/
fetchChainstate(opts?: RequestOptions): Promise<GatewayChainState>;
/**
* Fetch creation batch id
*
* @param referenceId Reference id of the batch
* @param opts Request options
* @returns The created batch id if completed
*/
fetchPostageBatchRef(referenceId: string, opts?: RequestOptions): Promise<BatchId>;
}
//# sourceMappingURL=system.d.ts.map