What is an x402 Facilitator?

2 min read Updated

An x402 facilitator is a server in the x402 protocol that handles payment verification and on-chain settlement on behalf of resource servers. It exposes /verify and /settle endpoints, enabling resource servers to accept payments without interacting with blockchains directly.

WHY IT MATTERS

In the x402 protocol, a resource server wants to charge for an API endpoint — but shouldn't need to understand blockchain internals like gas estimation, RPC connections, or transaction confirmation. The facilitator abstracts this complexity.

When a client sends a payment payload (via the PAYMENT-SIGNATURE header), the resource server forwards it to the facilitator's /verify endpoint to check validity. If valid, the server fulfils the request and then calls /settle to execute the on-chain transfer. The facilitator handles chain-specific logic for each supported (scheme, network) pair.

Critically, the x402 spec requires facilitators to be trust-minimising — they must not be able to move funds beyond what the client authorised. The exact scheme uses EIP-3009 transferWithAuthorization signatures, meaning the facilitator submits a pre-signed authorisation rather than having custody of funds.

Coinbase operates the reference facilitator at x402.org/facilitator, but the protocol is open — anyone can run a facilitator. Cloudflare's Agents SDK integrates with facilitators natively, and the x402 Foundation (co-founded by Coinbase and Cloudflare) is working to expand the facilitator ecosystem.

HOW POLICYLAYER USES THIS

PolicyLayer sits between the agent and the facilitator — validating spending policies before the agent even constructs a payment payload. While the facilitator ensures payment mechanics are correct, PolicyLayer ensures the payment should happen at all: checking budgets, recipient allowlists, rate limits, and domain pinning before a single signature is created.

FREQUENTLY ASKED QUESTIONS

Can anyone run an x402 facilitator?
Yes. The x402 protocol is open and permissionless. Coinbase operates the reference facilitator, but any party can implement the /verify and /settle endpoints for their supported chains. The spec defines standard error codes and response formats for interoperability.
Does the facilitator have custody of funds?
No. The exact scheme uses EIP-3009 transferWithAuthorization — the client signs an authorisation for a specific amount to a specific recipient. The facilitator submits this pre-signed authorisation on-chain but cannot redirect or alter the payment.
What happens if the facilitator goes down?
Resource servers can optionally verify and settle payments locally by interacting with the blockchain directly, though this requires chain-specific implementation. Most servers prefer delegating to a facilitator for simplicity.

FURTHER READING

Enforce policies on every tool call

Intercept is the open-source MCP proxy that enforces YAML policies on AI agent tool calls. No code changes needed.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.