Overview
The x402 protocol enables micro-payments for API access and backend services. It lets a user authorize an ERC-20 token transfer, and lets a backend verify and settle that authorization before fulfilling the request.
The x402 Facilitator is a hosted service that handles the heavy lifting:
- Verifies payment payloads and signatures
- Ensures payment requirements are met
- Submits the on-chain settlement transaction
- Returns structured errors for invalid or failed payments
This repository includes:
- A Go facilitator optimized for Vercel deployment
- A Next.js integration pattern to verify and settle payments
Why the facilitator exists
Backend teams should not have to maintain RPC nodes, parse signatures, or manage gas fees for every paid request. The facilitator abstracts those details so your app can adopt x402 with minimal surface area.
Last updated on