@etherna/sdk-js
Version:
Etherna SDKs for operations on the network
27 lines • 1.2 kB
TypeScript
import type { BeeClient } from ".";
import type { RequestOptions } from "..";
import type { BatchId, PostageBatch, PostageBatchBucketsData } from "./types";
export declare class Stamps {
private instance;
constructor(instance: BeeClient);
create(depth?: number, amount?: bigint | string, label?: string, options?: RequestOptions): Promise<BatchId>;
download(batchId: BatchId, options?: RequestOptions): Promise<PostageBatch>;
downloadBuckets(batchId: BatchId, options?: RequestOptions): Promise<PostageBatchBucketsData>;
downloadAll(labelQuery?: string, options?: RequestOptions): Promise<PostageBatch[]>;
fetchBestBatchId(): Promise<BatchId>;
/**
* Topup batch (increase TTL)
*
* @param batchId Id of the swarm batch
* @param byAmount Amount to add to the batch
*/
topup(batchId: BatchId, byAmount: bigint | string, options?: RequestOptions): Promise<boolean>;
/**
* Dillute batch (increase size)
*
* @param batchId Id of the swarm batch
* @param depth New depth of the batch
*/
dilute(batchId: BatchId, depth: number, options?: RequestOptions): Promise<boolean>;
}
//# sourceMappingURL=stamps.d.ts.map