x402 Facilitator
A production-ready x402 facilitator supporting both exact (per-request) and escrow (session-based) payment schemes.What is x402? The HTTP 402 “Payment Required” status code, finally put to use. x402 is a protocol for API monetization using blockchain payments.
Two Payment Schemes
exact
Per-request paymentsStandard x402. One signature per API call. Simple, no pre-deposit needed.
escrow
Session-based paymentsSign once, unlimited calls. Ideal for AI agents and high-frequency APIs.
Quick Comparison
exact | escrow | |
|---|---|---|
| Signatures | Every request | Once per session |
| Gas costs | Per request | Once (session creation) |
| Latency | Higher | Instant |
| Pre-deposit | No | Yes (100) |
| Unused funds | N/A | 100% reclaimable |
| Best for | Infrequent calls | AI agents, high-frequency |
Detailed Scheme Comparison
Learn when to use each scheme
Who Is This For?
Client Developers
Building an app that pays for API calls
- Install SDK
- Connect wallet
- Call paid APIs
API Providers
Monetizing your API endpoints
- Get free API key
- Add middleware
- Start earning
Quick Start
exact scheme (per-request)
escrow scheme (session-based)
How It Works
exact scheme flow
escrow scheme flow
Key Features
Gasless for Users
ERC-3009 signatures - no ETH needed for gas
Non-Custodial
Escrow funds held in open-source smart contract
100% Reclaimable
Withdraw unused escrow funds anytime
Base Network
Low fees on Base L2 (mainnet + testnet)
Built on Commerce Payments Protocol
The escrow scheme is built on Base’s Commerce Payments Protocol - a production-grade payment infrastructure designed for high-volume commerce.AuthCaptureEscrow Smart Contract
View the open-source smart contract on GitHub
| Operation | Description |
|---|---|
| authorize | User deposits funds into escrow (like a credit card hold) |
| capture | Facilitator releases funds to receiver (partial captures supported) |
| void | Cancel authorization, return all funds to user |
| reclaim | User retrieves uncaptured funds after expiry |
| refund | Receiver returns previously captured funds |
Networks
| Network | Status | Use For |
|---|---|---|
| Base Sepolia | Live | Development & testing |
| Base Mainnet | Coming Soon | Production |
https://facilitator.agentokratia.com