Skip to main content

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

SOCReader.download


owner

readonly owner: EthAddress

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

Inherited from

SOCReader.owner


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?

UploadOptions

Upload options

Returns

Promise<UploadResult>

💬 Get Help