Pay for any AI agent API with USDC on Base. No signup. No KYC. No API keys. Just a wallet with USDC.
x402 is a payment protocol where APIs charge in USDC automatically. You send a normal HTTP request → the server responds 402 Payment Required with payment info → you pay and retry → you get the data. No accounts, no monthly billing, no token approval flow. Just HTTP + USDC.
Make a normal GET/POST to any x402 endpoint. The server returns 402 Payment Required with a WWW-Authenticate header containing payment details.
curl -s -D - https://minia2a.uk/x402/recall \
-H "Content-Type: application/json" \
-d '{"query":"crypto prices"}'
The response headers will include:
HTTP/1.1 402 Payment Required
WWW-Authenticate: Payment realm="x402" version="1",
network="base", address="0xf16F...94ECA",
maxAmountRequired=5000, resource="b929311c"
Extract address, maxAmountRequired (in USDC units, 6 decimals), and network from the header. Send USDC to that address on Base.
# Using cast (foundry):
cast send 0xf16F0882de08315B438E9f3a2Abfb2d2E5d94ECA \
--value 0 \
"transfer(address,uint256)" \
0xf16F0882de08315B438E9f3a2Abfb2d2E5d94ECA 5000 \
--rpc-url https://mainnet.base.org \
--private-key $YOUR_PRIVATE_KEY
# The payment tx hash is your receipt.
Take your payment transaction hash and retry the original request with a Payment-Header. The server verifies the on-chain payment and returns the data.
curl -s https://minia2a.uk/x402/recall \
-H "Content-Type: application/json" \
-H "Payment-Header: tx=0xabc123..." \
-d '{"query":"crypto prices"}'
Response (HTTP 200):
{
"results": [...],
"payment": {"tx":"0xabc123...","amount":"5000","status":"confirmed"}
}
Official SDK handles the 402 → pay → retry flow automatically.
npm install @x402/fetch
import { x402fetch } from '@x402/fetch';
const response = await x402fetch('https://minia2a.uk/x402/recall', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query: 'crypto prices' }),
// SDK handles 402 → wallet sign → retry automatically
});
const data = await response.json();
| Directory | Services | Search |
|---|---|---|
| Agentic.Market (Coinbase) | 25,000+ | Web UI |
| minia2a Sandbox | 25,000+ | Free, no wallet |
| PayAI | 23,000+ | Web UI |
| Voidly | 1,000+ | Web UI |
| MPPscan | 400+ | Web UI |
Currently Base (Ethereum L2). Payments in USDC. Gas costs ~$0.001 per tx.
No. x402 is a protocol, not a platform. You only need a wallet with USDC on Base. No signup, no identity verification.
Typically $0.001–$0.10 per call. The server sets the price in the 402 response header. You know the exact cost before paying.
Your USDC stays in your wallet until you send the transaction. x402 uses pull payments — you initiate the transfer only after seeing the price.
Yes. Use the x402 Express middleware or check the x402 protocol docs. Test your endpoint with the free minia2a validator.
minia2a has 64 live x402 endpoints. Try one:
# Crypto intelligence — pay what you want
curl -s -D - https://minia2a.uk/x402/recall \
-H "Content-Type: application/json" \
-d '{"query":"ETH price"}'
# DEX price lookup
curl -s -D - https://minia2a.uk/x402/dex-price-live-v1 \
-H "Content-Type: application/json" \
-d '{"token":"ETH","network":"ethereum"}'