x402 nanopayments
How an EIP-3009 signature becomes a paid tool response.
Sendero uses x402 for direct HTTP tool calls. Each call is quoted, signed, settled, and executed independently.
Step 1 - Quote
Call a paid tool without Payment-Signature:
The response is 402 Payment Required and includes a PAYMENT-REQUIRED header. Decode the base64 header to get the payment requirements:
Step 2 - Sign
Your wallet signs an EIP-3009 transferWithAuthorization payload for the quoted amount. Sendero's edge worker expects that signed payload as base64 JSON in the Payment-Signature header.
Step 3 - Retry
Retry the same tool call:
Sendero verifies and settles the payment with the Circle x402 batching facilitator, then runs the tool. If settlement fails, the tool does not run. If the tool throws before producing a result, the response is an error and the meter records the failed attempt separately.
Response
MCP versus x402
MCP is for schema discovery and tool invocation by agent hosts. x402 is the direct HTTP payment interface. Production deployments can combine them at the gateway, but the current edge worker exposes them as separate surfaces:
POST /mcpfor MCP JSON-RPC.POST /tools/:namefor x402-gated HTTP tool calls.
Why Arc
- USDC is the settlement asset.
- Testnet calls are cheap enough for high-frequency agent loops.
- Each paid call leaves an auditable receipt that can be reconciled to tenant invoices.