Tutorials, comparisons and design patterns for building autonomous agents that self-fund, call 345+ models and orchestrate MCP Tools.
Coinbase's x402 Bazaar lists 1,237 dynamic routes on 283 hosts under their template, and 153 of 260 hosts answer 402 for the literal placeholder. Coinbase's validator passes it, and 22 entries show a signed payment for a placeholder such as :address. The catalog also stores the last request's path values: wallets, UUIDs on download and redeem routes, an email. The shipped SDKs make buyers echo them verbatim or drop discovery entirely. PayAI changed its listing rules on 2026-11-15.
Issue #4258 found that x402's Go SDK v2.31.0 rounds 9007199254740993 inside payment maps despite UseNumber; PRs #4269 and #4270 fix the decoders. We measured more: the Go facilitator client has rounded request bodies since the v2 rewrite, a decoder-only fix silently turns off a withdrawDelay check, the Go and TypeScript matchers accept 2^53 for 2^53+1 even with both fixes, Python stays exact, so a JS buyer cannot pay a Python seller, and Bazaar's payment terms are clean while its metadata already shows float64 damage.
A draft x402 spec (PR #4241, opened 2026-11-12 with contributors from Coinbase, Stripe and American Express) makes cards the first non-crypto rail: an opaque PSP token, a hold placed by the first /settle before the resource runs, then a capture or void. The SDK ordering already ships in @x402/core. What does not fit yet: Visa's hold window depends on an open item, Stripe prunes idempotency keys after 24 hours, the shared-token path needs a field the requirements lack, the $0.50 card minimum is 50 times our gateway's floor quote, and the PAN guard rejects 0.2% of the spec's own ID format.
An x402 facilitator takes the asset from the requirements it is handed and checks only that it holds bytecode before its wallet calls it. We ran @x402/evm 2.30.0 against a client-deployed token, a gas-griefing contract, and WETH: it verifies and settles in all of them. Two open PRs (#4161, #4195) and a spec-binding pair (#4230, #4231) are trying to close the gap, and neither has merged.
PR #4158 specifies the x402 upto scheme on Casper through a Permit2 port and a proxy contract. We recomputed all four type hashes and the golden digest from the spec's encoding rules, and they match. The harder parts are elsewhere: a zero settlement submits nothing, so the signed authorization stays spendable until its deadline and the facilitator's memory is the only guard; the buyer needs CSPR for a one-time approval with no sponsorship path; and the Permit2 and proxy contracts the spec depends on are not publicly reachable, so its claim of being checked against them cannot be verified.
An open x402 pull request ports the auth-capture scheme to Solana using SPL Token Approve, TransferChecked and Revoke. We ran the on-chain semantics in a local SVM with the real token program, then ran the PR's facilitator against real transactions. One delegate slot per account, funds that can leave while the hold stays live, no on-chain deadlines, three independent bugs that reject every valid Approve, a capture that never carries the delegate signature, and a test suite that does not load.
After a payment verifies, the resource handler can still decline: return an error, or abort. In the Go Gin adapter on main (88b66dd, and in the released go/v2.30.0), the abort branch cancels the payment but never restores the response writer, so the buyer gets 200 OK with an empty body, no PAYMENT-RESPONSE and no charge. We reproduced four abort shapes, ran the two open fixes (#4188 and #4189) on top of main, and found that the fix turns 'c.JSON(200); c.Abort()' from an empty 200 into a delivered response that is never settled. Separately, all three Go adapters sent the internal Settlement-Overrides header to the client when a handler set it and then failed; the TypeScript adapters strip it. What this means for a gateway that sells per request, and six steps.
x402's upto scheme has been Permit2-only because EIP-3009 needs an exact amount at signing time. PR #3867 gets around that with a proxy that receives the full signed maximum, pays the metered amount and refunds the rest, with the recipient, settler and a salt committed through the EIP-3009 nonce. We ran the proxy against Base USDC on a fork. Settling costs 118,634 to 131,196 gas against 95,814 for an exact transfer. The buyer needs the full maximum at settlement, not just the charge: a payer holding 100 units cannot settle a 50-unit charge against a 5,000,000 maximum. A buyer who cancels the authorization after verify makes settle revert. The contract is unaudited, undeployed on Base, Ethereum and Optimism, and not in @x402/evm 2.30.0. Plus what it means for our gateway and six steps.