Skip to main content

Interface: FeedWriter

FeedWriter is an interface for updating feeds

Hierarchy

Properties

owner

Readonly owner: HexEthAddress

Inherited from

FeedReader.owner

Defined in

bee-js/src/types/index.ts:406


topic

Readonly topic: Topic

Inherited from

FeedReader.topic

Defined in

bee-js/src/types/index.ts:407


type

Readonly type: "sequence" | "epoch"

Inherited from

FeedReader.type

Defined in

bee-js/src/types/index.ts:405

Methods

download

download(options?): Promise<FetchFeedUpdateResponse>

Download the latest feed update

Parameters

NameType
options?FeedUpdateOptions

Returns

Promise<FetchFeedUpdateResponse>

Inherited from

FeedReader.download

Defined in

bee-js/src/types/index.ts:411


upload

upload(postageBatchId, reference, options?): Promise<Reference>

Upload a new feed update

Parameters

NameTypeDescription
postageBatchIdstring | BatchIdPostage BatchId to be used to upload the data with
referenceReference | BytesReferenceThe reference to be stored in the new update
options?FeedUploadOptionsAdditional options like at

Returns

Promise<Reference>

Reference that points at Single Owner Chunk that contains the new update and pointer to the updated chunk reference.

Defined in

bee-js/src/types/index.ts:443