You’re offline. Your progress is saved on this phone and will sync when you’re back.
Lesson 1 is saved.
The status code that waited
Make a free account to keep going. Next, you play the program and buy a rainfall reading for $0.001.
Google sign-in doesn’t work inside TikTok. Use an email link, or open this page in your browser.
No password and no card. We use your email to sign you in and for the choices you tick. Your lesson 1 progress moves to your account.
Check your email.
We sent a sign-in link to . It works for 15 minutes.
You can send it again in 30 seconds
Saved. Your progress is on your account now.
One payment, step by step
7 minutes. Checked 14 October.
In this lesson
- The program asks, gets a 402 with the price, signs a payment and sends the same request again.
- A checker, called a facilitator, verifies the payment and moves the money, so the seller runs no blockchain software.
- Money moves only at the end, once the data is ready. If the server fails, the program pays nothing.
- The signature fixes the amount and who gets paid, works once and soon expires.
A farmer sells rainfall
In this lesson you play a program buying one rainfall reading, and see exactly when the money moves.
A farmer logs rainfall every hour and sells each reading for $0.001. A weather program planning irrigation for another farm needs the latest one. It has never visited the farmer’s site, has no account there and holds no API key.
Right.
Not quite.
Signing and checking move nothing. In the default flow the checker settles only once the site has the reading ready, so if the site fails first, you pay nothing. Some other schemes settle before the work is done.
What your signature protects
Your signed payment works like a cheque with four rules written in. It uses EIP-3009, a USDC feature that lets someone else submit a transfer you signed.
- The amount and who gets paid are fixed. Change either and the signature stops matching, so not even the checker can.
- It expires, here after 60 seconds.
What your signature protects
- It works once. A one-time number is used up at settlement, when the money moves.
- No account is needed. The site sees a wallet address and a signature, never a card or a key.
Careful. x402 doesn’t judge the reading. If the farmer’s number is wrong, there’s no refund button. Any fix is up to the seller.
The seller’s side of the bill
The farmer earns $0.001 a reading. Coinbase’s checker charges sellers nothing for the first 1,000 settlements each month and $0.001 for each one after that (14 Oct) source. Past the free tier, the fee is as large as the whole sale.
For prices this small, x402 also has a batch-settlement scheme, merged in April 2026, where many signed payments share one claim on the chain. Coinbase’s isn’t the only checker, and the build track compares them.
One question this leaves open: you paid from your own wallet, so where did that USDC come from? That’s the next lesson.
Right.
Not quite.
The x402 spec for this kind of payment says the facilitator, your checker, pays the network fee, called gas. You only sign.
Lesson done.
x402 from zero
Your receipt on this device
Part 1: Understand it
0 of 6 doneWhat x402 is, one payment step by step, where an agent’s money comes from, and the real numbers.
Price: about 7 minutes of your attention.
You can now say
- The program asks, gets a 402 with the price, signs a payment and sends the same request again.
- A checker, called a facilitator, verifies the payment and moves the money, so the seller runs no blockchain software.
- Money moves only at the end, once the data is ready. If the server fails, the program pays nothing.
- The signature fixes the amount and who gets paid, works once and soon expires.
- Read the whole lesson on one page
- Was this clear?
Thanks.
Sources
Checked 14 October
- x402 Protocol Specification, version 2 (core flow, facilitator /verify and /settle, payment flows) github.com
- x402 v2 HTTP transport: PAYMENT-REQUIRED, PAYMENT-SIGNATURE, PAYMENT-RESPONSE github.com
- x402 v2 MCP transport: paying for tools github.com
- Scheme exact: authorization flow leaves the client uncharged if the handler fails github.com
- Scheme exact on EVM: EIP-3009, facilitator pays gas, cannot change amount or destination github.com
- ERC-3009: Transfer With Authorization eips.ethereum.org
- x402 reference SDK: client signs with validBefore = now + maxTimeoutSeconds github.com
- x402 core README: client spend controls, $1 default cap per payment github.com
- x402 seller quickstart: testnet facilitator and Coinbase’s mainnet facilitator URL github.com
- Coinbase CDP docs: facilitator pricing, free verification, screening docs.cdp.coinbase.com
- x402scan: Base settlements by facilitator (Coinbase 91% of Base transactions, 2026-04-11 to 2026-10-11) x402scan.com
- x402 PR 1145: batch-settlement scheme, merged 15 April 2026 github.com
- Base docs: built by Coinbase; transactions settle in under a second and cost less than one cent (Base’s claim) docs.base.org
Sources
Checked 14 October
- x402 Protocol Specification, version 2 (core flow, facilitator /verify and /settle, payment flows) github.com
- x402 v2 HTTP transport: PAYMENT-REQUIRED, PAYMENT-SIGNATURE, PAYMENT-RESPONSE github.com
- x402 v2 MCP transport: paying for tools github.com
- Scheme exact: authorization flow leaves the client uncharged if the handler fails github.com
- Scheme exact on EVM: EIP-3009, facilitator pays gas, cannot change amount or destination github.com
- ERC-3009: Transfer With Authorization eips.ethereum.org
- x402 reference SDK: client signs with validBefore = now + maxTimeoutSeconds github.com
- x402 core README: client spend controls, $1 default cap per payment github.com
- x402 seller quickstart: testnet facilitator and Coinbase’s mainnet facilitator URL github.com
- Coinbase CDP docs: facilitator pricing, free verification, screening docs.cdp.coinbase.com
- x402scan: Base settlements by facilitator (Coinbase 91% of Base transactions, 2026-04-11 to 2026-10-11) x402scan.com
- x402 PR 1145: batch-settlement scheme, merged 15 April 2026 github.com
- Base docs: built by Coinbase; transactions settle in under a second and cost less than one cent (Base’s claim) docs.base.org