Interface: FeedWriter
FeedWriter is an interface for updating feeds
Hierarchy
↳
FeedWriter
Properties
owner
• Readonly
owner: HexEthAddress
Inherited from
Defined in
topic
• Readonly
topic: Topic
Inherited from
Defined in
type
• Readonly
type: "sequence"
| "epoch"
Inherited from
Defined in
Methods
download
▸ download(options?
): Promise
<FetchFeedUpdateResponse
>
Download the latest feed update
Parameters
Name | Type |
---|---|
options? | FeedUpdateOptions |
Returns
Promise
<FetchFeedUpdateResponse
>
Inherited from
Defined in
upload
▸ upload(postageBatchId
, reference
, options?
): Promise
<Reference
>
Upload a new feed update
Parameters
Name | Type | Description |
---|---|---|
postageBatchId | string | BatchId | Postage BatchId to be used to upload the data with |
reference | Reference | BytesReference | The reference to be stored in the new update |
options? | FeedUploadOptions | Additional 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.