
Skill
walrus-http-api
store and read Walrus blobs via HTTP
Description
Walrus publisher and aggregator REST API for storing and reading blobs over HTTP. Use when the user needs to store or read Walrus blobs using HTTP PUT/GET requests, integrate Walrus from any programming language, configure storage options (epochs, deletable, permanent, send_object_to), or parse store/read API responses. Also use when troubleshooting HTTP API errors or CDN caching issues after upload. For quilt HTTP endpoints, see the `walrus-quilts` skill. For CLI usage, see `walrus-cli`.
SKILL.md
Walrus HTTP API
Source constraint: All information in this skill is sourced from the Walrus HTTP API documentation. When extending this skill, only pull from these sources.
Walrus exposes a REST API through publisher (write) and aggregator (read) services. This is the simplest integration path for any language: store blobs with HTTP PUT, read them with HTTP GET. No SDK installation required.
All patterns in this skill are derived from:
If unsure about any endpoint, fetch the relevant page before answering.
Related skills
| Topic | Skill | Load when |
|---|---|---|
| Quilt HTTP endpoints | walrus-quilts | Storing/reading batched blobs through HTTP |
| CLI | walrus-cli | Using the walrus binary instead of HTTP |
| TypeScript SDK | walrus-ts-sdk | Using the official TS SDK |
| Blob management | walrus-blob-lifecycle | Extending, deleting, or sharing blobs |
| Encryption | walrus-data-security | Encrypting before storing |
Skill Content
Key concepts
- Publisher. An HTTP service that accepts blob data and handles encoding, sliver distribution, and on-chain registration. You PUT data to a publisher to store it. There is no public unauthenticated publisher on Mainnet. On Mainnet, run your own authenticated publisher, use the upload relay, or use the TypeScript SDK directly. Public publisher endpoints exist only for Testnet.
- Aggregator. An HTTP service that reads blobs from Walrus storage nodes and returns them via GET requests. Aggregators are read-only and can be fronted by a CDN.
- Blob ID vs object ID. A blob ID identifies the content. A Sui object ID identifies the on-chain
Blobobject. You can read by either. Reading by object ID also supports HTTP header attributes. - Consistency checks. The aggregator verifies blob integrity on read. You can enable strict checks with
?strict_consistency_check=trueor skip them with?skip_consistency_check=trueif the writer is known and trusted.
Storing blobs (publisher)
Store data using HTTP PUT to the publisher:
# Store a string for 1 epoch (default)
curl -X PUT "$PUBLISHER/v1/blobs" -d "some string"
# Store a file for 5 epochs
curl -X PUT "$PUBLISHER/v1/blobs?epochs=5" --upload-file "some/file"
Query parameters
| Parameter | Effect | Default |
|---|---|---|
epochs | Number of storage epochs | 1 |
deletable=true | Blob can be deleted by owner before expiry | Default for new blobs |
permanent=true | Blob cannot be deleted before expiry | Must be explicit |
send_object_to | Send the resulting Blob Sui object to another address | Sender's address |
# Store as permanent for 5 epochs
curl -X PUT "$PUBLISHER/v1/blobs?epochs=5&permanent=true" --upload-file "file.dat"
# Store and send the blob object to another address
curl -X PUT "$PUBLISHER/v1/blobs?send_object_to=$ADDRESS" --upload-file "file.dat"
Store response: newly created
When a blob is stored for the first time:
{
"newlyCreated": {
"blobObject": {
"id": "0xe91e...c50",
"registeredEpoch": 34,
"blobId": "M4hsZGQ1oCktdzegB6HnI6Mi28S2nqOPHxK-W7_4BUk",
"size": 17,
"encodingType": "RS2",
"certifiedEpoch": 34,
"storage": {
"id": "0x4748...5faf",
"startEpoch": 34,
"endEpoch": 35,
"storageSize": 66034000
},
"deletable": false
},
"resourceOperation": {
"registerFromScratch": {
"encodedLength": 66034000,
"epochsAhead": 1
}
},
"cost": 132300
}
}
Store response: already certified
When identical content already exists with sufficient lifetime:
{
"alreadyCertified": {
"blobId": "M4hsZGQ1oCktdzegB6HnI6Mi28S2nqOPHxK-W7_4BUk",
"event": {
"txDigest": "4XQHFa9S324wTzYHF3vsBSwpUZuLpmwTHYMFv9nsttSs",
"eventSeq": "0"
},
"endEpoch": 35
}
}
The event field contains the Sui event ID you can use to find the transaction on Suiscan.
Reading blobs (aggregator)
Read blobs using HTTP GET from an aggregator:
# Read by blob ID
curl "$AGGREGATOR/v1/blobs/<BLOB_ID>" -o output.file
# Read by Sui object ID (also returns HTTP header attributes)
curl "$AGGREGATOR/v1/blobs/by-object-id/<OBJECT_ID>" -o output.file
Reading by object ID recognizes these attribute keys and returns them as HTTP headers: content-disposition, content-encoding, content-language, content-location, content-type, and link.
Publisher, aggregator, and upload relay: which to use
| Service | Direction | Mainnet availability | Wallet needed |
|---|---|---|---|
| Publisher | Write (PUT) | No public publisher. Run your own or use upload relay / SDK. | Yes (WAL + SUI) |
| Upload relay | Write (PUT) | https://upload-relay.mainnet.walrus.space | Yes (WAL + SUI + optional tip) |
| Aggregator | Read (GET) | Many public aggregators, no fees, no wallet needed. | No |
- Mainnet aggregator (Mysten Labs):
https://aggregator.walrus-mainnet.walrus.space - Testnet aggregator (Mysten Labs):
https://aggregator.walrus-testnet.walrus.space - Testnet publisher (Mysten Labs):
https://publisher.walrus-testnet.walrus.space
The full list of public aggregators is available at docs.wal.app/operators.json (JSON) and the public services page. Public aggregators set CORS headers, so browser-based reads work directly.
Querying system info
# Get current epoch, storage cost, and network parameters
curl "$AGGREGATOR/v1/info"
Returns epoch number, epoch duration, and system parameters. Useful for calculating costs and checking the current epoch before setting epochs on a store request.
Rules
- No public Mainnet publisher. On Mainnet, run your own authenticated publisher or use the TypeScript SDK/upload relay. Public endpoints are Testnet only.
- New blobs are deletable by default. Explicitly set
permanent=trueif you need guaranteed availability. - Retry reads after immediate upload. CDN-fronted aggregators might briefly cache a 404 from before the blob propagated. Retry with backoff.
- Use blob ID for content reads, object ID for attributed reads. Reading by object ID returns custom HTTP headers from blob attributes. Reading by blob ID does not.
- Check the response type. A store response is either
newlyCreatedoralreadyCertified. Both are success cases.
Common mistakes
- Assuming a public publisher exists on Mainnet. It does not. You must run your own, use an upload relay, or use the TypeScript SDK directly. The upload relay at
https://upload-relay.mainnet.walrus.spaceis the easiest mainnet write path. - Not checking for
alreadyCertifiedin the response. The publisher returns this when identical content already has sufficient lifetime. This is not an error. - Reading immediately after storing and getting 404. CDN caching can cause brief 404s. Retry with backoff.
- Omitting
epochsand getting 1-epoch storage. The default is 1 epoch. Always setepochsexplicitly. - Confusing publisher and aggregator roles. Publishers store (PUT). Aggregators read (GET). They are separate services with different URLs.
- Getting
413 Payload Too Largeon a publisher. Some publishers limit upload size (for example, 10 MiB for public testnet publishers). For large files, use the CLI, the TypeScript SDK, or run your own publisher. - Wondering why
storageSizeis ~66 MB for a tiny blob. Walrus adds ~64 MB of fixed per-blob metadata overhead regardless of blob size. For blobs smaller than ~10 MB, metadata cost dominates. Use quilts for many small blobs. - Using old aggregator URLs.
aggregator.walrus.siteandaggregator.devnet.walrus.spaceare outdated. Useaggregator.walrus-mainnet.walrus.spacefor mainnet oraggregator.walrus-testnet.walrus.spacefor testnet.
More skills from the walrus-skills repository
View all 11 skillswalrus-blob-lifecycle
manage Walrus blob lifecycles
Jul 16StorageSuiWeb3walrus-cli
manage Walrus blobs via CLI
Jul 16CLIStorageSuiwalrus-data-security
encrypt and store data on Walrus
Jul 16Access ControlEncryptionSecurityStorage +1walrus-memory
integrate persistent memory with Walrus
Jul 29AgentsEncryptionMemorySuiwalrus-move-integration
integrate Walrus blobs in Sui Move
Jul 16Smart ContractsStorageSuiwalrus-overview
provide overview of Walrus storage
Jul 16DocumentationStorageSui
More from Sui (Mysten Labs)
View publishermove-bytecode-comprehension
analyze and disassemble Move bytecode
sui
Jul 16Code AnalysisEngineeringSuiofficial-sui-skills
access official Sui development resources
sui
Jul 16DocumentationSuisui-and-move-tools
disassemble Sui Move bytecode
sui
Jul 16Code AnalysisEngineeringSuisui-move-security-review
audit Sui Move smart contracts
sui
Jul 16Code ReviewSecuritySmart ContractsSuimemwal
integrate Walrus Memory SDK
MemWal
Jul 16AgentsMemorySDKaccessing-data
read data from the Sui network
skills
Jul 16Data AnalysisSuiWeb3