Use ChainAnalyzer's AML tools with no API key and no subscription — pay per request in USDC on Base or Solana. Ideal for AI agents that pay and call autonomously.
x402 is a crypto-native micropayment protocol built on the HTTP 402 Payment Required status code.
Clients call the API, get a 402 with payment requirements, sign a USDC payment,
retry with the signed header, and receive the response after the Coinbase x402 Facilitator verifies and settles the payment.
| Endpoint | Method | Price | What it does |
|---|---|---|---|
| /x402/api/address/{address}/sanctions | GET | $0.003 | Screen against OFAC, FATF, JFSA, and ScamDB sanctions lists |
| /x402/api/address/{address}/risk-score | GET | $0.008 | AML risk score (76+ detectors, ML anomaly, 5 chains) |
| /x402/api/tx/{tx_hash}/coinjoin | GET | $0.01 | Detect CoinJoin, mixing, and tumbling patterns |
| /x402/api/tx/{tx_hash}/trace | GET | $0.015 | Transaction flow tracing with ML anomaly detection |
| /x402/api/wallet/{address}/cluster | GET | $0.02 | Neo4j graph clustering of related addresses |
| /x402/api/batch/screening | POST | $0.05 | Batch AML screening for up to 50 addresses |
eip155:8453Settlement on either network takes milliseconds to a few seconds. Fund the agent's wallet with a small USDC balance and it keeps running.
Claude Desktop, Claude Code, Cursor, Windsurf, ChatGPT, Gemini, and any other
Model Context Protocol client can call all six tools in natural language through the chainanalyzer-mcp npm package. Add this to claude_desktop_config.json:
{
"mcpServers": {
"chainanalyzer": {
"command": "npx",
"args": ["-y", "chainanalyzer-mcp"],
"env": {
"X402_WALLET_PRIVATE_KEY": "0x..."
}
}
}
} See the MCP server launch announcement for details.
If you're wiring this into your own agent framework:
# 1. First request — server returns HTTP 402 with payment requirements
curl -si "https://chain-analyzer.com/x402/api/address/bc1q.../risk-score"
# 2. Sign the x402 payment header with your wallet, then retry
curl -si \
-H "X-PAYMENT: <signed-payment-header>" \
"https://chain-analyzer.com/x402/api/address/bc1q.../risk-score" The x402-axios / x402-fetch SDKs automate signing and retry for you.
Two public URLs return service metadata, all endpoints, and prices:
GET /.well-known/x402.json — Static x402 manifest (x402 protocol standard)GET /x402/api/discover — Dynamic discovery endpoint (service info, endpoints, payment networks)If you're already on Pro or Enterprise, set CHAINANALYZER_API_KEY in
the environment and calls draw from your plan's quota instead of x402.
Pick the subscription for steady high volume, and x402 for one-off usage or
autonomous agent workflows.
© 2026 ChainAnalyzer. All rights reserved.