Overview
0xmeta is an x402-compliant payment facilitator that enables gasless payments on Base networks using EIP-3009 with pre-settlement fee collection.Pre-Settlement Fees: The facilitator collects a $0.01 fee from your pre-approved USDC balance BEFORE executing the settlement. Customer payments then go directly to your address. No fee collection = no settlement.
What You Need
Three-Step Setup
Step 1: Approve Facilitator
The facilitator collects fees from your USDC balance viatransferFrom before executing settlements. This requires one-time approval:
Expected: Approval of 100 USDC = 10,000 settlements
Step 2: Setup Server
Install x402 middleware and configure with YOUR merchant address:Step 3: Start Server
Payment Flow
Key Points:- ✅ Facilitator collects $0.01 fee from merchant’s approved balance FIRST
- ✅ Then executes customer → merchant payment ($0.02)
- ✅ Client authorizes payment to YOUR address
- ✅ You receive 100% of customer payment
- ✅ No facilitator custody of customer funds
- ⚠️ If fee collection fails, settlement is blocked (no free rides)
Network Configuration
Base Sepolia (Testnet)
| Resource | Value |
|---|---|
| Chain ID | 84532 |
| CAIP-2 | eip155:84532 |
| USDC | 0x036CbD53842c5426634e7929541eC2318f3dCF7e |
| Treasury | 0x5D791e3554D0e83f171126905Bda1640Bf6f9A8B |
| RPC | https://sepolia.base.org |
Base Mainnet (Production)
| Resource | Value |
|---|---|
| Chain ID | 8453 |
| CAIP-2 | eip155:8453 |
| USDC | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| Treasury | 0x5D791e3554D0e83f171126905Bda1640Bf6f9A8B |
| RPC | https://mainnet.base.org |
Testing
Get Testnet Assets
Base Sepolia ETH
Free testnet ETH
Base Sepolia USDC
Free testnet USDC
Test Payment Flow
Monitoring
Check Remaining Settlements
Top Up When Low
Production Deployment
Switch to Base Mainnet
Run Approval on Mainnet
Common Issues
Error: insufficient_allowance
Error: insufficient_allowance
Cause: You haven’t approved facilitatorSolution:
Customer payments not arriving
Customer payments not arriving
Cause: Wrong address in
payToSolution: Verify you’re using YOUR merchant address (not treasury):Settlement fails
Settlement fails
Causes:
- Insufficient USDC balance for fees
- Insufficient allowance
- Authorization expired
- Nonce already used
Next Steps
Complete Guide
Full setup documentation
Architecture
Understand pre-settlement fee collection
x402 Integration
Both v1 and v2 examples
API Reference
Explore endpoints
You’re ready! Approve facilitator, configure your server with YOUR address, and start accepting payments.