-
Notifications
You must be signed in to change notification settings - Fork 0
Description
CLI allows to add and remove blob-attributes which is not realized in HTTP API
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>.