Skip to main content

Interface: SOCWriter

Defined in: bee-js/src/types/index.ts:498

Interface for downloading and uploading single owner chunks

Extends​

Properties​

download()​

download: (identifier) => Promise<SingleOwnerChunk>

Defined in: bee-js/src/types/index.ts:492

Downloads a single owner chunk

Parameters​

identifier​

The identifier of the chunk

string | Uint8Array<ArrayBufferLike> | Identifier

Returns​

Promise<SingleOwnerChunk>

Inherited from​

SOCReader.download


owner​

readonly owner: EthAddress

Defined in: bee-js/src/types/index.ts:486

Inherited from​

SOCReader.owner


upload()​

upload: (stamp, identifier, data, options?) => Promise<UploadResult>

Defined in: bee-js/src/types/index.ts:506

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?​

ChunkUploadOptions

Upload options

Returns​

Promise<UploadResult>

💬 Get Help