Skip to main content

Class: Soc

Defined in: bee-js/src/modules/soc.ts:11

Single owner chunk (SOC) reader/writer operations.

Accessed as bee.soc.

Constructors

Constructor

new Soc(context): Soc

Defined in: bee-js/src/modules/soc.ts:12

Parameters

context

BeeContext

Returns

Soc

Methods

makeReader()

makeReader(ownerAddress, requestOptions?): SOCReader

Defined in: bee-js/src/modules/soc.ts:20

Returns an object for reading single owner chunks.

Parameters

ownerAddress

The ethereum address of the owner

string | Uint8Array<ArrayBufferLike> | EthAddress

requestOptions?

BeeRequestOptions

Options for making requests, such as timeouts, custom HTTP agents, headers, etc.

Returns

SOCReader


makeWriter()

makeWriter(signer?, requestOptions?): SOCWriter

Defined in: bee-js/src/modules/soc.ts:35

Returns an object for reading and writing single owner chunks.

Parameters

signer?

The signer's private key. Falls back to the Bee instance signer.

string | Uint8Array<ArrayBufferLike> | PrivateKey

requestOptions?

BeeRequestOptions

Options for making requests, such as timeouts, custom HTTP agents, headers, etc.

Returns

SOCWriter

💬 Get Help