Skip to main content

Interface: SOCWriter

Interface for downloading and uploading single owner chunks

Hierarchy

Properties

owner

Readonly owner: HexEthAddress

Inherited from

SOCReader.owner

Defined in

bee-js/src/types/index.ts:454

Methods

download

download(identifier): Promise<SingleOwnerChunk>

Downloads a single owner chunk

Parameters

NameTypeDescription
identifierIdentifierThe identifier of the chunk

Returns

Promise<SingleOwnerChunk>

Inherited from

SOCReader.download

Defined in

bee-js/src/types/index.ts:460


upload

upload(postageBatchId, identifier, data, options?): Promise<Reference>

Uploads a single owner chunk

Parameters

NameTypeDescription
postageBatchIdstring | BatchId-
identifierIdentifierThe identifier of the chunk
dataUint8ArrayThe chunk payload data
options?UploadOptionsUpload options

Returns

Promise<Reference>

Defined in

bee-js/src/types/index.ts:474