Skip to content

There is no attributes functionality in client HTTP API #6

@padzei

Description

@padzei

CLI allows to add and remove blob-attributes which is not realized in HTTP API

Blob attributes

Walrus allows a set of key-value attribute pairs to be associated with a blob object. While the key and values may be arbitrary strings to accommodate any needs of dapps, specific keys are converted to HTTP headers when serving blobs through aggregators. Each aggregator can decide which headers it allows through the --allowed-headers CLI option; the defaults can be viewed through walrus aggregator --help.

walrus set-blob-attribute <BLOB_OBJ_ID> --attr "key1" "value1" --attr "key2" "value2"
sets attributes key1 and key2 to values value1 and value2, respectively. The command walrus get-blob-attribute <BLOB_OBJ_ID> returns all attributes associated with a blob ID. Finally,

walrus remove-blob-attribute-fields <BLOB_OBJ_ID> --keys "key1,key2"
deletes the attributes with keys listed (separated by commas or spaces). All attributes of a blob object may be deleted by the command walrus remove-blob-attribute <BLOB_OBJ_ID>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions