Facilitator

x402 payment verification + on-chain settlement + ERC-8004 registration/feedback

Facilitator

The Regent facilitator is the service access point for x402 payments. It:

  • Verifies paid requests (POST /verify)

  • Settles payments on-chain (POST /settle)

  • Registers agents on-chain via ERC-8004 + EIP-7702 (POST /register)

  • Optionally generates feedbackAuth after settlement to enable authenticated on-chain reputation feedback

Running a Regent-owned facilitator is critical because it’s where x402 payments become on-chain transactions (usable for accounting/attribution) and where the payment flow is extended with Regent identity + reputation primitives on Base.

What’s implemented today

The current implementation (monorepo/facilitator/index.ts) supports:

  • x402 v1: legacy verify/settle via @x402/legacy

  • x402 v2: verify/settle via @x402/core/facilitator with the Exact EVM scheme

  • ERC-8004 agent registration using an EIP-7702 authorizationList + a delegation contract

  • A feedback extension hook (v2) that generates and stores a per-client feedbackAuth in memory after settlement

  • A discovery extension plus /discover + /catalog endpoints for crawling discovery-enabled x402 resources

Flow diagram

x402 facilitator flow

Next

Last updated