Interface: SOCWriter
Interface for downloading and uploading single owner chunks
Hierarchy
↳
SOCWriter
Properties
owner
• Readonly
owner: HexEthAddress
Inherited from
Defined in
Methods
download
▸ download(identifier
): Promise
<SingleOwnerChunk
>
Downloads a single owner chunk
Parameters
Name | Type | Description |
---|---|---|
identifier | Identifier | The identifier of the chunk |
Returns
Promise
<SingleOwnerChunk
>
Inherited from
Defined in
upload
▸ upload(postageBatchId
, identifier
, data
, options?
): Promise
<Reference
>
Uploads a single owner chunk
Parameters
Name | Type | Description |
---|---|---|
postageBatchId | string | BatchId | - |
identifier | Identifier | The identifier of the chunk |
data | Uint8Array | The chunk payload data |
options? | UploadOptions | Upload options |
Returns
Promise
<Reference
>