What Agent Wallet Provides
Most x402 implementations support a single stablecoin on a single chain (typically USDC on Base). Agent Wallet supports multiple assets across multiple chains:| Stablecoin | Supported Chains |
|---|---|
| USDC | Base, Solana |
| FDUSD | BSC, Arbitrum, Ethereum, Solana |
Coming soon: FDUSD support on SUI.
x402 Tools
Agent Wallet provides two tools for x402 payments, available through both the CLI and the MCP server. Which one to use depends on the agent’s environment and capabilities.authorizePayment (Recommended)
Signs the payment authorization only — the agent handles the HTTP communication with the resource server itself. How it works:- Agent calls the resource server and receives HTTP
402 Payment Requiredwith payment requirements (accepts[]array with chain, token, amount, recipient) - Agent passes the requirements to
authorizePayment— the wallet selects the best payment option from the agent’s balance and signs an EIP-3009transferWithAuthorization - Agent retries the original request with the signed
PaymentPayloadattached - The resource server’s facilitator verifies and settles the payment on-chain
EIP-3009 means the payment is gasless for the payer — the facilitator executes the on-chain transfer, not the agent’s wallet.
authorizePayment at the right step.
getX402Content (Fallback)
Bundles the entire x402 flow — initial HTTP request, authorization signing, and retry — into a single call. The agent provides the resource URL, and the wallet handles everything internally. Use this when the agent cannot make HTTP requests directly (e.g. web-based AI assistants like Claude Desktop or Cursor that have MCP access but cannot execute shell commands or make outbound HTTP calls).Choosing the Right Tool
| Tool | Agent handles HTTP | Best for |
|---|---|---|
| authorizePayment | Yes | Agents with HTTP access — Claude Code, OpenClaw, autonomous agents, agent frameworks |
| getX402Content | No | Agents without HTTP access — Claude Desktop, Cursor, web-based assistants |
Try It Out
WithauthorizePayment:
“Access the premium data API at https://api.example.com/market-data”The agent handles the 402 response, requests payment signing from the wallet, and retries with proof. With
getX402Content:
“Pay for the API at https://api.example.com/market-data”The wallet handles the full flow and returns the content. Direct payment:
“Pay 2 USDC to 0xABC…123 on Base”The agent can also make explicit payments to known addresses without encountering a 402 flow.
Agent Wallet + Prism
X402 is where the two Finance District products meet:- Agent Wallet is the buyer side — your agent has funds and wants to pay for services
- Prism is the seller side — merchants accept stablecoin payments from AI agents
Prism Overview
Learn how merchants accept agent payments
X402 Protocol
How Prism implements x402 on the merchant side
CLI Skills
Install the skills that teach agents x402
x402.org
Official x402 protocol specification