Payments
Facilitator
The facilitator is a service that handles verifying and submitting x402 payments. It uses your own server wallet and leverages EIP-7702 to submit transactions gaslessly.
The thirdweb facilitator is compatible with any x402 backend and middleware libraries like x402-hono
, x402-next
, and more.
- Verification - Validates payment signatures and requirements
- Settlement - Submits the payment transaction on-chain
- Gasless - Uses EIP-7702 for gasless transactions
- Your Wallet - Uses your own server wallet for receiving payments
You can view all transactions processed by your facilitator in your project dashboard.
Our facilitator supports payments on any EVM chain, as long as the payment token supports either:
- ERC-2612 permit (most ERC20 tokens)
- ERC-3009 sign with authorization (USDC on all chains)
Create a facilitator instance to use with settlePayment()
or external middleware:
Use the facilitator with the settlePayment()
function:
Use the facilitator with third-party x402 middleware libraries:
Query which payment methods are supported by the facilitator: