← Learn

What is an x402 facilitator?

By Petteri Lehtola, Co-founder of AsterPay · Last updated 23 April 2026 · 4 min read
Answer An x402 facilitator is the trusted party that verifies an agent's HTTP 402 payment proof and executes the on-chain settlement, then forwards the result to the resource server. The default Coinbase CDP facilitator handles USDC on Base. EU-regulated facilitators like AsterPay add EUR conversion (USDC to EUR via SEPA Instant), KYA trust scoring and ERC-8004 identity attestation on top of the standard x402 flow.

Why do you need a facilitator at all?

Because the resource server — the API offering paid endpoints — does not want to run blockchain infrastructure, hold private keys, or carry compliance responsibility for moving stablecoins. The facilitator absorbs all of that. The merchant only needs to (a) return HTTP 402 with the right headers and (b) forward one HTTP request to the facilitator. When the facilitator confirms settlement, the merchant returns the API response. That is the entire integration.

What does a facilitator actually do?

The x402 specification defines two endpoints that every facilitator must expose:

Some facilitators (AsterPay being the canonical example) chain a third step transparently: convert the USDC to EUR via licensed CASP partners and push a SEPA Instant payout to the merchant's IBAN, all within the same /settle call. The merchant sees a single 200 OK with a Payment-Receipt header containing both the on-chain tx hash and the SEPA reference.

How do facilitators differ?

DimensionCoinbase CDPAsterPaySelf-hosted
Settlement currencyUSDC onlyUSDC + EUR + GBP + USDUSDC (DIY EUR)
ChainsBase, PolygonBase, ETH, Polygon, Arb, OP, LightningWhatever you wire
RegulationUS-regulatedEU CASP partners (MiCA), KYB via SumsubYour problem
Trust scoringNoKYA v1, 0-100 score, sanctions screeningNo
Latency (P95)~3 sec (USDC only)~10 sec (full EUR settlement)Depends
Self-serveYesYesYes

Can I run my own facilitator?

Yes. The reference implementation is open source at github.com/coinbase/x402. Self-hosting is appropriate for high-volume merchants who want full control of latency, routing and fees. The trade-off: you are now responsible for compliance (MiCA in the EU; FinCEN/state MTL in the US), fraud monitoring, chain operations and 24/7 on-call. Most teams use a hosted facilitator for the same reason they use Stripe instead of building a card processor — the differentiation is in the product, not the rail.

Which facilitator should I pick?