Interface: FeedWriter
Defined in: bee-js/src/types/index.ts:451
FeedWriter is an interface for updating feeds
Extends
Properties
owner
readonlyowner:EthAddress
Defined in: bee-js/src/types/index.ts:429
Inherited from
topic
readonlytopic:Topic
Defined in: bee-js/src/types/index.ts:430
Inherited from
Methods
download()
download(
options?):Promise<FeedPayloadResult>
Defined in: bee-js/src/types/index.ts:435
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:445
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:440
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:463
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:475
Parameters
postageBatchId
string | BatchId
payload
string | Uint8Array<ArrayBufferLike>
options?
FeedUploadOptions
Returns
Promise<UploadResult>
uploadReference()
uploadReference(
postageBatchId,reference,options?):Promise<UploadResult>
Defined in: bee-js/src/types/index.ts:469
Parameters
postageBatchId
string | BatchId
reference
string | Uint8Array<ArrayBufferLike> | Reference
options?
FeedUploadOptions
Returns
Promise<UploadResult>