@etherna/sdk-js
Version:
Etherna SDKs for operations on the network
22 lines • 973 B
TypeScript
import type { BeeClient } from ".";
import type { RequestOptions } from "..";
import type { ContentAddressedChunk, EthAddress, RequestUploadOptions, SingleOwnerChunk } from "./types";
export declare class Soc {
private instance;
constructor(instance: BeeClient);
download(identifier: Uint8Array, ownerAddress: EthAddress, options?: RequestOptions): Promise<SingleOwnerChunk>;
upload(identifier: Uint8Array, data: Uint8Array, options: RequestUploadOptions): Promise<{
reference: import("./types").Reference;
}>;
/**
* Creates a single owner chunk object
*
* @param chunk A chunk object used for the span and payload
* @param identifier The identifier of the chunk
*/
makeSingleOwnerChunk(chunk: ContentAddressedChunk, identifier: Uint8Array): Promise<SingleOwnerChunk>;
private makeSOCAddress;
private makeSingleOwnerChunkFromData;
private recoverChunkOwner;
}
//# sourceMappingURL=soc.d.ts.map