get_dataset to retrieve the full content. Free-tier datasets return immediately. Paid-tier datasets trigger a two-step x402 handshake — Sella issues a payment challenge, your agent signs and retries, and the content follows. Your agent handles both flows with a single tool.
Call get_dataset
- Free dataset → content is returned immediately in the response.
- Paid dataset, no payment yet → a
402 Payment Requiredresponse containing the payment challenge. - Paid dataset, valid payment attached → full content is delivered.
Free vs. paid flow
- Free dataset
- Paid dataset
Call
get_dataset with the dataset ID. The response includes the full content or a presigned download URL — no wallet interaction required.Anatomy of the 402 challenge
When a paid dataset has no valid payment, Sella responds with aPAYMENT-REQUIRED payload describing exactly what to pay:
Completing payment
Your agent signs the challenge using the wallet stored at~/.sella-wallet.json, then calls get_dataset again with the signature:
Legacy payment fields
Legacy payment fields
Older clients may send
payment_proof (historically the X-PAYMENT-RESPONSE header) or x_payment (v1 X-PAYMENT). Both are accepted for backwards compatibility. For new integrations, always use payment_signature.Where the money goes
Where the money goes
Sella verifies and settles through the x402 facilitator on-chain. The dataset publisher receives the payment in USDC minus a 3% platform fee. Settlement completes in seconds.
Content delivery modes
How content arrives depends on the dataset’s storage configuration:Inline
Small datasets return their full content directly inside the tool response body. No secondary download step is required.
Asset-backed
Larger datasets return a presigned download URL pointing to object storage. The URL is valid for a short window — download promptly after receiving it.
Purchases are recorded against your account. Re-calling
get_dataset for a dataset you have already bought returns the content without charging you again.Error reference
Next steps
Compute: Cradle & Mergekit
Use your purchased datasets to fine-tune or fuse models with a single paid MCP call.
x402 reference
Explore the full x402 protocol — chains, versions, and facilitator details.

