x402 ledger top-up (agent door)
The wallet rail for Shroud (Shroud AI plan). Without X-PAYMENT the response is a 402 quote (x402Version, accepts[] with payTo, maxAmountRequired, resource) for amount_usd (default $1) of USDC on Base. With a signed EIP-3009 X-PAYMENT the facilitator verifies it, the proof is claimed once, the payer wallet's org ledger is credited in micro-USD, and the facilitator settles.
Payment is the account. An unknown wallet's first settled top-up provisions a shadow org, one Shroud-enabled agent and one sk-shroud-v1 router key keyed on the wallet (returned once as router_key), after screening the wallet against the OFAC SDN list (fails closed when the list is missing or stale) and the caller's region against the custody geofence. Same wallet = same org on every later top-up. The response always carries a ≤60 s access_token for the wallet's agent so the gateway can serve the paid request immediately. The Shroud gateway drives this for Authorization: Bearer x402 requests and relays the quote or the result.
Request
- Base URL: https://api.1claw.co
- URL: https://api.1claw.co/v1/x402/topup
- Auth: none required
Headers
Base64 x402 payment payload (EIP-3009 USDC authorization on Base)
Request body
Response
Credited
Changes
No recorded changes to this operation across all 1 revision of this API.