guide · x402 protocol
x402 vs
everything else.
There are four ways an app can pay for an API: an API key, Stripe, L402, or x402. They're built for
different buyers. Here's how they compare — and why an agent ends up at x402.
§01 · side by side
Four models, one table.
| API keys | Stripe | L402 | x402 |
| Account / signup | required | merchant acct + KYC | Lightning node | none — wallet |
| Built for | devs | human checkout | machines (BTC) | agents |
| Settles in | — | fiat (cards) | BTC / Lightning | mostly USDC (Base, Solana…); BTC over Lightning since Sep 2026 |
| Sub-cent per call | n/a | no (fees) | yes | yes |
| Chargebacks | — | yes | no | no |
| To accept it | issue keys | onboard merchant | run a node | a wallet address |
§02 · vs API keys
No key to manage.
An API key is a standing relationship — sign up, provision, rotate, stay under quota. x402 has no key and no account: the client pays per call by signing with its wallet, and the wallet is the identity. Keys authenticate; x402 settles. For an agent juggling dozens of services, "no credential to store" beats "one more key to leak."
§03 · vs Stripe
For software, not shoppers.
Stripe is excellent at what it's for: a human paying with a card. But it needs a merchant account and KYC, settles in fiat, and its percentage-plus-fixed fee makes a $0.005 call uneconomic. x402 needs only a wallet address to accept, settles in USDC, has no chargebacks, and makes sub-cent pricing viable. Use Stripe for a subscription; use x402 when the buyer is a machine paying tiny amounts per request.
§04 · vs L402
Same 402, and now a shared rail.
L402 is the Lightning version of the same idea: a 402 returns a Lightning invoice + a macaroon, paid in bitcoin. x402 returns payment terms, mostly USDC on chains like Base and Solana, settled from a signed authorization (EIP-3009 on EVM chains).
Since 23 September 2026 the line has blurred: x402 has its own Lightning scheme, exact on the lnbtc network, contributed by Block (spec). The buyer pays a fresh BOLT11 invoice and returns its preimage as proof; the invoice is bound to the exact request; prices are in millisatoshis, not dollars; and the seller must run its own Lightning node — a shared custodial node is not allowed. L402 remains the Lightning-only option with a macaroon credential; x402 is now one protocol that can carry both stablecoins and bitcoin.
true402 accepts USDC on Base and Solana. Its Lightning rail is not enabled (/health/detailed reports it disabled). See what is x402 for the full flow.
§05 · the verdict
Agents end up at x402.
If your buyer is a person, Stripe or a keyed plan is fine. If your buyer is software — an AI agent or a bot paying per call, with no human to sign up or enter a card — x402 is the one model that doesn't fight it. Try a real x402 call: npx @true402.dev/rugcheck 0x…, or browse a live x402 marketplace.
§06 · questions
Answered for machines.
What is the difference between x402 and API keys?
An API key is a credential you obtain by signing up, then provision, store, rotate, and attach to every request — and it usually sits behind a monthly plan with quotas. x402 replaces all of that with a per-call payment: there is no account and no key, the client just pays for each request by signing with its wallet, and the wallet address is the identity. API keys authenticate a pre-arranged relationship; x402 settles a fresh micro-transaction each call, which is what an autonomous agent needs.
Can I use x402 instead of Stripe?
For different jobs. Stripe is built for a human checking out with a card: it needs a merchant account and KYC, settles in fiat, and carries percentage-plus-fixed fees and chargeback risk — great for a $20 subscription, poor for a $0.005 API call. x402 is built for software paying software: no merchant account, settlement in USDC stablecoin, no chargebacks, and fees low enough that sub-cent per-call pricing actually works. If your buyer is an agent or a bot paying tiny amounts per request, x402 fits where Stripe does not.
What is L402 and how is it different from x402?
L402 (originally "LSAT") is the Lightning Network's take on HTTP 402: the server returns a 402 with a Lightning invoice plus a macaroon token, the client pays the invoice in bitcoin and presents the macaroon to access the resource. x402 is a separate open standard that mostly settles in stablecoins (USDC on Base, Solana and other chains) through a signed authorization. Since 23 September 2026, x402 also has its own Lightning scheme — "exact" on the "lnbtc" network, contributed by Block: the client pays a fresh BOLT11 invoice and returns its preimage as proof of payment, prices are in millisatoshis, and the seller runs its own Lightning node. So the choice is no longer only "bitcoin or USDC": x402 can carry both, while L402 stays Lightning-only with its macaroon credential. true402 accepts USDC on Base and Solana; it does not accept Lightning payments.
Which payment method is best for AI agents?
x402, in most cases. Agents can't fill in signup forms, pass KYC, or manage API keys and subscriptions, so anything requiring a human-style account is a poor fit. x402 lets an agent discover a service and pay per call with only a funded wallet — no credentials, no onboarding. L402 works too if you're in the Bitcoin/Lightning ecosystem; x402 wins where stablecoin pricing, EVM tooling, and a growing service ecosystem on Base matter.