MystenLabs / MystenLabs/walrus
Set attribute (metadata) when storing
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 420
- Forks
- 136
- Avg merge
- 19h
- Merged PRs (30d)
- 29
Description
Description
Feature
Currently, the Walrus CLI requires two separate steps to store a blob and then set its attributes.
I’d like to request support for setting attributes at the time of blob creation, ideally using the HTTP API.
Use case
We're uploading images and need to set the content-type and content-disposition attributes for each blob so that we can display images from the aggregator inside web pages.
Docs
Having docs for the metadata module would help other developers better understand and interact with the protocol's on-chain metadata structure.
We could, for example, use a PTB to set the metadata for multiple blobs at a time.
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Walrus CLI's blob-creation flow and the HTTP API, then review the metadata module and its on-chain structure. Done means blob creation can set content-type and content-disposition attributes, with documentation explaining the metadata module and support for setting metadata for multiple blobs through a PTB.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, blockchain, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100