HTTP 402 · x402 · Base
Payments your agent can pay by itself.
Your agent hits a paywalled endpoint, gets back a signable challenge, signs it with its own wallet, and the payment settles on-chain in seconds. No card, no checkout, no human — and no ETH for gas.
Run it live
Real calls against the sandbox. No signup, no email, no funds.
# Press “Run request”. These are real API calls — nothing here is mocked.
Why it holds up
Your keys, your money
Settlement is EIP-3009 transferWithAuthorization: value moves straight from payer to merchant. There is no usevig address in the path, not for one block.
We pay the gas
usevig submits the transaction as a relayer, so neither your agent nor the merchant needs ETH. About $0.001 per payment on Base.
Priced per transaction
Metered on transactions verified, never on value transferred. Move $1M or $10k — same bill at the same count.
Replay-proof
Every nonce is single-use, rejected by both a database uniqueness constraint and an on-chain authorizationState check.
Finality, not optimism
Nothing is called final at one confirmation. Configurable depth per merchant, with reorg demotion if a transaction disappears.
Built for agents
An MCP server, /llms.txt, and a zero-credential sandbox. An agent can onboard and transact without a human touching anything.
Pricing
API
| Endpoint | What it does |
|---|---|
POST /v1/merchants | Create a merchant. Sandbox is self-serve. |
POST /v1/payments | Create a charge; returns the 402 challenge. |
POST /v1/payments/:id/settle | Verify a signature and relay on-chain. |
GET /v1/payments/:id | Status, tx hash, confirmations. |
GET /v1/me | Tier and usage this period. |
POST /mcp | MCP server for agent self-onboarding. |