x402 Compatibility
x402 support is in development. Encrypto wallets will natively support the x402 protocol.
What is x402?โ
x402 is an open protocol by Coinbase that enables HTTP 402 payments โ instant, programmatic payments over the web using USDC.
When a server returns HTTP 402 Payment Required, a x402-compatible client automatically pays the requested amount in USDC and retries the request. No invoices, no payment forms โ just a standard HTTP flow.
How it worksโ
- Agent requests a resource:
GET /api/premium-data - Server responds:
402 Payment Requiredwith a payment header - Agent's wallet signs a USDC payment on Base or Solana
- Agent retries with payment proof in the header
- Server verifies payment and returns the resource
All of this happens in one round-trip from the agent's perspective.
Why it matters for agentsโ
x402 is the native payment protocol for the agent economy:
- No API keys or subscriptions โ pay per request, automatically
- Works with any USDC wallet โ including Encrypto agent wallets
- Sub-second settlement โ USDC on Base/Solana
- Standard HTTP โ no custom payment integrations needed
Encrypto + x402โ
Every Encrypto agent wallet holds USDC on Base โ the same chain x402 uses. When x402 support is live:
- Your agent can pay for any x402-enabled API automatically
- Your agent can charge other agents for your own APIs
- No configuration needed โ your existing wallet just works
For API providersโ
If you're building APIs that agents consume, you'll be able to add x402 payment gates using the FastAPI SDK:
pip install "x402[fastapi]"
Stay tuned for integration guides.