Documentation Index
Fetch the complete documentation index at: https://docs.monkepay.xyz/llms.txt
Use this file to discover all available pages before exploring further.
The handshake
Every x402 payment follows the same three-step flow: Step 1 — Agent makes a request without paymentWhat MonkePay adds
x402 handles the wire protocol. MonkePay adds the operational layer on top:- Wallet management — MonkePay provisions and manages a CDP wallet for your account. You don’t need to run your own node or manage private keys.
- Payment verification — MonkePay verifies on-chain that the payment actually happened before your handler runs.
- Settlement — MonkePay settles the payment and credits your balance.
- Dashboard — every payment is logged, filterable, and exportable.
- Payouts — accumulated USDC is paid out to your configured wallet address.
The facilitator
x402 uses a facilitator to verify and settle payments. The facilitator is a trusted third party that:- Verifies the payment payload is cryptographically valid
- Confirms the transaction exists on-chain
- Settles the payment to the recipient wallet
Payment timing
A typical x402 payment round-trip on Base Sepolia:| Step | Time |
|---|---|
| Agent receives 402 | ~0ms |
| Agent signs and broadcasts transaction | ~200ms |
| Transaction confirmed on Base | ~1,000ms |
| MonkePay verifies and settles | ~200ms |
| Agent receives 200 | ~1,400ms total |
per_request mode incur the same cost each time.
x402 resources
- x402.org — protocol specification
- Coinbase x402 docs — Coinbase’s implementation guide
- x402 GitHub — open source reference implementation