Interface: SOCWriter
Defined in: bee-js/src/types/index.ts:439
Interface for downloading and uploading single owner chunks
Extends
Properties
download()
download: (
identifier) =>Promise<SingleOwnerChunk>
Defined in: bee-js/src/types/index.ts:433
Downloads a single owner chunk
Parameters
identifier
The identifier of the chunk
string | Uint8Array<ArrayBufferLike> | Identifier
Returns
Promise<SingleOwnerChunk>
Inherited from
owner
readonlyowner:EthAddress
Defined in: bee-js/src/types/index.ts:427
Inherited from
upload()
upload: (
stamp,identifier,data,options?) =>Promise<UploadResult>
Defined in: bee-js/src/types/index.ts:447
Uploads a single owner chunk
Parameters
stamp
string | Uint8Array<ArrayBufferLike> | BatchId
identifier
The identifier of the chunk
string | Uint8Array<ArrayBufferLike> | Identifier
data
Uint8Array
The chunk payload data
options?
Upload options
Returns
Promise<UploadResult>