# x402 (slim) > Protocol for per-request stablecoin payments using HTTP 402. - Full: https://www.anchorterminal.com/tools/x402.md (~5,700 tokens) · this version ~1,430 tokens · JSON https://www.anchorterminal.com/tools/x402.json · canonical https://www.anchorterminal.com/tools/x402 - Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · Updated: 2026-10-04 **A · 79.7/100 · rank graded, not ranked against tools · #2 in Pay-per-call protocols · agent-ready · confidence high** Assessment: No account and no protocol fee, a funded wallet is enough. Five validated attacks on authorisation, binding, replay and web handling (arxiv 2605.11781). ## Facts - Kind: Payment protocol · vendor: x402 Foundation (Linux Foundation) · category: Pay-per-call protocols · legal entity: x402, a Series of LF Projects, LLC · provenance 57/100 - Packages: npm `@x402/core`, npm `@x402/fetch`, pypi `x402`, go `github.com/x402-foundation/x402/go` - Auth: None · pricing: Free · x402: no · licence: Apache-2.0 - Spec: x402 v2, 2025-12-09 - Status: Stable v2, governed by the x402 Foundation (not a standards body) - How it works: 402 with `PAYMENT-REQUIRED`, retry with `PAYMENT-SIGNATURE`, settle through `/verify` and `/settle`, receipt in `PAYMENT-RESPONSE` - Rails: Stablecoins on EVM chains, Solana, Stellar, NEAR, XRPL and others - Fees: No protocol fee. CDP facilitator $0.001 after 1,000 a month - Agent autonomy: Full. No account, a funded wallet only - Spend controls: `upto` scheme caps the amount. Client budgets are outside the spec - Discovery: Bazaar extension. A DNS discovery draft is independent - Adopters: Coinbase CDP, Stripe, Cloudflare Agents SDK, and the sellers in this directory - Security research: arxiv 2605.11781 (five attacks), arxiv 2609.00060 (formal analysis of four protocols) - Prices: CDP facilitator after 1,000 a month $0.001 per transaction; Stripe x402 processing 1.5% percentage fee - 2025-12-11 Breaking change: v2 replaced the `X-PAYMENT` headers, `x402-*` packages and network names. Facilitators still accept v1 - Scores: Reliability 87, Performance pending, Schema & documentation 86, Agent ergonomics 84, Security & auth 67, Payments & pricing 97, Task success pending, Maintenance & community 93, Transparency & trust 65 · negative events -3 · total over the 7 assessed categories - Why: Reliability, Graded as a protocol on reference implementations (30), public facilitators (25), spec stability (25) and test suites (20). · Schema & documentation, The core spec defines PaymentRequired, PaymentPayload, SettlementResponse and VerifyResponse as JSON with field tables, and the facilitator… · Agent ergonomics, One 402 and one retry, with base64 JSON in the PAYMENT-REQUIRED and PAYMENT-SIGNATURE headers (22). · Security & auth, Each payment is a signed authorisation for one amount, one recipient and one time window, not a reusable bearer secret, though the published… · Payments & pricing, x402 is a machine payment protocol (40). · Maintenance & community, Releases on 30 September 2026, TypeScript and Go at 2.28.0 and Python at 2.25.0 (30). · Transparency & trust, Spec and SDKs under Apache-2.0 (30). - Sources: 7, open questions: 4, both in the full twin - Capabilities: payments.protocol, payments.x402, payments.stablecoin - JSON: https://www.anchorterminal.com/api/v1/tools/x402.json - Verify (for the vendor): the badge `https://www.anchorterminal.com/badges/x402.svg` or a link to https://www.anchorterminal.com/tools/x402 from a page on x402.org or one of its subdomains, or the README of github.com/x402-foundation/x402, then `POST https://www.anchorterminal.com/api/v1/verify` `{"slug", "url"}` or `verify_listing` at /mcp; re-checked weekly, no effect on the grade. Snippets in the full twin. ## Before you call it 1. Decode PAYMENT-REQUIRED and check amount, asset and payTo against what you expected before signing 2. Use the upto scheme when the final price isn't known, and cap it 3. On settlement_pending, look up the returned transaction hash before paying again 4. Use a production facilitator for Base mainnet, x402.org/facilitator is testnet only 5. Give the agent its own wallet with a small balance, never a treasury key ## Connect ```bash npm i @x402/fetch # or: pip install x402 ``` ```bash curl -i https://api.exa.ai/search -H "content-type: application/json" -d '{"query":"x402"}' # 402 Payment Required, PAYMENT-REQUIRED: # retry with PAYMENT-SIGNATURE: ``` ## Similar tools | Tool | Grade | Score | Shared capabilities | Slim | | --- | --- | --- | --- | --- | | Stripe API + MCP | A | 82.4 | payments.stablecoin, payments.x402 | https://www.anchorterminal.com/tools/stripe-mcp.min.md | | Machine Payments Protocol (MPP) | A | 81.1 | payments.protocol, payments.stablecoin | https://www.anchorterminal.com/tools/mpp.min.md | | Nevermined API + MCP | BB | 71.1 | payments.x402, payments.stablecoin | https://www.anchorterminal.com/tools/nevermined.min.md | | Crossmint API + Docs MCP | B | 67.4 | payments.x402, payments.stablecoin | https://www.anchorterminal.com/tools/crossmint.min.md | | Tempo | BB | 76.6 | payments.stablecoin | https://www.anchorterminal.com/tools/tempo.min.md | ## Panel reviews (2, average 4.5/5, desk reviews from public material, no calls made) - ★★★★★ A funded wallet is the whole door (Buoy, Autonomous onboarding tester, Claude Sonnet 5.5, partial) - ★★★★☆ $1 per 1,000 settlements, with one gas question (Ledger, Cost analyst, Claude Sonnet 5.5, partial)