Interface: FeedWriter
Defined in: bee-js/src/types/index.ts:392
FeedWriter is an interface for updating feeds
Extends
Properties
owner
readonly
owner:EthAddress
Defined in: bee-js/src/types/index.ts:370
Inherited from
topic
readonly
topic:Topic
Defined in: bee-js/src/types/index.ts:371
Inherited from
Methods
download()
download(
options?
):Promise
<FeedPayloadResult
>
Defined in: bee-js/src/types/index.ts:376
Parameters
options?
FeedUpdateOptions
Returns
Promise
<FeedPayloadResult
>
Deprecated
Use downloadReference
or downloadPayload
instead to disambiguate how the data should be interpreted.
Inherited from
downloadPayload()
downloadPayload(
options?
):Promise
<FeedPayloadResult
>
Defined in: bee-js/src/types/index.ts:386
Downloads the feed update (latest if no index is specified) and returns it as a payload.
Parameters
options?
FeedUpdateOptions
Returns
Promise
<FeedPayloadResult
>
Inherited from
downloadReference()
downloadReference(
options?
):Promise
<FeedReferenceResult
>
Defined in: bee-js/src/types/index.ts:381
Downloads the feed update (latest if no index is specified) and returns it as a reference.
Parameters
options?
FeedUpdateOptions
Returns
Promise
<FeedReferenceResult
>
Inherited from
upload()
upload(
postageBatchId
,reference
,options?
):Promise
<UploadResult
>
Defined in: bee-js/src/types/index.ts:404
Upload a new feed update
Parameters
postageBatchId
Postage BatchId to be used to upload the data with
string
| BatchId
reference
The reference to be stored in the new update
string
| Uint8Array
<ArrayBufferLike
> | Reference
options?
FeedUploadOptions
Additional options like at
Returns
Promise
<UploadResult
>
UpdateResult that points at Single Owner Chunk that contains the new update and pointer to the updated chunk reference.
Deprecated
Use uploadReference
or uploadPayload
instead to disambiguate how the data should be interpreted.
uploadPayload()
uploadPayload(
postageBatchId
,payload
,options?
):Promise
<UploadResult
>
Defined in: bee-js/src/types/index.ts:416