Protocol 2 of 8

x402

Machine payments

Stewards
x402 Foundation (x402 a Series of LF Projects, LLC), Technical Steering Committee: Coinbase, Cloudflare, Stripe
Status
Live Protocol V2 has been live since 2025-12-11. The upto, batch-settlement, auth-capture and Lightning bindings are newer, SDK coverage differs by language, and no SDK implements the Lightning binding yet.
Latest version
Spec v2.0 (x402Version 2); SDK @x402/core 2.31.0 on 2026-11-12,
State as of
Verified (verified under 30 days ago)
  • Crypto-native
  • Multi-rail
  • Settlement rails (primary layer)
  • Payment credential
  • Discovery
  • Post-purchase and disputes

A. TL;DR and key facts

x402 lets a server charge for one HTTP request. It answers 402 with a price, the client retries with a signed payment, and a facilitator verifies and settles it, usually in USDC.

Why it exists

Paying for a single API call or web page has usually meant an account, an API key, a card on file or a monthly invoice. Those flows are built for people, which makes them awkward for software agents, and fixed card fees (the x402 whitepaper cites $0.30 plus 2.9 percent) rule out prices of a fraction of a cent. x402 puts the price and the payment inside the HTTP exchange itself, so any client with a wallet can pay any server on the first request, and the server does not need to touch a blockchain because a facilitator can do that part.

What it is not

  • Not a Coinbase product any more. Coinbase originated x402, but the x402 Foundation, a Linux Foundation project, now governs it. Source [1, 2, 3, 4]
  • Not only USDC on Base. Networks are CAIP-2 ids across EVM chains, Solana, Lightning and others, and default assets include USDT0, MegaUSD, USDM and USDT. Source [11, 25, 26, 27]
  • Not L402, A402, x402r or x401. L402 is an earlier HTTP 402 design on Lightning, A402 is an academic proposal, x402r is a third-party refund layer, and x401 is Proof's separate identity challenge protocol. Source [42, 43, 44, 45, 46, 47]
  • Not a refund or dispute system. The exact scheme defines no refund; refunds exist in auth-capture, in batch-settlement channels, as escrow returns in upto on Solana, or through third parties. Source [30, 44, 48, 49, 50]
  • Not an identity protocol. Identity is optional and lives in extensions such as sign-in-with-x and auth-hints, or in other protocols such as ERC-8004; only the credit-backed cloudflare:402 network requires a registered signing identity. Source [28, 31, 39, 51]
  • Not a custodian. The facilitator verifies and broadcasts but does not hold funds. Source [29, 52]
  • Not one wire format. V1 used a JSON body and X-PAYMENT headers; V2 uses PAYMENT-REQUIRED, PAYMENT-SIGNATURE and PAYMENT-RESPONSE. Source [22, 53, 54]
Key facts as of 2026-11-14
Stewardx402 Foundation (x402 a Series of LF Projects, LLC); originated at Coinbase Developer Platform Source [1, 2, 3, 4]
GovernanceTechnical Steering Committee: Coinbase (Erik Reppel), Cloudflare (Rohin Lohe), Stripe (Steve Kaliski); majority vote, 75 percent supermajority for Core Principles; a Governing Board handles budget and business oversight (2026-10-19) Source [2, 5, 6]
LicenseCode Apache-2.0 (repository LICENSE); the technical charter puts documentation under CC BY 4.0 and asks for a DCO sign-off on code, and CONTRIBUTING.md requires signed commits Source [2, 7, 8, 9]
First announced2025-05-06 (whitepaper and public launch; npm x402 0.3.0 the same day) Source [1, 10]
Latest versionSpec v2.0 dated 2025-12-09, launched 2025-12-11; SDK @x402/core 2.31.0 on 2026-11-12 (the spec version is unchanged) Source [11, 12, 13]
StatusLive (V2); foundation operational since 2026-07-14 (40 members at launch, 58 listed on 2026-11-14) Source [4, 11, 14, 15]
SecurityA third-party CVE (CVE-2026-113603, medium) for a sign-in-with-x bypass, fix unmerged on 2026-11-14; V12 disclosed three critical SDK flaws fixed in August 2026 Source [16, 17, 18, 19, 20, 21]
TransportsHTTP headers, MCP tool results and _meta, A2A task metadata; the facilitator API is standardized as HTTP Source [11, 22, 23, 24]
RailsCrypto first (EVM, Solana, Lightning and more, CAIP-2 ids); fiat codes and a credit-backed Cloudflare network in the spec Source [11, 25, 26, 27, 28]
Builds onHTTP 402, EIP-712, EIP-3009, Permit2, ERC-7710, CAIP-2, CAIP-122, RFC 9421 Source [8, 11, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37]
Composes withAP2 (a2a-x402), ERC-8004 (x402Support, proofOfPayment), Stripe MPP (exact maps to charge), Visa TAP (its browsingIOU answers an HTTP 402 outside the x402 wire format) Source [38, 39, 40, 41]

How to read this explanation

ELI5 is a short plain-language version. Practitioner is the full text. Spec-deep adds field tables and wire examples. STE shows the Simplified Technical English version instead.

B. Detailed explanation

ELI5 mode: plain-language version only.

Practitioner mode: the full explanation.

Spec-deep mode: the full explanation plus 4 spec-deep blocks of field tables and wire examples.

STE mode: section B is hidden; the Simplified Technical English version (section D) is shown first.

Picture a vending machine on the internet. You press the button for a snack, and instead of the snack the machine shows a price tag: one cent, paid in this kind of money, to this machine. You write a signed note that says “I pay one cent to this machine, and this note is good for the next minute only.” You slide the note into the slot and press the button again.

The machine does not count money itself. It hands your note to a helper standing behind it. The helper checks that the signature is really yours, that you have the money, and that nobody used this note before. If all is well, the helper cashes the note and the machine gives you the snack.

The note names the amount and the machine, so the helper cannot change either one. Each note also carries a one-time number and a short expiry, so nobody can use it twice. In the basic version there is no “give me my money back” button, and the machine learns only which wallet signed the note, not your name.

That is x402. The snack is any web page or online service, the note is a digital signature, and the helper is called a . Software agents can do all of this on their own, with no account, password or card form.

x402 answers one question: how does a server charge for a single HTTP request without accounts, API keys or invoices? The server replies with a header that lists what it : a , a network, an amount, an asset and a payee address.Source [11, 22] The client signs a payment that matches one of those entries and retries the same request with the signature in a header.Source [22] The server does not need to touch a chain itself. It hands the signature to a , which checks it (verify), lets the server do the work, then submits it on-chain (settle) before the response goes out.Source [8, 11, 52] The client’s signature binds the amount and the recipient, so a facilitator cannot redirect funds, and a with a validity window stops replays.Source [11, 29] What x402 does not give you: refunds under the , a dispute process, or, in the payment itself, any statement about who the client is.Source [28, 31, 48, 49, 51] Those live in other layers: the , ERC-8004, or your own policy.Source [30, 39, 44, 49, 50]

Problem and design goals

x402 is an open payment standard that puts payment inside an ordinary HTTP (Hypertext Transfer Protocol) request and response, using the status code 402 Payment Required.Source [8] Its repository says it aims to cover crypto and fiat networks alike, but the bindings written so far are almost all blockchains, plus Lightning and one credit-backed network run by Cloudflare.Source [8, 11, 25, 26, 27, 28] The design came out of Coinbase Developer Platform (CDP): the whitepaper is dated 2025-05-06 and credits Erik Reppel and five co-authors.Source [1]

The target is a payment that costs a fraction of a cent and happens on the first request, made by software that cannot fill in a sign-up form.Source [1] Three design choices follow. First, the price travels in the 402 response, so the client needs no account or API (application programming interface) key in advance.Source [11, 22] Second, in the default methods the client signs an authorization instead of sending funds; on Lightning it pays an invoice and presents the .Source [11, 27, 29] A principle in the repository says no scheme may let the facilitator or the move funds other than as the client intended.Source [8] Third, chain work goes to a facilitator, which usually pays the gas, so neither side has to run blockchain infrastructure.Source [8, 11, 29, 52, 88]

The specification is just as clear about what it leaves out. Client-side budget management and session handling are out of scope, so spending limits live in SDKs (software development kits) and wallets, not in the protocol.Source [11, 64] Keep that in mind when you read “agent payments” marketing: x402 moves a signed payment, and every decision about whether to sign it belongs to someone else.

Actors and roles

x402 has three roles.Source [8, 11] The client is any application or agent that wants a protected resource and can sign a payment. The resource server sells the resource: it publishes requirements, checks payments and serves the response. The facilitator verifies payments and executes them on one or more networks.Source [8, 11]

The facilitator is easy to misread. It does not hold funds and is not a custodian.Source [52] On EVM (Ethereum Virtual Machine) chains it broadcasts the client’s signed authorization and pays the gas; on Solana it co-signs the transaction as fee payer.Source [29, 52, 88] On Solana the fee payer can also be the merchant, and the requirements name it in the extra object.Source [88] Anyone can run a facilitator, and a resource server can verify and settle on its own without one.Source [8, 52] The SDK packages point to the public facilitator at x402.org by default, which serves testnets only, so production servers pick a facilitator on purpose.Source [8, 89] Use is concentrated anyway: in one study of Base and Solana from 2025-10-01 to 2025-12-26, Coinbase’s facilitator handled 77.17M of about 119.7M x402 transactions, and Cloudflare’s 2026 gateway also settles through it.Source [66, 90]

Two newer bindings add roles. In the credit-backed cloudflare:402 network, the network itself is and payTo is the constant merchant.Source [28] In the auth-capture scheme on EVM, an operator drives hold and capture on an escrow contract, by default the AuthCaptureEscrow contract from base/commerce-payments v1.1.Source [35]

Core objects

Five objects carry a payment. PaymentRequired is what the server sends with the 402: a version number, an optional error string, a ResourceInfo describing what is for sale, an accepts list and optional .Source [11] ResourceInfo needs only a URL; description, MIME type, service name, tags and an icon URL are optional.Source [11] Each entry of accepts is a PaymentRequirements object with six required fields (scheme, network, amount, asset, payTo, maxTimeoutSeconds) and an optional extra object.Source [11] Networks are (Chain Agnostic Improvement Proposal 2) identifiers such as eip155:84532, and amounts are strings in the asset’s smallest unit.Source [11] The extra object reserves two keys, assetTransferMethod and ; the rest is scheme specific, such as the token’s (EIP: Ethereum Improvement Proposal) domain name and version on EVM chains.Source [11, 29]

is what the client sends back. It repeats the version, may echo the resource, copies the chosen requirements into accepted, and carries a scheme-specific payload plus any extensions.Source [11] For the exact scheme on EVM with the default method, that payload is a signature and an authorization naming from, to, value, validAfter, validBefore and a nonce.Source [11, 29] Other methods use other shapes: a authorization whose spender is a fixed proxy contract, an ERC-7710 (ERC: Ethereum Request for Comments) delegation, or on Solana one partially signed transaction.Source [29, 88]

The facilitator answers with a VerifyResponse (isValid, an optional invalidReason, the payer and optional extension data) and a SettleResponse (success, errorReason, payer, transaction, network, amount and extensions).Source [11] A settle that broadcast nothing returns an empty transaction string, and a settle still pending must carry the hash.Source [11] GET /supported lists the scheme and network pairs a facilitator handles, the extensions it implements and its signer addresses.Source [11] Extensions travel in both directions as an info object plus a JSON Schema, and the client must echo what it received without deleting or overwriting it.Source [11]

Field tables. Spec version v2.0, read from specs/x402-specification-v2.md section 5 and specs/schemes/exact/scheme_exact_evm.md at commit f8f8330. Descriptions are paraphrased.

PaymentRequired (sent in the PAYMENT-REQUIRED header)Spec version v2.0
FieldTypeRequiredDescription
x402VersionnumberYesProtocol version; 2 for V2. Spec reference for x402Version
errorstringNoHuman-readable reason that payment is needed. Spec reference for error
resourceobject (ResourceInfo)YesDescribes the protected resource. Spec reference for resource
acceptsarray of PaymentRequirementsYesThe payment options the server accepts. Spec reference for accepts
extensionsobjectNoMap of extension id to an info and schema pair. Spec reference for extensions
ResourceInfoSpec version v2.0
FieldTypeRequiredDescription
urlstringYesURL of the protected resource. Spec reference for url
descriptionstringNoHuman-readable description. Spec reference for description
mimeTypestringNoMIME type of the expected response. Spec reference for mimeType
serviceNamestringNoName of the service; printable ASCII, up to 32 characters. Spec reference for serviceName
tagsarray of stringNoDiscovery tags; up to 5, each up to 32 characters. Spec reference for tags
iconUrlstringNoAbsolute http or https icon URL, up to 2048 characters. Spec reference for iconUrl
PaymentRequirements (one entry of accepts)Spec version v2.0
FieldTypeRequiredDescription
schemestringYesScheme id: exact, upto, batch-settlement or auth-capture. Spec reference for scheme
networkstringYesCAIP-2 network id, for example eip155:84532. Spec reference for network
amountstringYesPrice in atomic units of the asset (a ceiling at verify time under upto). Spec reference for amount
assetstringYesToken contract address, or an ISO 4217 code for fiat. Spec reference for asset
payTostringYesRecipient address, or a role constant such as merchant. Spec reference for payTo
maxTimeoutSecondsnumberYesLongest time allowed to complete the payment. Spec reference for maxTimeoutSeconds
extraobjectNoReserved keys assetTransferMethod and paymentFlow; other keys are scheme specific (on EVM, name and version of the token EIP-712 domain). Spec reference for extra
PaymentPayload (sent in the PAYMENT-SIGNATURE header)Spec version v2.0
FieldTypeRequiredDescription
x402VersionnumberYesProtocol version. Spec reference for x402Version
resourceobject (ResourceInfo)NoEcho of the resource being paid for. Spec reference for resource
acceptedobject (PaymentRequirements)YesThe accepts entry the client chose. Spec reference for accepted
payloadobjectYesScheme-specific payment data. Spec reference for payload
extensionsobjectNoEchoed extension data; the client may add but not delete or overwrite. Spec reference for extensions
Exact scheme on EVM, eip3009 method: payloadSpec version v2.0
FieldTypeRequiredDescription
signaturestringYesEIP-712 signature over TransferWithAuthorization. Spec reference for signature
authorization.fromstringYesPayer address. Spec reference for authorization.from
authorization.tostringYesRecipient address; must equal payTo. Spec reference for authorization.to
authorization.valuestringYesAmount in atomic units; must equal amount. Spec reference for authorization.value
authorization.validAfterstringYesUnix time from which the authorization is valid. Spec reference for authorization.validAfter
authorization.validBeforestringYesUnix time at which the authorization expires. Spec reference for authorization.validBefore
authorization.noncestringYesRandom 32-byte value that the token contract accepts only once. Spec reference for authorization.nonce
VerifyResponse (POST /verify)Spec version v2.0
FieldTypeRequiredDescription
isValidbooleanYesWhether the authorization is valid. Spec reference for isValid
invalidReasonstringNoError code when invalid. Spec reference for invalidReason
payerstringNoPayer wallet address. Spec reference for payer
extensionsobjectNoExtension data. Spec reference for extensions
extraobjectNoScheme-specific data. Spec reference for extra
SettleResponse (POST /settle; sent in the PAYMENT-RESPONSE header)Spec version v2.0
FieldTypeRequiredDescription
successbooleanYesWhether settlement succeeded. Spec reference for success
errorReasonstringNoError code on failure; settlement_pending is non-terminal. Spec reference for errorReason
payerstringNoPayer wallet address. Spec reference for payer
transactionstringYesTransaction hash; empty if nothing was broadcast; non-empty with settlement_pending. Spec reference for transaction
networkstringYesCAIP-2 network id. Spec reference for network
amountstringNoAmount actually settled, in atomic units. Spec reference for amount
extensionsobjectNoExtension data. Spec reference for extensions
SupportedResponse (GET /supported)Spec version v2.0
FieldTypeRequiredDescription
kindsarray of SupportedKindYesSupported pairs of x402Version, scheme and network, with optional extra. Spec reference for kinds
extensionsarray of stringYesExtension ids the facilitator implements. Spec reference for extensions
signersobjectYesMap of CAIP-2 patterns such as eip155:* to signer addresses. Spec reference for signers

Illustrative example, spec version v2.0: a decoded PAYMENT-REQUIRED header. Addresses are placeholders; the asset is the (USD Coin) contract on Base Sepolia that the docs list as a default.

{
  "x402Version": 2,
  "error": "PAYMENT-SIGNATURE header is required",
  "resource": {
    "url": "https://api.example.com/weather",
    "description": "Current weather for one city",
    "mimeType": "application/json"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "amount": "10000",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "payTo": "0xb0B0000000000000000000000000000000000B0B",
      "maxTimeoutSeconds": 60,
      "extra": {
        "name": "USDC",
        "version": "2"
      }
    }
  ],
  "extensions": {}
}

Message flow step by step

The main sequence in section C plays the default path: version 2 over HTTP, the exact scheme, the authorization payment flow.Source [11]

  1. The client requests the resource without a payment header.Source [11, 22]
  2. The server answers 402 and puts a base64-encoded PaymentRequired object in the PAYMENT-REQUIRED header.Source [11, 22] Since @x402/core 2.21.0 the SDK also sends Cache-Control no-store on that response, so shared caches do not keep it.Source [32]
  3. The client picks one accepts entry and signs it. The TypeScript client first applies : by default only known assets, and at most $1 per payment.Source [32, 60] It then signs EIP-712 typed data for the EIP-3009 TransferWithAuthorization type.Source [29, 30, 31]
  4. The client sends the same request again with a base64-encoded PaymentPayload in the PAYMENT-SIGNATURE header.Source [22]
  5. The server posts , paymentPayload and paymentRequirements to the facilitator’s POST /verify.Source [11] Verify must not write state.Source [11] The facilitator checks the signature, that the recipient and amount match, the time window, the balance and whether the nonce was used before.Source [11, 29, 91, 92]
  6. If the payment is valid the server runs the handler; if not, it answers 402 again.Source [11, 22]
  7. The server posts the same body to POST /settle, and the facilitator broadcasts the transfer and pays the gas.Source [11, 29, 52, 88]
  8. The server returns 200 with the resource and a base64-encoded SettleResponse in PAYMENT-RESPONSE. A failed settle returns 402 with success false in the same header.Source [22]

Every step has a failure path, and section C plays five of them. An expired window, a wrong recipient and a low balance come back from verify as error codes such as invalid_exact_evm_payload_authorization_valid_before, invalid_exact_evm_payload_recipient_mismatch and insufficient_funds.Source [11] A replayed payment fails because the token contract records every nonce: the TypeScript facilitator simulates the transfer at verify, the simulation reverts, and a follow-up read of the nonce state names the reason.Source [11, 91, 92] That facilitator reports some reasons in its own words, such as invalid_exact_evm_recipient_mismatch and invalid_exact_evm_nonce_already_used, which differ from names in the spec, so match on both if you parse them.Source [92]

A facilitator that does not answer is the awkward case. The TypeScript facilitator client gives up after 90 seconds by default, and the Express middleware turns that into HTTP 502 without running the handler.Source [93, 94] A settle that times out is worse: the transfer may already have happened, so the server should check the chain before it retries. A answer carries the hash; the SDK retries once, and the facilitator reconciles against that hash.Source [11, 52, 93]

Headers in V1 and V2. V2 renamed every header and moved the requirements out of the 402 body.

V2 HTTP headers (x402Version 2)Spec version v2.0
FieldTypeRequiredDescription
PAYMENT-REQUIREDserver to clientYesBase64-encoded PaymentRequired, sent with status 402.
PAYMENT-SIGNATUREclient to serverYesBase64-encoded PaymentPayload on the retried request.
PAYMENT-RESPONSEserver to clientYesBase64-encoded SettleResponse, on 200 (success) or 402 (success false).
EXTENSION-RESPONSESfacilitator to serverNoBase64-encoded extension outcomes; never forwarded to buyers.
V1 HTTP transport (x402Version 1), for contrastSpec version v1 (spec v0.2, 2025-10-03)
FieldTypeRequiredDescription
402 response bodyserver to clientYesJSON PaymentRequirementsResponse with x402Version, error and accepts; no header.
X-PAYMENTclient to serverYesBase64-encoded V1 PaymentPayload with x402Version, scheme, network and payload.
X-PAYMENT-RESPONSEserver to clientYesBase64-encoded V1 SettlementResponse.
network (value)stringYesPlain names such as base-sepolia instead of CAIP-2 ids.
maxAmountRequiredstringYesV1 name of the price field (amount in V2).

HTTP status codes (V2 HTTP transport).

CaseStatus
Payment required402
Invalid payment (malformed payload or requirements)400
Payment failed (verify or settle)402
Server error500
Success200
Permit2 allowance too low and no gas-sponsoring extension (, exact Permit2)412

Error codes named in the specification (section 9). insufficient_funds, invalid_exact_evm_payload_authorization_valid_after, invalid_exact_evm_payload_authorization_valid_before, invalid_exact_evm_payload_authorization_value_mismatch, invalid_exact_evm_payload_signature, invalid_exact_evm_payload_recipient_mismatch, invalid_network, invalid_payload, invalid_payment_requirements, invalid_scheme, unsupported_scheme, invalid_x402_version, invalid_transaction_state, unexpected_verify_error, unexpected_settle_error, settlement_pending. The TypeScript EVM facilitator also emits its own strings, for example invalid_exact_evm_nonce_already_used and invalid_exact_evm_insufficient_balance.

Signed type (exact, eip3009). TransferWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce), signed as EIP-712 typed data under the token contract domain.Source [29, 30, 31]

Illustrative example, spec version v2.0: the body the resource server posts to the facilitator. The same body goes to /verify and then to /settle.

{
  "x402Version": 2,
  "paymentPayload": {
    "x402Version": 2,
    "accepted": {
      "scheme": "exact",
      "network": "eip155:84532",
      "amount": "10000",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "payTo": "0xb0B0000000000000000000000000000000000B0B",
      "maxTimeoutSeconds": 60,
      "extra": {
        "name": "USDC",
        "version": "2"
      }
    },
    "payload": {
      "signature": "0xabab...1b",
      "authorization": {
        "from": "0xA11ce0000000000000000000000000000000a11c",
        "to": "0xb0B0000000000000000000000000000000000B0B",
        "value": "10000",
        "validAfter": "1791720595",
        "validBefore": "1791720660",
        "nonce": "0x5e5e5e5e7a1c...7a1c"
      }
    }
  },
  "paymentRequirements": {
    "scheme": "exact",
    "network": "eip155:84532",
    "amount": "10000",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "payTo": "0xb0B0000000000000000000000000000000000B0B",
    "maxTimeoutSeconds": 60,
    "extra": {
      "name": "USDC",
      "version": "2"
    }
  }
}

Lifecycle and states

The order of verify, handler and settle is not fixed. V2 names three payment flows in extra.paymentFlow: authorization (verify, run, settle), upfront (settle, then run) and escrow (settle a deposit or hold, run, then settle the final charge).Source [11] Whatever the flow, at least one verify or settle must run before the handler.Source [11] A client must not pay into a flow it does not recognize, and should prefer authorization when a server offers more than one.Source [11]

Each flow puts the risk somewhere else. Under authorization the resource runs before funds move, so a failed settle leaves the seller unpaid for work it has done; under upfront, a handler that fails leaves the client charged.Source [11, 95] Lightning uses upfront because nothing can be pulled from a Lightning wallet later. The server issues a fresh (the Lightning invoice format), the client pays it and returns the preimage, and the facilitator checks the hash and records it against replay.Source [27] The auth-capture scheme defaults to escrow: a first settle places a hold, the handler runs, and a second settle captures the real amount or voids the hold.Source [11, 49] Its operations are authorize, charge, capture, void, refund and reclaim, and reclaim lets the client recover an untouched hold after the capture deadline.Source [49]

Settlement itself has three outcomes: success, a terminal failure, and settlement_pending, which is not final; the SDK’s resource server retries once, and the facilitator reconciles against the broadcast hash.Source [11, 52] Over (the Agent2Agent protocol) the task carries its own status values, from payment-required through payment-submitted and payment-verified to payment-completed or payment-failed.Source [24] EVM channels have an on-chain lifecycle of their own, visible as ChannelCreated, Deposited, Claimed, Settled, Refunded, WithdrawInitiated, WithdrawFinalized and ChannelClosed events.Source [96, 97] The state machine in section C folds all three flows into one diagram.

Payment flows (extra.paymentFlow, section 6.1).

FlowOrderNote
authorization (default)verify, resource, settle, respond/verify is read-only; funds move after the handler.
upfrontsettle, resource, respondNo /verify; needed where funds cannot be pulled later (Lightning).
escrowsettle, resource, settle, respondFirst settle commits a deposit or hold; default for auth-capture and SVM (Solana Virtual Machine) .

A2A payment status values (x402.payment.status, specs/transports-v2/a2a.md): payment-required, payment-rejected, payment-submitted, payment-verified, payment-completed, payment-failed.

auth-capture lifecycle operationsSpec version auth-capture v1.1 (2026-08-18)
FieldTypeRequiredDescription
authorizeonceNoReserves the client funds in a hold. Client-authorized.
chargeonceNoCollects in one step with no hold (authorization flow).
capturerepeatableNoPays held funds to the receiver, up to the held total.
voidonceNoReleases the remaining hold while one exists.
refundrepeatableNoReturns captured funds, up to captured minus refunded, until extra.refundDeadline.
reclaimonceNoClient-only recovery of an untouched hold after extra.captureDeadline; never relayed by the facilitator.

Security and trust model (summary)

The signed note protects you in two ways: nobody can change the amount or the name on it, and it works only once and only for a short time that the shop sets. It does not protect you from writing the note to the wrong shop, from a shop that takes the money and then serves nothing, or from spending too much in a day. Those checks are up to you and your wallet.

The core guarantee is narrow and strong. With the EIP-3009 or Permit2 method of exact on EVM, the client’s signature covers the recipient and the amount, so a facilitator can broadcast the payment but cannot change either. With an ERC-7710 delegation, the delegation’s caveats must set those limits.Source [29] comes from a random 32-byte nonce that EIP-3009 tokens refuse to reuse, plus a validAfter and validBefore window.Source [11] In on EVM, a witness field names the one facilitator allowed to settle.Source [95]

Everything else is trust you place in a party. The exact scheme defines no refund, and any remedy is the server’s own arrangement.Source [48] Under upto the client trusts the server to charge fairly up to the ceiling.Source [11, 95] There is no dispute process in the protocol.Source [48, 49] Client spending limits are an SDK feature, not a protocol rule, and passing spendControls false turns them off.Source [8, 11, 60, 64]

Both advisories the maintainers published concern SDK packages, not the protocol text: rated high, they hit legacy resource-server packages (2025-08-20) and facilitators that process Solana payments (2026-03-06).Source [98, 99] Neither has a CVE (Common Vulnerabilities and Exposures) identifier.Source [16, 19, 98, 99] A CVE came from elsewhere: on 2026-10-20 the third-party CNA (CVE Numbering Authority) VulnCheck published CVE-2026-113603, rated medium, which GitHub mirrors as an unreviewed advisory.Source [16, 17, 18, 19, 20] In it, a client pays for a cheap route protected by sign-in-with-x but names an expensive route in the payment payload, and the server records the payment under that client-supplied path.Source [16, 17, 18] The fix was still unmerged on 2026-11-14, so releases newer than the ones the record names appear to be affected too, an inference from the code on main.Source [16, 20]? unverified

V12 published an industry review on 2026-10-22 that reports 25 findings.Source [21] It describes three critical ones: a Solana facilitator that accepted a spending approval as a transfer, a sign-in client that signed logins for other sites, and a default client with no spending limit.Source [21, 32, 61, 62, 63] All three were fixed in the 2.23.0 releases of August 2026 without an advisory, and the changelogs did not call them security fixes.Source [13, 21, 32, 61, 62, 63] Core releases also closed route-matching bypasses through encoded paths.Source [32] A fix for HEAD requests that reached paid GET handlers merged on 2026-10-13 and shipped on 2026-10-28 in @x402/core 2.29.0, PyPI x402 2.26.0 and Go v2.29.0.Source [10, 13, 68, 69, 70, 71] The deprecated V1 packages are the weak spot. Their middleware has an open, public paywall bypass through encoded route parameters, and on 2026-11-14 no V1 release carried a fix for it, the HEAD fix or the paywall script-injection fix.Source [10, 32, 68, 76, 77, 78, 79] Academic work describes five practical attacks on authorization, binding and replay handling, flaws such as cross-resource substitution and a duplicate settlement race, and the missing atomic link between payment and delivery.Source [43, 100, 101] Section H has the full threat table, and section I lists what a controls layer can add.

Versioning and governance

Two protocol versions exist, and the x402Version field says which one a message uses; version 2 is current.Source [11, 14] The v2.0 specification is dated 2025-12-09 and rebuilt the payment objects around CAIP-2 networks, a separate ResourceInfo and extensions.Source [11] V2 launched on 2025-12-11 with @x402/core 2.0.0.Source [12, 13] The headers changed names: V1 put the requirements in the 402 body and used X-PAYMENT and X-PAYMENT-RESPONSE, while V2 uses PAYMENT-REQUIRED, PAYMENT-SIGNATURE and PAYMENT-RESPONSE.Source [22, 53, 54] The V1 specification stays in the repository, and the launch post says the SDKs stay backward compatible.Source [14, 102]

Package names follow the split. The unscoped npm packages, x402 and x402-express among them, are the V1 legacy set, while the @x402 scoped packages and the PyPI package x402 2.x implement V2.Source [8, 53, 70] The V1 packages are deprecated and promise security patches only, but x402, x402-express and x402-hono have had no release since 2026-04-16 and lack fixes that V2 has shipped (as of 2026-11-14).Source [10, 32, 68, 76, 78, 79] PyPI x402 is not legacy: its latest version is 2.28.0, published 2026-11-12.Source [70] The TypeScript packages ship minor releases about weekly and reached 2.31.0 on 2026-11-12, while the specification itself is still v2.0.Source [13]

Governance moved from a company to a foundation. Cloudflare and Coinbase announced a foundation plan on 2025-09-23.Source [56] A technical charter for x402 a Series of LF Projects, LLC was adopted on 2026-03-31. The Linux Foundation announced the x402 Foundation on 2026-04-02 and its operational launch on 2026-07-14, with 40 member organizations; on 2026-11-14 its members page listed 58.Source [2, 3, 4, 15] On 2026-10-01 the Linux Foundation named Michael Hursta executive director of the x402 Foundation, and a Governing Board handles budget and business oversight while the TSC makes the technical decisions.Source [6, 67] The charter sets up a Technical Steering Committee (TSC) with one vote per representative and majority decisions, and needs a 75 percent supermajority to change the Core Principles.Source [2] TSC.md names Coinbase (Erik Reppel), Cloudflare (Rohin Lohe) and Stripe (Steve Kaliski).Source [5] The original repository moved to the x402-foundation organization, and coinbase/x402 is now a fork of it.Source [103, 104] The code is Apache-2.0, and the charter puts documentation under CC BY 4.0. CONTRIBUTING.md requires signed commits, and the charter also asks for a DCO (Developer Certificate of Origin) sign-off on code.Source [2, 7, 8, 9] So: Coinbase originated x402, but it no longer governs it alone.Source [1, 2, 3, 4]

Names changed too. The scheme Cloudflare proposed as deferred in 2025-09 became batch-settlement when it merged on 2026-04-15, and old deferred examples still linger in one extension and in the V1 specification.Source [14, 51, 55, 56]

Extensibility

x402 grows along three axes. Schemes define how value moves: exact, upto, batch-settlement and auth-capture in V2.Source [11] A new scheme starts as a specification pull request and is implemented after it merges; a new chain family goes spec first, then one reference SDK, then the others.Source [9] Networks are bindings of a scheme. On 2026-11-14 the TypeScript SDK listed 14 network families (13 of them published on npm), from EVM chains and Solana to TON, XRPL and Cardano, while Go and Python cover fewer.Source [13, 64, 65] The Lightning binding is specified but not yet in any SDK.Source [8, 26, 27, 64, 65] Extensions add optional features without touching the core: , sign-in-with-x, payment-identifier, offer-receipt, builder-code, http-message-signatures, auth-hints and two gas-sponsoring extensions.Source [8, 105]

A few deserve a closer look. Bazaar describes how to call a resource over HTTP or (Model Context Protocol), so that a discovery service can list it.Source [105] The CDP Bazaar endpoint answers without an API key; its listings carry seller-supplied tags and 30-day usage counts but no category taxonomy, and since 2026-10-13 CDP screens their metadata for prompt-injection text.Source [11, 72, 73, 106] Payment-identifier gives idempotency: a server returns 409 when the same identifier arrives with a different payload.Source [107] Offer-receipt signs offers and receipts with EIP-712 or JWS (JSON Web Signature), but the SDK parity table lists it for TypeScript only.Source [64, 108] Builder-code appends an suffix to settlement calldata so indexers can attribute the app and the facilitator, which is attribution, not revenue sharing.Source [33, 44] Facilitators can also hand extension results to the server through an EXTENSION-RESPONSES header that buyers never see.Source [11]

Transports are the third axis. The same objects ride in HTTP headers, in an MCP tool result and the _meta field of the retried tool call, and in A2A task metadata, while the facilitator API underneath stays HTTP.Source [11, 23, 24] Over MCP, if settlement fails after the tool ran, the server should return only the payment error, not the tool output.Source [23]

Extension keys and their main fieldsSpec version v2.0 (specs/extensions)
FieldTypeRequiredDescription
bazaardiscoveryNoinfo.input.type (http or mcp), method, queryParams, bodyType, body, headers, toolName, inputSchema; info.output.type and info.output.example.
sign-in-with-xidentityNoCAIP-122 sign-in: info.domain, uri, version, nonce, issuedAt, expirationTime, statement, resources; client header SIGN-IN-WITH-X. Caveat: CVE-2026-113603 (2026-10-20) covers a server hook that records payments under the client-supplied resource URL; its fix was unmerged on 2026-11-14.
payment-identifieridempotencyNoinfo.required and info.id (16 to 128 characters); 409 on a fingerprint mismatch.
offer-receiptevidenceNoSigned offers and receipts, format eip712 or jws; EIP-712 domains x402 offer and x402 receipt.
builder-codeattributionNoERC-8021 Schema 2 CBOR suffix with keys a (app), w (wallet or facilitator), s (service), m (facilitator metadata).
http-message-signaturesidentityNoRFC 9421 signatures: info.registrationUrl, info.signatureSchemes, info.tags.
auth-hintsidentityNoinfo.authRequirements with acceptIndexes and methods (type, tokenType, authorizationServer).
eip2612GasSponsoringgasNoClient signs an EIP-2612 permit so the facilitator can approve Permit2 without client gas.
erc20ApprovalGasSponsoringgasNoClient supplies a signed approve transaction for Permit2.

How it composes with the other seven

x402 is a payment step that, in the payment itself, says nothing about who the client is or what the user approved, so it pairs with protocols that carry those answers.Source [11, 28, 31, 51, 64] Google’s AP2 (Agent Payments Protocol) announcement of 2025-09-16 launched an A2A x402 extension with Coinbase, which makes x402 one way to pay under AP2.Source [38] ERC-8004 keeps payments out of its core but gives agents an x402Support flag and lets feedback carry proof of an x402 payment.Source [39] MPP (Machine Payments Protocol), co-authored by Stripe and Tempo, maps x402 exact onto its charge intent and can serve both protocols on one route.Source [40, 109, 110] Visa’s TAP (Trusted Agent Protocol) specification has its own object for answering a 402.Source [41] Mastercard said on 2026-10-20 that its Agent Pay for Machines builds on x402: the service answers 402, and the agent signs an off-chain that providers can redeem later.Source [111] No link to ACP (Agentic Commerce Protocol), maintained by OpenAI and Stripe, or to UCP (Universal Commerce Protocol) appears in their repositories.Source [8, 112, 113, 114, 115, 116] The section “Compare and compose” below goes further.

Limitations and open issues

  • Volume is contested. Until late October 2026 the x402.org home page showed a “Last 30 days” counter of 75.41M transactions and $24.24M.Source [80, 81, 82, 83] It never changed from 2025-12-14 to 2026-10-24, so it was never a live 30-day figure, and by 2026-11-14 it was gone, without an announcement.Source [80, 81, 82, 83, 117] The trackers still disagree, each with its own method.Source [118, 119, 120] For the 30 days to 2026-11-14, x402scan showed about 4.93M transactions and $1.89M (3.02M and $1.23M on 2026-10-19).Source [118, 119] agenteconomy.to counted about 200.2M cumulative transactions and $43.0M as of 2026-11-14, and about $274,000 for October 2026.Source [120] Visa and Artemis data to 2026-04-21 adjusts activity to about $15.0M across 109.6M transactions.Source [121, 122, 123] Visa’s Cuy Sheffield was later reported citing about $19M across about 134M adjusted transactions, with no data date, so the two figures are not directly comparable.Source [121, 124] Artemis flagged 63.94 percent of transactions as gamed on average between 2025-11-09 and 2026-02-07.Source [125] A paper of 2026-07-14 counts 136,708,672 settlements on Base over 280 days and argues that the count can be manufactured almost for free.Source [126] Read every volume figure as a claim with a date and a method.Source [80, 123, 125, 126]
  • Facilitators concentrate trust. The protocol is permissionless, yet one study found Coinbase’s facilitator handling 77.17M of about 119.7M Base and Solana x402 transactions from 2025-10-01 to 2025-12-26.Source [90] A facilitator cannot redirect an EIP-3009 or Permit2 payment, but it can refuse service (the CDP facilitator declines payments that fail its screening), and it sees every payment it handles.Source [11, 29, 30, 89, 105, 127, 128, 129]
  • Payment and delivery are not atomic. Under authorization the resource runs before funds move, so a failed settle leaves the seller unpaid for work done; under upfront the buyer risks paying for nothing, and A402 proposes a fix.Source [11, 43, 95]
  • Headers get big. Base64 JSON can pass 2 KB, which some HTTP intermediaries reject, so the cloudflare:402 binding omits schema and optional fields.Source [28]
  • Spec drift. SettleResponse is also called SettlementResponse, deferred examples survive the rename, the TypeScript facilitator uses its own reason strings, and the batch-settlement EVM version table carries a 2025 date for a 2026 file.Source [11, 30, 37, 51, 92]
  • Uneven SDKs. Python lacks auth-capture and Solana upto and batch-settlement, no SDK implements Lightning yet, and the Java module (org.x402:x402) is not on Maven Central (checked 2026-11-14).Source [8, 13, 27, 64, 65, 130]
  • Deprecated V1 stays exposed. The legacy V1 middleware has an open paywall bypass (issue #3850), and npm x402, x402-express and x402-hono have had no release since 2026-04-16 despite promising security patches (as of 2026-11-14).Source [10, 32, 68, 76, 77, 78, 79]
  • Metadata leaks. Resource URLs and descriptions reach the facilitator, and one paper treats that as a PII (personally identifiable information) channel.Source [11, 29, 30, 105, 129, 131]
  • Small steering group. Three companies sit on the TSC, and Stripe also co-created the competing MPP.Source [5, 110]

What changed in 2025 and 2026

  • 2025-05-06: whitepaper and public launch; npm x402 0.3.0 published the same day.Source [1, 10]
  • 2025-08-20: first high-severity advisory, for legacy npm packages below 0.5.2.Source [98]
  • 2025-09-16: the A2A x402 extension launched with AP2, and a2a-x402 published v0.1.0.Source [38, 132]
  • 2025-09-23: Cloudflare and Coinbase announced a foundation plan; Cloudflare’s Agents SDK added x402 for agents and MCP servers.Source [56, 133]
  • 2025-10: daily transactions surged during a wave of x402-powered memecoin launches (reported).Source [134]
  • 2025-12-11: V2 launched.Source [12, 13]
  • 2026-01-08 and 2026-01-15: Permit2 support and the bazaar extension merged.Source [37, 105]
  • 2026-02-02: sign-in-with-x merged; 2026-02-10 brought a Stripe preview (reported), and on 2026-02-11 Coinbase made Agentic Wallet, which pays for x402 services, available (its docs were gone by 2026-11-14).Source [31, 37, 73, 135, 136, 137]
  • 2026-03-04: the upto scheme merged; 2026-03-06: the Solana facilitator advisory.Source [99, 138]
  • 2026-03-31 and 2026-04-02: the charter was adopted and the Linux Foundation announced the x402 Foundation.Source [2, 3]
  • 2026-04-15: batch-settlement merged with the cloudflare:402 binding; 2026-04-29: Circle Nanopayments went live.Source [55, 57]
  • 2026-05-12 and 2026-05-13: TSC.md and the auth-capture scheme.Source [5, 58, 59]
  • 2026-07-14: the foundation’s operational launch with 40 members.Source [4]
  • 2026-08-18: spendControls with a $1 default cap in @x402/core 2.23.0.Source [13, 21, 32] With the origin check and a Solana TransferChecked guard, these releases closed three critical findings that V12 later disclosed, without an advisory.Source [21, 32, 61, 62, 63]
  • 2026-09-23: exact on Lightning (a specification; no SDK implements it yet); 2026-09-30: Cloudflare Monetization Gateway closed beta, settling (USD Coin) on Base through Coinbase’s facilitator and separate from the credit-backed cloudflare:402 variant.Source [26, 27, 28, 66]
  • 2026-10-01: Michael Hursta became executive director of the x402 Foundation.Source [67]
  • 2026-10-13: a fix for HEAD requests that reached paid GET handlers merged (released on 2026-10-28), and the CDP Bazaar began screening listing metadata for prompt-injection text.Source [10, 13, 68, 69, 70, 71, 72, 73]
  • 2026-10-15: SECURITY.md moved vulnerability reports from Coinbase’s HackerOne program to private contact with the x402 TSC or maintainers.Source [74, 75]
  • 2026-10-17 and 2026-10-20: a sign-in-with-x payment bypass was reported in public, and the third-party CNA VulnCheck published it as CVE-2026-113603; the fix was unmerged on 2026-11-14.Source [16, 17, 18, 19, 20]
  • 2026-10-19: a paywall bypass in the deprecated V1 middleware was reported in public (issue #3850); it was still open on 2026-11-14.Source [76, 77]
  • 2026-10-20: Mastercard opened Agent Pay for Machines Early Access and said the service builds on x402.Source [111]
  • 2026-10-22: V12 published a review of 25 findings, three of them critical SDK flaws fixed in August 2026 without an advisory.Source [21, 32, 61, 62, 63]
  • 2026-10-27: the x402.org home page was last edited, and by 2026-11-14 its frozen Last 30 Days counter was gone.Source [80, 81, 82, 83]
  • 2026-10-28: @x402/core 2.29.0, PyPI x402 2.26.0 and Go v2.29.0 shipped the HEAD fix; the V1 npm packages got no release.Source [10, 13, 32, 68, 69, 70, 71, 76, 78, 79]
  • 2026-11-12: the SDKs reached @x402/core 2.31.0, PyPI x402 2.28.0 and Go v2.31.0, and Brave began selling Brave Search API requests over x402 at $0.005 each, through a facilitator it runs, with USDC on Base.Source [13, 70, 84, 85, 86, 87, 139, 140]

C. Diagrams

Main flow: x402 V2 over HTTP: exact scheme, authorization payment flow

The default x402 path. The server answers an unpaid request with 402 and a PAYMENT-REQUIRED header, the client retries with a signed EIP-3009 authorization in PAYMENT-SIGNATURE, the server asks a facilitator to verify, runs the handler, asks the facilitator to settle, and returns the resource with a PAYMENT-RESPONSE header.

Client (agent)
Resource server
Facilitator
Base Sepolia

Use the left and right arrow keys to step, space to play or pause, Home and End to jump.

Step 1 of 13Client (agent) to Resource server

GET /weather (no payment header)

The client asks for the resource like any HTTP request. It does not know the price yet, so it sends no PAYMENT-SIGNATURE header. A client that already knows the requirements can skip this round trip.

Spec: Payment Required Signaling for step 1 (external link)

HTTP payload. Illustrative example, spec version v2.0.
GET /weather HTTP/1.1
Host: api.example.com
Accept: application/json

Spec version v2.0 (2025-12-09). Sources: [11], [22], [29], [32], [52], [60]

Step 1 of 13: Client (agent) to Resource server. GET /weather (no payment header).

Sequence diagram: x402 V2 over HTTP: exact scheme, authorization payment flow

Diagram is loading.

Generated from the flow definition (spec version v2.0, 2025-12-09). The player above uses the same data.

Text alternative

Sequence diagram: x402 V2 over HTTP: exact scheme, authorization payment flow. 4 participants: Client (agent), Resource server, Facilitator, and Base Sepolia. 13 steps, 4 crossing a trust boundary, 10 failure branches. Based on x402 v2.0 (2025-12-09). Step 1: Client (agent) to Resource server: GET /weather (no payment header). Step 2: Resource server to Client (agent): 402 Payment Required with PAYMENT-REQUIRED. If A route has no registered scheme: Since @x402/core 2.25.0 the SDK throws an error instead of answering 402 with an empty accepts list. Step 3: Client (agent) to Client (agent): Choose an accepts entry, check limits, sign EIP-712. If Amount is above the spend cap or the asset is not allowed: The SDK rejects the entry; if no entry is left, no payment is created. If The entry names a paymentFlow the client does not recognize: The client must skip that entry. Step 4: Client (agent) to Resource server: Retry GET /weather with PAYMENT-SIGNATURE. If The header is malformed: The spec maps a malformed payload to 400; the TypeScript server treats an undecodable header as missing and answers 402 with a fresh PAYMENT-REQUIRED. Step 5: Resource server to Facilitator: POST /verify. This step crosses a trust boundary. If The facilitator times out or returns malformed data: See the facilitator-down flow: the Express middleware answers 502 and the handler does not run. A refused connection produces a 402 instead. Step 6: Facilitator to Base Sepolia: Read balance and nonce state, simulate. This step crosses a trust boundary. Step 7: Facilitator to Resource server: Return VerifyResponse isValid true. If isValid is false (for example expired window, wrong recipient, used nonce, low balance): The server answers 402 and the handler does not run. See the failure flows. Step 8: Resource server to Resource server: Run the handler. If The handler fails: The server does not settle, so the client is not charged. Step 9: Resource server to Facilitator: POST /settle. This step crosses a trust boundary. If The settle call times out: The outcome is indeterminate: the transfer may still confirm, so the server should check the chain before it retries. Step 10: Facilitator to Base Sepolia: Broadcast transferWithAuthorization. This step crosses a trust boundary. If The nonce was consumed in the meantime or the balance dropped: The transaction reverts; the facilitator returns success false. Step 11: Base Sepolia to Facilitator: Return transaction receipt. Step 12: Facilitator to Resource server: Return SettleResponse success true. If errorReason is settlement_pending: Non-terminal: the transaction was broadcast but not confirmed. The response carries the hash; the SDK server retries settle once, and the facilitator reconciles against that hash. Step 13: Resource server to Client (agent): 200 OK with PAYMENT-RESPONSE.

  1. Step 1: Client (agent) to Resource server: GET /weather (no payment header).
  2. Step 2: Resource server to Client (agent): 402 Payment Required with PAYMENT-REQUIRED. If A route has no registered scheme: Since @x402/core 2.25.0 the SDK throws an error instead of answering 402 with an empty accepts list.
  3. Step 3: Client (agent) to Client (agent): Choose an accepts entry, check limits, sign EIP-712. If Amount is above the spend cap or the asset is not allowed: The SDK rejects the entry; if no entry is left, no payment is created. If The entry names a paymentFlow the client does not recognize: The client must skip that entry.
  4. Step 4: Client (agent) to Resource server: Retry GET /weather with PAYMENT-SIGNATURE. If The header is malformed: The spec maps a malformed payload to 400; the TypeScript server treats an undecodable header as missing and answers 402 with a fresh PAYMENT-REQUIRED.
  5. Step 5: Resource server to Facilitator: POST /verify. This step crosses a trust boundary. If The facilitator times out or returns malformed data: See the facilitator-down flow: the Express middleware answers 502 and the handler does not run. A refused connection produces a 402 instead.
  6. Step 6: Facilitator to Base Sepolia: Read balance and nonce state, simulate. This step crosses a trust boundary.
  7. Step 7: Facilitator to Resource server: Return VerifyResponse isValid true. If isValid is false (for example expired window, wrong recipient, used nonce, low balance): The server answers 402 and the handler does not run. See the failure flows.
  8. Step 8: Resource server to Resource server: Run the handler. If The handler fails: The server does not settle, so the client is not charged.
  9. Step 9: Resource server to Facilitator: POST /settle. This step crosses a trust boundary. If The settle call times out: The outcome is indeterminate: the transfer may still confirm, so the server should check the chain before it retries.
  10. Step 10: Facilitator to Base Sepolia: Broadcast transferWithAuthorization. This step crosses a trust boundary. If The nonce was consumed in the meantime or the balance dropped: The transaction reverts; the facilitator returns success false.
  11. Step 11: Base Sepolia to Facilitator: Return transaction receipt.
  12. Step 12: Facilitator to Resource server: Return SettleResponse success true. If errorReason is settlement_pending: Non-terminal: the transaction was broadcast but not confirmed. The response carries the hash; the SDK server retries settle once, and the facilitator reconciles against that hash.
  13. Step 13: Resource server to Client (agent): 200 OK with PAYMENT-RESPONSE.

Source of truth: Payment Required Signaling (external link) Generated from src/content/flows/x402-v2-exact-authorization.json.

Lifecycle: x402 payment lifecycle (V2, all three payment flows)

A filled dot marks the initial state; terminal states have a double border; dashed lines go back to an earlier state. Numbers on the lines match the transition list.

Transition
Unpaid request to Payment required (402)
Trigger
Server sends 402
API call
HTTP 402 + PAYMENT-REQUIRED
Spec reference
transports-v2/http.md
About Payment required (402)
PAYMENT-REQUIRED header sent with the accepts list.
State notes
Unpaid request
No PAYMENT-SIGNATURE header.
Payment required (402)
PAYMENT-REQUIRED header sent with the accepts list.
Payload received
PAYMENT-SIGNATURE decoded; the flow comes from extra.paymentFlow.
Verified
authorization flow only. /verify is read-only.
Committed before execution
upfront: settled. escrow: deposit or hold placed.
Settlement pending
errorReason settlement_pending; transaction hash present.
Settled
success true; PAYMENT-RESPONSE carries the transaction hash.
Rejected
400 for a malformed payload and 402 for a failed payment (spec); the @x402/express middleware answers 502 when the facilitator times out or returns malformed data (SDK behavior).
Voided or reclaimed
auth-capture escrow only.

Spec version v2.0.

State diagram: x402 payment lifecycle (V2, all three payment flows)

Diagram loads when it scrolls into view.

Generated from the state machine definition (spec version v2.0).

Text alternative

State diagram: x402 payment lifecycle (V2, all three payment flows). 11 states: Unpaid request, Payment required (402), Payload received, Verified, Committed before execution, Handler executed, Settlement pending, Settled, Rejected, Responded 200, and Voided or reclaimed. Starts in Unpaid request. Ends in Rejected, Responded 200, and Voided or reclaimed. 20 transitions. From Unpaid request to Payment required (402) when Server sends 402 (HTTP 402 + PAYMENT-REQUIRED). From Payment required (402) to Payload received when Client retries with a signed payload (PAYMENT-SIGNATURE header). From Payload received to Rejected when Malformed payload or requirements (HTTP 400). From Payload received to Verified when authorization flow: facilitator returns isValid true (POST /verify). From Payload received to Rejected when Facilitator returns isValid false, for example for an unsupported scheme or network (POST /verify, then HTTP 402). From Payload received to Rejected when Facilitator times out or returns malformed data (@x402/express answers 502; SDK behavior, not in the spec) (HTTP 502). From Payload received to Committed before execution when upfront or escrow flow: first settle succeeds (POST /settle). From Payload received to Rejected when upfront or escrow flow: first settle fails (POST /settle, then HTTP 402). From Verified to Handler executed when Handler runs. From Verified to Rejected when Handler fails: no settle, so the client is not charged. From Committed before execution to Handler executed when Handler runs. From Handler executed to Settled when authorization flow: settle succeeds, or escrow: capture succeeds (POST /settle). From Handler executed to Settlement pending when Settle broadcast but not confirmed, or timed out (POST /settle). From Settlement pending to Settled when SDK retries settle once and the facilitator reconciles against the broadcast hash. From Settlement pending to Rejected when Reconciliation shows no transfer and one retry fails (POST /settle). From Handler executed to Rejected when Settle fails (for example insufficient_funds) (HTTP 402 + PAYMENT-RESPONSE success false). From Handler executed to Voided or reclaimed when escrow: server voids the hold (POST /settle with payload.type void). From Handler executed to Voided or reclaimed when escrow: client reclaims an untouched hold after captureDeadline (reclaim called by the client on the escrow contract (never relayed through the facilitator)). From Settled to Responded 200 when Server returns the resource (HTTP 200 + PAYMENT-RESPONSE). From Handler executed to Responded 200 when upfront: payment already settled, server returns the resource (HTTP 200 + PAYMENT-RESPONSE).

  1. From Unpaid request to Payment required (402) when Server sends 402 (HTTP 402 + PAYMENT-REQUIRED).
  2. From Payment required (402) to Payload received when Client retries with a signed payload (PAYMENT-SIGNATURE header).
  3. From Payload received to Rejected when Malformed payload or requirements (HTTP 400).
  4. From Payload received to Verified when authorization flow: facilitator returns isValid true (POST /verify).
  5. From Payload received to Rejected when Facilitator returns isValid false, for example for an unsupported scheme or network (POST /verify, then HTTP 402).
  6. From Payload received to Rejected when Facilitator times out or returns malformed data (@x402/express answers 502; SDK behavior, not in the spec) (HTTP 502).
  7. From Payload received to Committed before execution when upfront or escrow flow: first settle succeeds (POST /settle).
  8. From Payload received to Rejected when upfront or escrow flow: first settle fails (POST /settle, then HTTP 402).
  9. From Verified to Handler executed when Handler runs.
  10. From Verified to Rejected when Handler fails: no settle, so the client is not charged.
  11. From Committed before execution to Handler executed when Handler runs.
  12. From Handler executed to Settled when authorization flow: settle succeeds, or escrow: capture succeeds (POST /settle).
  13. From Handler executed to Settlement pending when Settle broadcast but not confirmed, or timed out (POST /settle).
  14. From Settlement pending to Settled when SDK retries settle once and the facilitator reconciles against the broadcast hash.
  15. From Settlement pending to Rejected when Reconciliation shows no transfer and one retry fails (POST /settle).
  16. From Handler executed to Rejected when Settle fails (for example insufficient_funds) (HTTP 402 + PAYMENT-RESPONSE success false).
  17. From Handler executed to Voided or reclaimed when escrow: server voids the hold (POST /settle with payload.type void).
  18. From Handler executed to Voided or reclaimed when escrow: client reclaims an untouched hold after captureDeadline (reclaim called by the client on the escrow contract (never relayed through the facilitator)).
  19. From Settled to Responded 200 when Server returns the resource (HTTP 200 + PAYMENT-RESPONSE).
  20. From Handler executed to Responded 200 when upfront: payment already settled, server returns the resource (HTTP 200 + PAYMENT-RESPONSE).
State notes (9)
Unpaid request
No PAYMENT-SIGNATURE header.
Payment required (402)
PAYMENT-REQUIRED header sent with the accepts list.
Payload received
PAYMENT-SIGNATURE decoded; the flow comes from extra.paymentFlow.
Verified
authorization flow only. /verify is read-only.
Committed before execution
upfront: settled. escrow: deposit or hold placed.
Settlement pending
errorReason settlement_pending; transaction hash present.
Settled
success true; PAYMENT-RESPONSE carries the transaction hash.
Rejected
400 for a malformed payload and 402 for a failed payment (spec); the @x402/express middleware answers 502 when the facilitator times out or returns malformed data (SDK behavior).
Voided or reclaimed
auth-capture escrow only.

Source of truth: x402 Protocol Specification v2 (external link) Generated from src/content/states/x402-payment-lifecycle.json.

More diagrams

x402 actors and trust boundaries

Diagram loads when it scrolls into view.

Four trust zones: the client holds the key and its own spend limits, the seller runs the middleware and the handler, the facilitator verifies and settles, and the network moves the funds. On Lightning the client pays the invoice itself and settle only checks the preimage. Discovery services are public and optional. Numbers follow the main flow.

Text alternative

Flowchart. The client zone holds the client or agent, its wallet key and spendControls. The client sends a request to the x402 middleware in the seller zone and gets 402 with PAYMENT-REQUIRED, signs with the wallet key, and retries with PAYMENT-SIGNATURE. The middleware calls the facilitator zone: POST /verify, which only reads the token contract, and POST /settle, which broadcasts to the token contract and pays gas. For the Lightning binding the client pays the invoice itself, and settle only checks the preimage and records the payment hash. The middleware reads GET /supported at startup. The client can find resources through the Bazaar discovery endpoint and x402scan.

Source of truth: x402 specification v2, sections 3 and 7 (external link) Generated from src/content/diagrams/x402-context.mmd.

x402 V2 core objects

Diagram loads when it scrolls into view.

The V2 types from the specification. PaymentRequired travels in PAYMENT-REQUIRED, PaymentPayload in PAYMENT-SIGNATURE and SettleResponse in PAYMENT-RESPONSE. The payload object is scheme specific; the exact EVM form with an EIP-3009 authorization is shown.

Text alternative

Class diagram. PaymentRequired has x402Version, error, a ResourceInfo resource, one or more PaymentRequirements in accepts, and extensions. ResourceInfo has url, description, mimeType, serviceName, tags and iconUrl. PaymentRequirements has scheme, network, amount, asset, payTo, maxTimeoutSeconds and extra. PaymentPayload has x402Version, resource, the accepted PaymentRequirements, a scheme payload and extensions. The exact EVM payload has a signature and an authorization with from, to, value, validAfter, validBefore and nonce. Each extension has info and schema. Verify returns VerifyResponse with isValid, invalidReason and payer. Settle returns SettleResponse with success, errorReason, payer, transaction, network and amount. GET /supported returns kinds, extensions and signers.

Source of truth: x402 specification v2, section 5 Types (external link) Generated from src/content/diagrams/x402-data-model.mmd.

V1 versus V2 wire format

Diagram loads when it scrolls into view.

V2 moved the payment requirements from the 402 body into a header, renamed every header, switched network names to CAIP-2 ids and renamed the price field. Both values of x402Version still exist, so check which one a server speaks.

Text alternative

Two rows. V1: a 402 response with a JSON body PaymentRequirementsResponse, a retry with the X-PAYMENT header, and an X-PAYMENT-RESPONSE header; networks are names such as base-sepolia and the price field is maxAmountRequired. V2: a 402 response with a PAYMENT-REQUIRED header, a retry with PAYMENT-SIGNATURE, and a PAYMENT-RESPONSE header; networks are CAIP-2 ids such as eip155:84532, the price field is amount, ResourceInfo is a separate object and extensions exist. An arrow labeled migration guide points from V1 to V2.

Source of truth: x402 docs: migration guide V1 to V2 (external link) Generated from src/content/diagrams/x402-v1-v2-headers.mmd.

Payment flow variants: authorization, upfront, escrow

Diagram loads when it scrolls into view.

extra.paymentFlow decides when money moves relative to the handler. Authorization puts the risk of a failed settle on the seller, upfront puts the risk of a failed handler on the buyer, and escrow holds funds first and charges the real amount after. At least one check always runs before the handler.

Text alternative

Three rows. Authorization, the default: POST /verify, which is read only, then the handler runs, then POST /settle, then 200 with PAYMENT-RESPONSE. Upfront: POST /settle, then the handler runs, then 200 with PAYMENT-RESPONSE. Escrow: POST /settle to place a deposit or hold, then the handler runs, then a second POST /settle for the final charge, capture or void, then 200 with PAYMENT-RESPONSE.

Source of truth: x402 specification v2, section 6.1 Payment Flow Models (external link) Generated from src/content/diagrams/x402-payment-flows.mmd.

The scheme family and when each one settles

Diagram loads when it scrolls into view.

Four schemes, from simplest to most stateful. exact settles once; upto settles a metered amount under a ceiling that the client signs on EVM or escrows on Solana; batch-settlement serves on an off-chain voucher and settles in batches later; auth-capture holds funds, captures later and allows refunds. Dates are the first merge of each spec file.

Text alternative

Four groups. Exact, specified since 2025-02 before the launch: the client signs the exact amount and one transfer follows the handler; the Lightning binding of 2026-09-23 is paid upfront. Upto, 2026-03-04: the client signs a ceiling on EVM or escrows it on Solana, the server settles the metered amount up to the ceiling, and on EVM a zero charge needs no transaction. Batch-settlement, 2026-04-15, formerly called deferred: a deposit opens a channel, each request carries a cumulative voucher and is served at once, and claims and one settlement come later for many vouchers; the cloudflare:402 variant is credit that Cloudflare bills later. Auth-capture, 2026-05-13: authorize places a hold before the handler, capture or void follows, refunds are possible until the refund deadline, and the client can reclaim after the capture deadline.

Source of truth: x402 specs/schemes folder (external link) Generated from src/content/diagrams/x402-scheme-family.mmd.

Where the payment objects sit in HTTP, MCP and A2A

Diagram loads when it scrolls into view.

The same three objects (PaymentRequired, PaymentPayload, SettleResponse) ride in headers over HTTP, in an MCP tool result and the _meta field of the retried tool call, and in task metadata over A2A. The facilitator API underneath is standardized as HTTP.

Text alternative

Three columns. HTTP: 402 with the PAYMENT-REQUIRED header, then the PAYMENT-SIGNATURE header, then the PAYMENT-RESPONSE header. MCP: a tool result with isError true and PaymentRequired in structuredContent, then the _meta key x402/payment, then the _meta key x402/payment-response. A2A: a task in input-required with metadata x402.payment.required, then message metadata x402.payment.payload, then metadata x402.payment.receipts. All three lead to the facilitator API, which is standardized as HTTP.

Source of truth: x402 specs/transports-v2 (http.md, mcp.md, a2a.md) (external link) Generated from src/content/diagrams/x402-transport-placement.mmd.

x402 failure: the authorization expired (validBefore in the past)

Diagram loads when it scrolls into view.

The client signed a window that closed before the server verified it. The facilitator rejects the payload, the handler does not run and the client must sign again.

Text alternative

Sequence diagram: x402 failure: the authorization expired (validBefore in the past). 3 participants: Client (agent), Resource server, and Facilitator. 5 steps, 1 crossing a trust boundary. Based on x402 v2.0 (2025-12-09). Step 1: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE. Step 2: Resource server to Facilitator: POST /verify. This step crosses a trust boundary. Step 3: Facilitator to Resource server: Return isValid false (valid_before). Step 4: Resource server to Client (agent): 402 with a fresh PAYMENT-REQUIRED. Step 5: Client (agent) to Client (agent): Sign again with a new window and nonce.

  1. Step 1: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE.
  2. Step 2: Resource server to Facilitator: POST /verify. This step crosses a trust boundary.
  3. Step 3: Facilitator to Resource server: Return isValid false (valid_before).
  4. Step 4: Resource server to Client (agent): 402 with a fresh PAYMENT-REQUIRED.
  5. Step 5: Client (agent) to Client (agent): Sign again with a new window and nonce.

Source of truth: Payment Payload Transmission (external link) Generated from src/content/flows/x402-failure-expired-valid-before.json.

Play this flow step by step
Client (agent)
Resource server
Facilitator

Use the left and right arrow keys to step, space to play or pause, Home and End to jump.

Step 1 of 5Client (agent) to Resource server

Retry with PAYMENT-SIGNATURE

The client reuses a payment it signed earlier, or waited too long. validBefore is already in the past when the request arrives.

Spec: Payment Payload Transmission for step 1 (external link)

HTTP payload. Illustrative example, spec version v2.0.
GET /weather HTTP/1.1
Host: api.example.com
PAYMENT-SIGNATURE: eyJ4NDAyVmVyc2lvbiI6MiwicmVzb3VyY2UiOnsidXJsIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vd2VhdGhlciIsImRlc2NyaXB0aW9uIjoiQ3VycmVudCB3ZWF0aGVyIGZvciBvbmUgY2l0eSIsIm1pbWVUeXBlIjoiYXBwbGljYXRpb24vanNvbiJ9LCJhY2NlcHRlZCI6eyJzY2hlbWUiOiJleGFjdCIsIm5ldHdvcmsiOiJlaXAxNTU6ODQ1MzIiLCJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHgwMzZDYkQ1Mzg0MmM1NDI2NjM0ZTc5Mjk1NDFlQzIzMThmM2RDRjdlIiwicGF5VG8iOiIweGIwQjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBCMEIiLCJtYXhUaW1lb3V0U2Vjb25kcyI6NjAsImV4dHJhIjp7Im5hbWUiOiJVU0RDIiwidmVyc2lvbiI6IjIifX0sInBheWxvYWQiOnsic2lnbmF0dXJlIjoiMHhhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZDFiIiwiYXV0aG9yaXphdGlvbiI6eyJmcm9tIjoiMHhBMTFjZTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBhMTFjIiwidG8iOiIweGIwQjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBCMEIiLCJ2YWx1ZSI6IjEwMDAwIiwidmFsaWRBZnRlciI6IjE3OTE3MTk3MDAiLCJ2YWxpZEJlZm9yZSI6IjE3OTE3MTk3NjAiLCJub25jZSI6IjB4NWU1ZTVlNWU3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYyJ9fSwiZXh0ZW5zaW9ucyI6e319

# decoded header (Illustrative example, spec version v2.0.)
{
  "x402Version": 2,
  "resource": {
    "url": "https://api.example.com/weather",
    "description": "Current weather for one city",
    "mimeType": "application/json"
  },
  "accepted": {
    "scheme": "exact",
    "network": "eip155:84532",
    "amount": "10000",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "payTo": "0xb0B0000000000000000000000000000000000B0B",
    "maxTimeoutSeconds": 60,
    "extra": {
      "name": "USDC",
      "version": "2"
    }
  },
  "payload": {
    "signature": "0xababababababababababababababababababababababababababababababababcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd1b",
    "authorization": {
      "from": "0xA11ce0000000000000000000000000000000a11c",
      "to": "0xb0B0000000000000000000000000000000000B0B",
      "value": "10000",
      "validAfter": "1791719700",
      "validBefore": "1791719760",
      "nonce": "0x5e5e5e5e7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c"
    }
  },
  "extensions": {}
}

Spec version v2.0 (2025-12-09). Sources: [11], [22], [29], [92]

Step 1 of 5: Client (agent) to Resource server. Retry with PAYMENT-SIGNATURE.

x402 failure: the signed recipient does not match payTo

Diagram loads when it scrolls into view.

The client signed an authorization to an address that is not the payTo in the server requirements, for example because it used stale or altered requirements. Verification fails on the recipient check.

Text alternative

Sequence diagram: x402 failure: the signed recipient does not match payTo. 3 participants: Client (agent), Resource server, and Facilitator. 5 steps, 1 crossing a trust boundary. Based on x402 v2.0 (2025-12-09). Step 1: Client (agent) to Client (agent): Sign to an unexpected address. Step 2: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE. Step 3: Resource server to Facilitator: POST /verify. This step crosses a trust boundary. Step 4: Facilitator to Resource server: Return isValid false (recipient mismatch). Step 5: Resource server to Client (agent): 402 with a fresh PAYMENT-REQUIRED.

  1. Step 1: Client (agent) to Client (agent): Sign to an unexpected address.
  2. Step 2: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE.
  3. Step 3: Resource server to Facilitator: POST /verify. This step crosses a trust boundary.
  4. Step 4: Facilitator to Resource server: Return isValid false (recipient mismatch).
  5. Step 5: Resource server to Client (agent): 402 with a fresh PAYMENT-REQUIRED.

Source of truth: EIP-3009 (external link) Generated from src/content/flows/x402-failure-wrong-payto.json.

Play this flow step by step
Client (agent)
Resource server
Facilitator

Use the left and right arrow keys to step, space to play or pause, Home and End to jump.

Step 1 of 5Client (agent) to Client (agent)

Sign to an unexpected address

The requirements the client used named a different payTo than the server expects, for example after a proxy altered the 402 response or a cached copy went stale. The client signed authorization.to for that address.

Spec: EIP-3009 for step 1 (external link)

EIP-712 typed data payload. Illustrative example, spec version v2.0.
// Illustrative example, spec version v2.0.
{
  "types": {
    "TransferWithAuthorization": [
      {
        "name": "from",
        "type": "address"
      },
      {
        "name": "to",
        "type": "address"
      },
      {
        "name": "value",
        "type": "uint256"
      },
      {
        "name": "validAfter",
        "type": "uint256"
      },
      {
        "name": "validBefore",
        "type": "uint256"
      },
      {
        "name": "nonce",
        "type": "bytes32"
      }
    ]
  },
  "primaryType": "TransferWithAuthorization",
  "domain": {
    "name": "USDC",
    "version": "2",
    "chainId": 84532,
    "verifyingContract": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
  },
  "message": {
    "from": "0xA11ce0000000000000000000000000000000a11c",
    "to": "0xBAd0000000000000000000000000000000000Bad",
    "value": "10000",
    "validAfter": "1791719995",
    "validBefore": "1791720060",
    "nonce": "0x5e5e5e5e7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c"
  }
}

Spec version v2.0 (2025-12-09). Sources: [11], [29], [92]

Step 1 of 5: Client (agent) to Client (agent). Sign to an unexpected address.

x402 failure: a used authorization is sent again (replayed nonce)

Diagram loads when it scrolls into view.

A captured PAYMENT-SIGNATURE is sent a second time after it settled. The nonce is already used on the token contract, so verification fails and a second settlement is impossible.

Text alternative

Sequence diagram: x402 failure: a used authorization is sent again (replayed nonce). 4 participants: Client (agent), Resource server, Facilitator, and Base Sepolia. 6 steps, 2 crossing a trust boundary. Based on x402 v2.0 (2025-12-09). Step 1: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE. Step 2: Resource server to Facilitator: POST /verify. This step crosses a trust boundary. Step 3: Facilitator to Base Sepolia: Simulate the transfer, then read the nonce state. This step crosses a trust boundary. Step 4: Base Sepolia to Facilitator: Simulation reverts; authorizationState is true. Step 5: Facilitator to Resource server: Return isValid false (nonce already used). Step 6: Resource server to Client (agent): 402 with a fresh PAYMENT-REQUIRED.

  1. Step 1: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE.
  2. Step 2: Resource server to Facilitator: POST /verify. This step crosses a trust boundary.
  3. Step 3: Facilitator to Base Sepolia: Simulate the transfer, then read the nonce state. This step crosses a trust boundary.
  4. Step 4: Base Sepolia to Facilitator: Simulation reverts; authorizationState is true.
  5. Step 5: Facilitator to Resource server: Return isValid false (nonce already used).
  6. Step 6: Resource server to Client (agent): 402 with a fresh PAYMENT-REQUIRED.

Source of truth: Payment Payload Transmission (external link) Generated from src/content/flows/x402-failure-replayed-nonce.json.

Play this flow step by step
Client (agent)
Resource server
Facilitator
Base Sepolia

Use the left and right arrow keys to step, space to play or pause, Home and End to jump.

Step 1 of 6Client (agent) to Resource server

Retry with PAYMENT-SIGNATURE

Someone sends a PAYMENT-SIGNATURE that already paid for an earlier request, hoping to get the resource again.

Spec: Payment Payload Transmission for step 1 (external link)

HTTP payload. Illustrative example, spec version v2.0.
GET /weather HTTP/1.1
Host: api.example.com
PAYMENT-SIGNATURE: eyJ4NDAyVmVyc2lvbiI6MiwicmVzb3VyY2UiOnsidXJsIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vd2VhdGhlciIsImRlc2NyaXB0aW9uIjoiQ3VycmVudCB3ZWF0aGVyIGZvciBvbmUgY2l0eSIsIm1pbWVUeXBlIjoiYXBwbGljYXRpb24vanNvbiJ9LCJhY2NlcHRlZCI6eyJzY2hlbWUiOiJleGFjdCIsIm5ldHdvcmsiOiJlaXAxNTU6ODQ1MzIiLCJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHgwMzZDYkQ1Mzg0MmM1NDI2NjM0ZTc5Mjk1NDFlQzIzMThmM2RDRjdlIiwicGF5VG8iOiIweGIwQjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBCMEIiLCJtYXhUaW1lb3V0U2Vjb25kcyI6NjAsImV4dHJhIjp7Im5hbWUiOiJVU0RDIiwidmVyc2lvbiI6IjIifX0sInBheWxvYWQiOnsic2lnbmF0dXJlIjoiMHhhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZDFiIiwiYXV0aG9yaXphdGlvbiI6eyJmcm9tIjoiMHhBMTFjZTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBhMTFjIiwidG8iOiIweGIwQjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBCMEIiLCJ2YWx1ZSI6IjEwMDAwIiwidmFsaWRBZnRlciI6IjE3OTE3MTk5OTUiLCJ2YWxpZEJlZm9yZSI6IjE3OTE3MjAwNjAiLCJub25jZSI6IjB4NWU1ZTVlNWU3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYyJ9fSwiZXh0ZW5zaW9ucyI6e319

# decoded header (Illustrative example, spec version v2.0.)
{
  "x402Version": 2,
  "resource": {
    "url": "https://api.example.com/weather",
    "description": "Current weather for one city",
    "mimeType": "application/json"
  },
  "accepted": {
    "scheme": "exact",
    "network": "eip155:84532",
    "amount": "10000",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "payTo": "0xb0B0000000000000000000000000000000000B0B",
    "maxTimeoutSeconds": 60,
    "extra": {
      "name": "USDC",
      "version": "2"
    }
  },
  "payload": {
    "signature": "0xababababababababababababababababababababababababababababababababcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd1b",
    "authorization": {
      "from": "0xA11ce0000000000000000000000000000000a11c",
      "to": "0xb0B0000000000000000000000000000000000B0B",
      "value": "10000",
      "validAfter": "1791719995",
      "validBefore": "1791720060",
      "nonce": "0x5e5e5e5e7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c"
    }
  },
  "extensions": {}
}

Spec version v2.0 (2025-12-09). Sources: [11], [91], [92]

Step 1 of 6: Client (agent) to Resource server. Retry with PAYMENT-SIGNATURE.

x402 failure: the payer balance is too low

Diagram loads when it scrolls into view.

Two variants. At verify time the facilitator sees a low balance and the handler does not run. If the balance drops between verify and settle, settlement fails after the handler ran, and the server returns 402 with a failed PAYMENT-RESPONSE.

Text alternative

Sequence diagram: x402 failure: the payer balance is too low. 4 participants: Client (agent), Resource server, Facilitator, and Base Sepolia. 6 steps, 2 crossing a trust boundary, 1 failure branch. Based on x402 v2.0 (2025-12-09). Step 1: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE. Step 2: Resource server to Facilitator: POST /verify. This step crosses a trust boundary. Step 3: Facilitator to Resource server: Return isValid false (insufficient_funds). If The balance was enough at verify time but dropped before settle: Verify passes and the handler runs. Steps 4 to 6 show the settle-time variant. Step 4: Resource server to Facilitator: POST /settle (balance dropped after verify). This step crosses a trust boundary. Step 5: Facilitator to Resource server: Return success false (insufficient_funds). Step 6: Resource server to Client (agent): 402 with PAYMENT-RESPONSE success false.

  1. Step 1: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE.
  2. Step 2: Resource server to Facilitator: POST /verify. This step crosses a trust boundary.
  3. Step 3: Facilitator to Resource server: Return isValid false (insufficient_funds). If The balance was enough at verify time but dropped before settle: Verify passes and the handler runs. Steps 4 to 6 show the settle-time variant.
  4. Step 4: Resource server to Facilitator: POST /settle (balance dropped after verify). This step crosses a trust boundary.
  5. Step 5: Facilitator to Resource server: Return success false (insufficient_funds).
  6. Step 6: Resource server to Client (agent): 402 with PAYMENT-RESPONSE success false.

Source of truth: Payment Payload Transmission (external link) Generated from src/content/flows/x402-failure-insufficient-balance.json.

Play this flow step by step
Client (agent)
Resource server
Facilitator
Base Sepolia

Use the left and right arrow keys to step, space to play or pause, Home and End to jump.

Step 1 of 6Client (agent) to Resource server

Retry with PAYMENT-SIGNATURE

The client sends a correctly signed payment, but its wallet holds less than the amount.

Spec: Payment Payload Transmission for step 1 (external link)

HTTP payload. Illustrative example, spec version v2.0.
GET /weather HTTP/1.1
Host: api.example.com
PAYMENT-SIGNATURE: eyJ4NDAyVmVyc2lvbiI6MiwicmVzb3VyY2UiOnsidXJsIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vd2VhdGhlciIsImRlc2NyaXB0aW9uIjoiQ3VycmVudCB3ZWF0aGVyIGZvciBvbmUgY2l0eSIsIm1pbWVUeXBlIjoiYXBwbGljYXRpb24vanNvbiJ9LCJhY2NlcHRlZCI6eyJzY2hlbWUiOiJleGFjdCIsIm5ldHdvcmsiOiJlaXAxNTU6ODQ1MzIiLCJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHgwMzZDYkQ1Mzg0MmM1NDI2NjM0ZTc5Mjk1NDFlQzIzMThmM2RDRjdlIiwicGF5VG8iOiIweGIwQjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBCMEIiLCJtYXhUaW1lb3V0U2Vjb25kcyI6NjAsImV4dHJhIjp7Im5hbWUiOiJVU0RDIiwidmVyc2lvbiI6IjIifX0sInBheWxvYWQiOnsic2lnbmF0dXJlIjoiMHhhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZDFiIiwiYXV0aG9yaXphdGlvbiI6eyJmcm9tIjoiMHhBMTFjZTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBhMTFjIiwidG8iOiIweGIwQjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBCMEIiLCJ2YWx1ZSI6IjEwMDAwIiwidmFsaWRBZnRlciI6IjE3OTE3MTk5OTUiLCJ2YWxpZEJlZm9yZSI6IjE3OTE3MjAwNjAiLCJub25jZSI6IjB4NWU1ZTVlNWU3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYyJ9fSwiZXh0ZW5zaW9ucyI6e319

# decoded header (Illustrative example, spec version v2.0.)
{
  "x402Version": 2,
  "resource": {
    "url": "https://api.example.com/weather",
    "description": "Current weather for one city",
    "mimeType": "application/json"
  },
  "accepted": {
    "scheme": "exact",
    "network": "eip155:84532",
    "amount": "10000",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "payTo": "0xb0B0000000000000000000000000000000000B0B",
    "maxTimeoutSeconds": 60,
    "extra": {
      "name": "USDC",
      "version": "2"
    }
  },
  "payload": {
    "signature": "0xababababababababababababababababababababababababababababababababcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd1b",
    "authorization": {
      "from": "0xA11ce0000000000000000000000000000000a11c",
      "to": "0xb0B0000000000000000000000000000000000B0B",
      "value": "10000",
      "validAfter": "1791719995",
      "validBefore": "1791720060",
      "nonce": "0x5e5e5e5e7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c"
    }
  },
  "extensions": {}
}

Spec version v2.0 (2025-12-09). Sources: [11], [22], [92]

Step 1 of 6: Client (agent) to Resource server. Retry with PAYMENT-SIGNATURE.

x402 failure: the facilitator is down or times out

Diagram loads when it scrolls into view.

If the facilitator times out or returns malformed data, @x402/express answers 502 and the handler does not run; a refused connection during verify produces a 402 instead. If settle times out, the outcome is indeterminate, so the server should check the chain before it retries.

Text alternative

Sequence diagram: x402 failure: the facilitator is down or times out. 4 participants: Client (agent), Resource server, Facilitator, and Base Sepolia. 5 steps, 3 crossing a trust boundary, 1 failure branch. Based on x402 v2.0 (2025-12-09). Step 1: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE. Step 2: Resource server to Facilitator: POST /verify (no answer). This step crosses a trust boundary. Step 3: Resource server to Client (agent): 502 Bad Gateway. Step 4: Resource server to Facilitator: POST /settle (times out). This step crosses a trust boundary. If The facilitator answers settlement_pending: Non-terminal. The response carries the broadcast hash; the SDK server retries settle once, and the facilitator reconciles against that hash. Step 5: Resource server to Base Sepolia: Reconcile: look up the transaction. This step crosses a trust boundary.

  1. Step 1: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE.
  2. Step 2: Resource server to Facilitator: POST /verify (no answer). This step crosses a trust boundary.
  3. Step 3: Resource server to Client (agent): 502 Bad Gateway.
  4. Step 4: Resource server to Facilitator: POST /settle (times out). This step crosses a trust boundary. If The facilitator answers settlement_pending: Non-terminal. The response carries the broadcast hash; the SDK server retries settle once, and the facilitator reconciles against that hash.
  5. Step 5: Resource server to Base Sepolia: Reconcile: look up the transaction. This step crosses a trust boundary.

Source of truth: Payment Payload Transmission (external link) Generated from src/content/flows/x402-failure-facilitator-down.json.

Play this flow step by step
Client (agent)
Resource server
Facilitator
Base Sepolia

Use the left and right arrow keys to step, space to play or pause, Home and End to jump.

Step 1 of 5Client (agent) to Resource server

Retry with PAYMENT-SIGNATURE

The client sends a valid signed payment.

Spec: Payment Payload Transmission for step 1 (external link)

HTTP payload. Illustrative example, spec version v2.0.
GET /weather HTTP/1.1
Host: api.example.com
PAYMENT-SIGNATURE: eyJ4NDAyVmVyc2lvbiI6MiwicmVzb3VyY2UiOnsidXJsIjoiaHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vd2VhdGhlciIsImRlc2NyaXB0aW9uIjoiQ3VycmVudCB3ZWF0aGVyIGZvciBvbmUgY2l0eSIsIm1pbWVUeXBlIjoiYXBwbGljYXRpb24vanNvbiJ9LCJhY2NlcHRlZCI6eyJzY2hlbWUiOiJleGFjdCIsIm5ldHdvcmsiOiJlaXAxNTU6ODQ1MzIiLCJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHgwMzZDYkQ1Mzg0MmM1NDI2NjM0ZTc5Mjk1NDFlQzIzMThmM2RDRjdlIiwicGF5VG8iOiIweGIwQjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBCMEIiLCJtYXhUaW1lb3V0U2Vjb25kcyI6NjAsImV4dHJhIjp7Im5hbWUiOiJVU0RDIiwidmVyc2lvbiI6IjIifX0sInBheWxvYWQiOnsic2lnbmF0dXJlIjoiMHhhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiYWJhYmFiY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZGNkY2RjZDFiIiwiYXV0aG9yaXphdGlvbiI6eyJmcm9tIjoiMHhBMTFjZTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBhMTFjIiwidG8iOiIweGIwQjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBCMEIiLCJ2YWx1ZSI6IjEwMDAwIiwidmFsaWRBZnRlciI6IjE3OTE3MTk5OTUiLCJ2YWxpZEJlZm9yZSI6IjE3OTE3MjAwNjAiLCJub25jZSI6IjB4NWU1ZTVlNWU3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYzdhMWM3YTFjN2ExYyJ9fSwiZXh0ZW5zaW9ucyI6e319

# decoded header (Illustrative example, spec version v2.0.)
{
  "x402Version": 2,
  "resource": {
    "url": "https://api.example.com/weather",
    "description": "Current weather for one city",
    "mimeType": "application/json"
  },
  "accepted": {
    "scheme": "exact",
    "network": "eip155:84532",
    "amount": "10000",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "payTo": "0xb0B0000000000000000000000000000000000B0B",
    "maxTimeoutSeconds": 60,
    "extra": {
      "name": "USDC",
      "version": "2"
    }
  },
  "payload": {
    "signature": "0xababababababababababababababababababababababababababababababababcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd1b",
    "authorization": {
      "from": "0xA11ce0000000000000000000000000000000a11c",
      "to": "0xb0B0000000000000000000000000000000000B0B",
      "value": "10000",
      "validAfter": "1791719995",
      "validBefore": "1791720060",
      "nonce": "0x5e5e5e5e7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c7a1c"
    }
  },
  "extensions": {}
}

Spec version v2.0 (2025-12-09). Sources: [11], [52], [93], [94]

Step 1 of 5: Client (agent) to Resource server. Retry with PAYMENT-SIGNATURE.

x402 alternative path: upfront flow with the exact scheme on Lightning

Diagram loads when it scrolls into view.

Lightning has no way to pull a signed authorization later, so the lnbtc binding uses the upfront flow: the client pays a BOLT11 invoice first, sends the preimage, the facilitator settles by checking the preimage, and only then does the server run the handler. There is no /verify call and no refund path.

Text alternative

Sequence diagram: x402 alternative path: upfront flow with the exact scheme on Lightning. 4 participants: Client (agent), Resource server, Facilitator, and Lightning Network. 8 steps, 2 crossing a trust boundary, 3 failure branches. Based on x402 v2.0 (2025-12-09). Step 1: Client (agent) to Resource server: GET /article/A. Step 2: Resource server to Client (agent): 402 with a fresh BOLT11 invoice. Step 3: Client (agent) to Lightning Network: Pay the invoice. This step crosses a trust boundary. If The invoice expired (maxTimeoutSeconds equals the invoice expiry): The payment fails; the client requests a new 402. Step 4: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE (preimage). Step 5: Resource server to Facilitator: POST /settle (no /verify). This step crosses a trust boundary. If The preimage does not match, or the payment hash was already recorded: Settle fails and the handler does not run. A replay is refused. Step 6: Facilitator to Resource server: Return SettleResponse success true. Step 7: Resource server to Resource server: Run the handler. If The handler fails after settlement: The client paid for nothing; any remedy is the server's own arrangement. Step 8: Resource server to Client (agent): 200 OK with PAYMENT-RESPONSE.

  1. Step 1: Client (agent) to Resource server: GET /article/A.
  2. Step 2: Resource server to Client (agent): 402 with a fresh BOLT11 invoice.
  3. Step 3: Client (agent) to Lightning Network: Pay the invoice. This step crosses a trust boundary. If The invoice expired (maxTimeoutSeconds equals the invoice expiry): The payment fails; the client requests a new 402.
  4. Step 4: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE (preimage).
  5. Step 5: Resource server to Facilitator: POST /settle (no /verify). This step crosses a trust boundary. If The preimage does not match, or the payment hash was already recorded: Settle fails and the handler does not run. A replay is refused.
  6. Step 6: Facilitator to Resource server: Return SettleResponse success true.
  7. Step 7: Resource server to Resource server: Run the handler. If The handler fails after settlement: The client paid for nothing; any remedy is the server's own arrangement.
  8. Step 8: Resource server to Client (agent): 200 OK with PAYMENT-RESPONSE.

Source of truth: PaymentRequirements (external link) Generated from src/content/flows/x402-upfront-lightning.json.

Play this flow step by step
Client (agent)
Resource server
Facilitator
Lightning Network

Use the left and right arrow keys to step, space to play or pause, Home and End to jump.

Step 1 of 8Client (agent) to Resource server

GET /article/A

The client asks for a paid article.

HTTP payload. Illustrative example, spec version v2.0.
GET /article/A HTTP/1.1
Host: api.example.com

Spec version v2.0 (2025-12-09). Sources: [11], [26], [27]

Step 1 of 8: Client (agent) to Resource server. GET /article/A.

x402 alternative path: escrow flow with the auth-capture scheme

Diagram loads when it scrolls into view.

The client authorizes a maximum. A first settle places a hold on an escrow contract, the resource runs, and a second settle captures the actual amount (or voids the hold). Refunds can follow until the refund deadline, and the client can reclaim an untouched hold after the capture deadline.

Text alternative

Sequence diagram: x402 alternative path: escrow flow with the auth-capture scheme. 4 participants: Client (agent), Resource server, Facilitator, and AuthCaptureEscrow (EVM). 9 steps, 4 crossing a trust boundary, 2 failure branches. Based on x402 v2.0 (2025-12-09). Step 1: Client (agent) to Resource server: POST /jobs (no payment). Step 2: Resource server to Client (agent): 402 with an auth-capture entry. Step 3: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE (one authorization). Step 4: Resource server to Facilitator: POST /settle (authorize: place the hold). This step crosses a trust boundary. Step 5: Facilitator to AuthCaptureEscrow (EVM): authorize on AuthCaptureEscrow. This step crosses a trust boundary. Step 6: Resource server to Resource server: Run the job and meter it. Step 7: Resource server to Facilitator: POST /settle (payload.type capture). This step crosses a trust boundary. If The server never captures: After captureDeadline the client can call reclaim directly on the escrow contract. If The buyer is unhappy later: The server can relay refund until refundDeadline. Step 8: Facilitator to AuthCaptureEscrow (EVM): capture 0.75 USDC. This step crosses a trust boundary. Step 9: Resource server to Client (agent): 200 OK with PAYMENT-RESPONSE.

  1. Step 1: Client (agent) to Resource server: POST /jobs (no payment).
  2. Step 2: Resource server to Client (agent): 402 with an auth-capture entry.
  3. Step 3: Client (agent) to Resource server: Retry with PAYMENT-SIGNATURE (one authorization).
  4. Step 4: Resource server to Facilitator: POST /settle (authorize: place the hold). This step crosses a trust boundary.
  5. Step 5: Facilitator to AuthCaptureEscrow (EVM): authorize on AuthCaptureEscrow. This step crosses a trust boundary.
  6. Step 6: Resource server to Resource server: Run the job and meter it.
  7. Step 7: Resource server to Facilitator: POST /settle (payload.type capture). This step crosses a trust boundary. If The server never captures: After captureDeadline the client can call reclaim directly on the escrow contract. If The buyer is unhappy later: The server can relay refund until refundDeadline.
  8. Step 8: Facilitator to AuthCaptureEscrow (EVM): capture 0.75 USDC. This step crosses a trust boundary.
  9. Step 9: Resource server to Client (agent): 200 OK with PAYMENT-RESPONSE.

Source of truth: PaymentRequirements (external link) Generated from src/content/flows/x402-escrow-auth-capture.json.

Play this flow step by step
Client (agent)
Resource server
Facilitator
AuthCaptureEscrow (EVM)

Use the left and right arrow keys to step, space to play or pause, Home and End to jump.

Step 1 of 9Client (agent) to Resource server

POST /jobs (no payment)

The client asks for metered work whose final price is not known yet.

Spec version v2.0 (2025-12-09). Sources: [11], [35], [49], [59]

Step 1 of 9: Client (agent) to Resource server. POST /jobs (no payment).

How x402 composes with the other protocols

Diagram loads when it scrolls into view.

x402 is the payment step. AP2 can carry it as a payment method through a2a-x402 (whose embedding targets AP2 v0.1 mandates), ERC-8004 can record that an agent accepts it and attach proof of payment to feedback, Stripe MPP can serve it on the same route, and Visa TAP has its own object for answering a 402. Mastercard says its Agent Pay for Machines builds on x402 (2026-10-20). L402 is an earlier, separate HTTP 402 design.

Text alternative

x402 sits in the center. AP2 mandates connect to x402 through the a2a-x402 extension, which targets AP2 v0.1. ERC-8004 registries connect through x402Support, agentWallet and proofOfPayment. Stripe MPP connects because x402 exact maps to MPP charge and mppx serves both. Visa TAP connects through a browsingIOU object that answers a 402. Mastercard Agent Pay for Machines connects with the label builds on x402, per Mastercard on 2026-10-20. x402 uses MCP tool results and _meta and A2A metadata as transports. L402 is linked with a dotted line labeled same status code, different design. x402 is the rail for Circle Nanopayments and the Cloudflare Monetization Gateway beta.

Source of truth: a2a-x402 v0.2 spec, plus the linked relation sources (external link) Generated from src/content/diagrams/x402-composition.mmd.

x402 attack surface

Diagram loads when it scrolls into view.

Where published attacks and SDK advisories land. The signature protects amount and recipient, the nonce stops replay, but the protocol leaves payTo checks, budgets, delivery guarantees, privacy of metadata and facilitator honesty to the parties. Details and sources are in section H.

Text alternative

Five groups. Client side: signing an altered payTo or amount, and overspending under upto or without a cap. Wire and edge: a 402 response altered in transit, a captured signed header replayed, and large headers rejected by intermediaries. Resource server: route-matching bypass with encoded paths or HEAD requests to GET routes, a handler that runs while the settle fails, and cross-resource substitution. Facilitator: a duplicate settlement race, refusing or censoring payments, and seeing resource metadata. Chain and data: wash and farmed volume. An altered 402 leads to a wrong payTo signature, a replayed header targets the facilitator, and facilitator settlements feed the volume data.

Source of truth: Five Attacks on x402, plus the papers and advisories in section H (external link) Generated from src/content/diagrams/x402-attack-surface.mmd.

D. Simplified Technical English version

ELI5 mode: plain-language version only.

Practitioner mode: the full explanation.

Spec-deep mode: the full explanation plus 0 spec-deep blocks of field tables and wire examples.

STE mode: section B is hidden; the Simplified Technical English version (section D) is shown first.

This section uses Simplified Technical English (ASD-STE100): short sentences, one instruction per step, and one word for one meaning.

x402 is an open protocol for payments in HTTP. A server uses status 402 to tell a client the price of a resource. The client signs a payment and sends the request again. A facilitator verifies the payment and then sends it to the network. Coinbase started x402 in 2025. The x402 Foundation of the Linux Foundation now controls the protocol.

x402 has three roles. The client signs the payment. The resource server sells the resource and sends the payment requirements. The facilitator verifies the payment and starts the settlement on the network. The facilitator does not keep the money of the client.

Version 2 is the current version. It uses three HTTP headers: PAYMENT-REQUIRED, PAYMENT-SIGNATURE and PAYMENT-RESPONSE. Version 1 used a different set of headers.

The exact scheme moves one fixed amount one time. The signature of the client includes the amount and the payTo address. Thus, the facilitator cannot change the amount or the address.

The nonce and the time window stop a replay attack. The payment does not identify the client. Optional extensions can identify the client. x402 does not give a refund for an exact settlement. The protocol does not set a limit for the amount that a client pays. The client software or the wallet must apply the limits.

Procedure Pay for a resource with x402 (client)

  1. Send the request to the server.
  2. If the server sends status 402, read the PAYMENT-REQUIRED header.
  3. Decode the header. Find the payment option that your wallet supports.
  4. Make sure that the amount and the payTo address are correct.
  5. Sign the payment with your key.
  6. Send the request again. Put the signed payment in the PAYMENT-SIGNATURE header.
  7. Read the PAYMENT-RESPONSE header. Keep the transaction identifier.

Procedure Accept an x402 payment (server)

  1. Configure each paid route with a price, a network, an asset and a payTo address.
  2. Select a facilitator that supports your scheme and your network.
  3. If a request has no PAYMENT-SIGNATURE header, send status 402.
  4. Put the payment requirements in the PAYMENT-REQUIRED header.
  5. If a request has a PAYMENT-SIGNATURE header, decode the payment payload.
  6. Send the payment payload and your payment requirements to the /verify endpoint of the facilitator.
  7. If the facilitator rejects the payment, send status 402 again.
  8. If the payment is valid, run the handler.
  9. Send the same data to the /settle endpoint of the facilitator.
  10. Put the settlement result in the PAYMENT-RESPONSE header.
  11. Send the response to the client.

Procedure Verify and settle a payment (facilitator)

  1. Decode the payment payload and the payment requirements from the request.
  2. Make sure that the scheme and the network agree with the payment requirements.
  3. Make sure that the EIP-712 signature is valid for the from address.
  4. Make sure that the to value of the authorization is equal to payTo.
  5. Make sure that the value of the authorization is equal to the amount.
  6. Make sure that the time now is after validAfter and before validBefore.
  7. Read the balance of the payer and the state of the nonce.
  8. Test the transfer without a change to the network.
  9. If a check or the test fails, send isValid as false with the error code.
  10. When the server calls /settle, do all of the checks again.
  11. Send the transaction to the network. Keep the transaction identifier.
  12. If you cannot get the receipt, send settlement_pending with the transaction identifier.

Technical nouns and technical verbs

  • facilitator: A server that verifies a payment and sends it to the network. It does not keep the money.
  • resource server: The HTTP server that sells a resource and sends the payment requirements.
  • payment requirements: The list of payment options that the server accepts, with the scheme, network, amount, asset and payTo address.
  • payment payload: The signed payment that the client sends in the PAYMENT-SIGNATURE header.
  • exact scheme: A scheme that moves one fixed amount one time. It has no refund.
  • upto scheme: A scheme where the client signs a maximum amount and the server collects the measured amount.
  • auth-capture: A scheme that holds the money first, then collects it. It can return the money.
  • payment flow: The order of the verify step, the handler and the settle step.
  • nonce: A random value that the token contract accepts one time only.
  • settlement: The transfer of money on the network.
  • verify (TV): To make sure that a payment is correct, without a change to the network.
  • settle (TV): To send a payment to the network so that the money moves.

STE check report

Sentences
85
Longest procedural sentence
16 words (limit 20)
Longest descriptive sentence
18 words (limit 25)
Flags
None

Written to the public ASD-STE100 Issue 9 writing rules. Vocabulary not checked against the official dictionary.

Compare with the practitioner text side by side

Practitioner text (section B)

x402 answers one question: how does a server charge for a single HTTP request without accounts, API keys or invoices? The server replies 402 with a header that lists what it accepts: a scheme, a network, an amount, an asset and a payee address. The client signs a payment that matches one of those entries and retries the same request with the signature in a header. The server does not need to touch a chain itself. It hands the signature to a facilitator, which checks it (verify), lets the server do the work, then submits it on-chain (settle) before the response goes out. The client's signature binds the amount and the recipient, so a facilitator cannot redirect funds, and a nonce with a validity window stops replays. What x402 does not give you: refunds under the exact scheme, a dispute process, or, in the payment itself, any statement about who the client is. Those live in other layers: the auth-capture scheme, ERC-8004, or your own policy.

x402 is an open payment standard that puts payment inside an ordinary HTTP (Hypertext Transfer Protocol) request and response, using the status code 402 Payment Required. Its repository says it aims to cover crypto and fiat networks alike, but the bindings written so far are almost all blockchains, plus Lightning and one credit-backed network run by Cloudflare. The design came out of Coinbase Developer Platform (CDP): the whitepaper is dated 2025-05-06 and credits Erik Reppel and five co-authors.

Simplified Technical English

x402 is an open protocol for payments in HTTP. A server uses status 402 to tell a client the price of a resource. The client signs a payment and sends the request again. A facilitator verifies the payment and then sends it to the network. Coinbase started x402 in 2025. The x402 Foundation of the Linux Foundation now controls the protocol.

x402 has three roles. The client signs the payment. The resource server sells the resource and sends the payment requirements. The facilitator verifies the payment and starts the settlement on the network. The facilitator does not keep the money of the client.

Version 2 is the current version. It uses three HTTP headers: PAYMENT-REQUIRED, PAYMENT-SIGNATURE and PAYMENT-RESPONSE. Version 1 used a different set of headers.

E. Main personas

API, data or compute seller

Runs the resource server: prices routes, answers 402, and asks a facilitator to verify and settle. Source [11, 22, 32, 52, 89, 93, 94, 153]

Goals

  • Charge per call without accounts or invoices
  • Get paid in the same request that serves the data
  • Keep chain work out of the API team's code

Pains

  • Picking a facilitator for production because the x402.org default serves testnets only
  • Handler work that is lost when a settle fails under the authorization flow
  • Timeouts on /settle that leave the outcome unknown

Implements

  • Payment middleware such as @x402/express with a route map of accepts entries
  • An x402ResourceServer wired to an HTTPFacilitatorClient
  • Reconciliation for settlement_pending results

Must trust

  • The facilitator to verify honestly and broadcast promptly
  • The asset contract to enforce the nonce and the window
  • Its own route matching (past releases fixed encoded-path bypasses)
Questions, first steps, metrics and a day in the life

Questions they ask

  • Which facilitator supports my network and scheme, and what does it charge?
  • Do I need exact, upto or auth-capture for this endpoint?
  • What happens to my handler output if the settle fails?

First three steps

  1. Run the @x402/express quick start against Base Sepolia with the x402.org facilitator
  2. Price one route at $0.01 and watch the PAYMENT-REQUIRED header
  3. Choose a production facilitator and compare its fees and networks

Metrics they care about

  • Paid requests per day
  • Verify and settle latency
  • Settle failure and settlement_pending rate
  • Revenue net of facilitator fees

A day in the life

Maya runs a weather API that used to sell monthly keys. She adds the Express middleware, prices the forecast route at one cent in USDC on Base, and points it at a facilitator. The first agent request gets a 402 with the price in a header; the retry carries a signature, the facilitator says it is valid, her handler runs, and the settle returns a transaction hash. On Friday a slow facilitator turns into a burst of 502 answers, and two settles come back as settlement_pending. She checks both hashes on chain, finds one already confirmed, and writes a small reconciliation job so it never needs a person again.

Agent developer

Builds the client side: an agent or app that meets 402 responses, chooses an option, signs and retries. Source [32, 48, 53, 60, 154]

Goals

  • Let an agent pay for data and tools without a sign-up per vendor
  • Keep the agent inside a budget
  • Keep receipts for every payment

Pains

  • Two wire formats (V1 and V2) in the wild
  • Deciding which accepts entry to pick across networks and assets
  • Spending limits that exist only in the SDK, not in the protocol

Implements

  • wrapFetchWithPaymentFromConfig from @x402/fetch with a registered scheme
  • spendControls and payment policies
  • Storage of PAYMENT-RESPONSE transaction hashes

Must trust

  • The server's PAYMENT-REQUIRED header, especially payTo
  • The wallet key store
  • The server to deliver after a settle
Questions, first steps, metrics and a day in the life

Questions they ask

  • Is this server on V1 or V2?
  • What cap should my agent have per payment and per day?
  • Can I get a refund if the response is useless?

First three steps

  1. Wrap fetch with @x402/fetch and call a testnet endpoint
  2. Set spendControls to a cap below $1 and test a refusal
  3. Log every PAYMENT-RESPONSE hash with the request it paid for

Metrics they care about

  • Spend per task
  • Payments refused by policy
  • Failed or unpaid deliveries
  • Latency added by the 402 round trip

A day in the life

Dev builds a research agent that buys market data from five APIs. He wraps fetch with the x402 client and registers the exact EVM scheme for Base. The SDK already refuses unknown assets and anything above $1, so he lowers the cap to ten cents and adds a policy that skips Solana entries for now. One API still speaks V1 and answers with a JSON body; he registers the V1 client for that host. Every PAYMENT-RESPONSE hash goes into the task log next to the URL. When one provider returns empty data after payment, he finds there is no refund path under exact and moves that provider to a manual allowlist.

Payment facilitator or relay operator

Operates the verify and settle service, pays gas, and publishes what it supports. Source [11, 52, 63, 90, 99, 101, 127]

Goals

  • Verify fast and settle reliably across networks
  • Recover gas and costs through fees
  • Avoid settling anything twice

Pains

  • Duplicate settlement races and Solana duplicate submissions
  • Keeping signer keys funded for gas
  • Sanctions screening and its legal exposure

Implements

  • POST /verify, POST /settle and GET /supported
  • Nonce and replay checks, simulation and settlement caches
  • KYT and OFAC screening where it chooses to offer it

Must trust

  • RPC providers and chain finality
  • The token contracts (EIP-3009, Permit2 proxies)
  • Resource servers to send their own requirements, not the client's echo
Questions, first steps, metrics and a day in the life

Questions they ask

  • Which schemes and networks do I list in /supported?
  • How do I make /settle idempotent across processes?
  • What do I return when a receipt never arrives?

First three steps

  1. Run a self-facilitation example against a testnet
  2. Implement the eight facilitator security rules from the research literature
  3. Publish /supported with signers per CAIP-2 family

Metrics they care about

  • Verify and settle success rates
  • Gas cost per settlement
  • settlement_pending share
  • Screening hits

A day in the life

Priya runs a facilitator for three EVM chains and Solana. Her /supported answer lists exact and upto on each chain and one signer per family. Most of her day is not cryptography but operations: keeping the gas wallets topped up, watching the share of settles that end as settlement_pending, and making sure a retried settle from a second worker cannot broadcast twice. A paper on facilitator security rules lands, and she maps each rule to a test. Screening runs before every settle; when a payer address matches a sanctions list, the settle fails with a clear reason and the resource server returns 402 instead of the data.

The agent as an economic actor

Pays on its own within limits a human set, choosing among accepts entries per request. Source [11, 29, 60, 100]

Goals

  • Finish the task within budget
  • Pay only for what the task needs
  • Leave a verifiable trail

Pains

  • Prices that change between calls
  • Servers that take payment and return nothing useful
  • Altered 402 responses that name another payTo

Implements

  • Selection logic over accepts entries
  • Per-payment and per-task caps
  • Receipt keeping and stop rules

Must trust

  • Its wallet and key isolation
  • The policy its operator configured
  • The facilitator not to stall payments
Questions, first steps, metrics and a day in the life

Questions they ask

  • Is this payTo the seller I meant to pay?
  • Is the price within my cap?
  • Do I have a way back if the result is wrong?

First three steps

  1. Check payTo against the expected seller before every signature
  2. Refuse amounts above the configured cap
  3. Record each transaction hash with the task step

Metrics they care about

  • Spend per completed task
  • Refusals by policy
  • Payments without useful delivery

A day in the life

The agent is asked to compile a report from paid sources overnight. Each fetch that returns 402 goes through the same checks: the network and asset are on its list, the amount is under five cents, and the payTo matches the address its operator pinned for that domain. One source suddenly asks for twenty cents; the agent refuses and notes it. Another returns a 402 whose payTo differs from the pinned one, so it stops and flags the domain. By morning it has spent a little over a dollar across ninety calls, and every payment in its log has a transaction hash a human can check.

Compliance officer or regulator

Decides whether and how the business may accept or send x402 payments, and what screening and records it needs. Source [11, 28, 127, 128, 131]

Goals

  • Know who handles sanctions screening and travel-rule data
  • Keep records that satisfy auditors
  • Understand stablecoin rules per market

Pains

  • The protocol has no KYC, know-your-agent or sanctions layer
  • Payment metadata can contain personal data sent to third parties
  • Volume figures that cannot be relied on

Implements

  • Facilitator selection criteria (screening, terms, jurisdictions)
  • Record keeping of PAYMENT-RESPONSE hashes and offers or receipts
  • Data minimization for resource metadata

Must trust

  • The facilitator's screening and its records
  • The stablecoin issuer
  • Product terms such as Cloudflare's merchant-of-record role in cloudflare:402
Questions, first steps, metrics and a day in the life

Questions they ask

  • Is our facilitator a money transmitter in our markets?
  • Who is merchant of record in each variant we use?
  • What personal data leaves our systems in resource descriptions?

First three steps

  1. Map which facilitator screens what (the CDP facilitator runs OFAC and KYT checks)
  2. Review section J for each market we sell in
  3. Strip personal data from resource URLs and descriptions

Metrics they care about

  • Share of payments screened
  • Records retrievable per payment
  • Open regulatory questions per market

A day in the life

Lena reviews the plan to sell API calls through x402 in the US and the EU. The first thing she notices is what the protocol leaves out: no identity check in the payment, no sanctions check, no dispute process. Screening therefore depends on the facilitator, and the team's chosen facilitator documents OFAC and KYT checks on every payment, which she records as a vendor control. She asks the engineers to stop putting customer names in resource descriptions, because those travel to the facilitator. For the credit-backed Cloudflare variant she notes that Cloudflare is merchant of record with its own terms, and she sends that contract to legal.

Agent controls platform builder

Builds independent controls around x402: budgets, allowlists, approvals and monitoring at the client, edge or facilitator. Source [11, 33, 60, 64, 143, 145]

Goals

  • Enforce limits the protocol does not define
  • Act before a signature exists
  • Detect abuse from public data

Pains

  • Budgets are out of scope in the spec
  • On chain, x402 payments look like ordinary transfers
  • Each SDK has different hooks

Implements

  • Policies and hooks such as onBeforePaymentCreation and onBeforeSettle
  • payTo allowlists and per-task budgets
  • Monitoring on facilitator events and contract events

Must trust

  • The SDK to call its hooks in order
  • The facilitator to report outcomes accurately
  • Indexers that label payments
Questions, first steps, metrics and a day in the life

Questions they ask

  • Where can I stop a payment: before signing, at the edge, or at settle?
  • How do I tell x402 payments from other transfers?
  • Can I revoke a signed authorization before it settles?

First three steps

  1. Add a policy that enforces a payTo allowlist before signing
  2. Set validBefore windows as short as the use allows
  3. Subscribe to settle outcomes and alert on unusual spend

Metrics they care about

  • Payments blocked before signing
  • Time from anomaly to block
  • Coverage of agents under a policy

A day in the life

Omar's team sells a spend-control layer to companies that run agents. For x402 his main lever is the client: a policy hook that runs before the payment is created, checks payTo against an allowlist, enforces a daily budget per agent, and refuses unknown assets. A second lever is short validity windows, because recalling a signed authorization means racing the facilitator with an on-chain cancellation (EIP-3009 cancelAuthorization) before it settles. On the seller side he offers hooks before verify and settle. Monitoring is harder: on chain the payments look like ordinary token transfers, so he relies on the facilitator's records and builder codes where sellers use them.

Responsibilities

Who does what
Step or objectAPI, data or compute sellerAgent developerPayment facilitator or relay operatorThe agent as an economic actorCompliance officer or regulatorAgent controls platform builder
Publish payment requirements (402 with PAYMENT-REQUIRED)OwnsRelies onNo roleRelies onObservesObserves
Choose an accepts entryNo roleImplementsNo roleOwnsNo roleVerifies
Enforce spend caps and payTo allowlistsNo roleImplementsNo roleRelies onObservesOwns
Sign the authorization (EIP-712)No roleImplementsNo roleOwnsNo roleVerifies
Verify the payload (POST /verify)Relies onNo roleOwnsNo roleObservesObserves
Run the handlerOwnsNo roleNo roleRelies onNo roleNo role
Screen for sanctions (KYT, OFAC)Relies onNo roleImplementsNo roleOwnsObserves
Settle on chain and pay gas (POST /settle)Relies onNo roleOwnsNo roleObservesObserves
Reconcile settlement_pendingOwnsNo roleImplementsNo roleNo roleNo role
Return and store the PAYMENT-RESPONSE receiptImplementsImplementsNo roleOwnsVerifiesObserves
Monitor spend and anomaliesObservesObservesObservesNo roleVerifiesOwns

F. Resources

37 resources. Starred entries are the best places to start.

G. Scientific publications

Directly about this protocol

  1. 402Pilot: An x402 Decision Layer for Autonomous Agent Micropayments (external link)

    Yin Li, Yanbo He, Boo-Ho Yang and others. 2026. Not peer reviewed arXiv 2608.01341 (open access, external link)

    Frames the buyer side of x402 as a decision problem, selecting among payable providers under a finite wallet with feedback only on chosen purchases, and proposes 402Pilot, a protocol-agnostic decision layer instantiated with a payment-aware discounted contextual Thompson-sampling policy. On the 402Pilot-Bench replay benchmark (823 tasks, five provider pipelines, three market regimes) it keeps service quality while spending 39 to 43 percent of the wallet.

    Why it matters here: Treats x402 as settled infrastructure and asks how an agent should decide what to buy over it; a bridge between the payment rail and agent economics. x402: A buyer-side decision layer that chooses which x402 provider an agent should pay under a finite wallet.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{li2026402pilot,
      title = {{402Pilot: An x402 Decision Layer for Autonomous Agent Micropayments}},
      author = {Yin Li and Yanbo He and Boo-Ho Yang and Rav Lawana and Ziyue Li and Wei Zeng and Jing Tang and Fugee Tsung},
      year = {2026},
      eprint = {2608.01341},
      archivePrefix = {arXiv},
      primaryClass = {cs.AI},
      url = {https://arxiv.org/abs/2608.01341}
    }
  2. A Formal Analysis of Agent Payment Protocols (external link)

    Ke Jiang, Mohan Yu, Yuan Chang and others. 2026. Not peer reviewed arXiv 2609.00060 (open access, external link)

    Builds Tamarin models of x402, MPP, ACP and AP2 from their specifications, schemas and reference code using one shared abstraction of the agent payment lifecycle, then asks source-backed verification questions to expose missing bindings and cross-stage correspondences, which it consolidates into 18 security principles. Across 86 verification cases it reproduces 46 known or calibration cases, reports 40 new formal-consistency findings, and validates ten of them against x402 implementations through proofs of concept, SDK and schema witnesses and executable traces.

    Why it matters here: The only side-by-side formal model of x402, MPP, ACP and AP2 found in an arXiv search on 2026-10-21; it shows where each specification leaves delegated authority, settlement and fulfillment unbound. AP2: Tamarin models that include AP2. Agentic Commerce Protocol (ACP): Models ACP in Tamarin with x402, MPP and AP2; the only formal analysis that names it. Stripe MPP (Machine Payments Protocol): Models MPP in Tamarin alongside x402, ACP and AP2; the only formal model of MPP that an arXiv search found on 2026-10-21. x402: Formal Tamarin models of x402 alongside MPP, ACP and AP2.

    Metadata verified 2026-10-19 through arxiv.

    Show BibTeX
    @misc{jiang2026formal,
      title = {{A Formal Analysis of Agent Payment Protocols}},
      author = {Ke Jiang and Mohan Yu and Yuan Chang and Mohit Kumar Jangid and Jianyu Niu and Cong Wang and Yinqian Zhang},
      year = {2026},
      eprint = {2609.00060},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2609.00060}
    }
  3. A402: Binding Cryptocurrency Payments to Service Execution for Agentic Commerce (external link)

    Yue Li, Lei Wang, Kaixuan Wang and others. 2026. Not peer reviewed arXiv 2603.01179 (open access, external link)

    Proposes A402, a payment architecture that binds cryptocurrency payments to service execution through Atomic Service Channels and TEE-assisted adaptor signatures, so that payment finalizes only if the requested service is executed and delivered, with a TEE-based liquidity vault aggregating channel settlements on chain. Evaluated against x402 on Bitcoin and Ethereum integrations.

    Why it matters here: Addresses the end-to-end atomicity gap that x402 leaves open, and connects agent micropayments to the payment-channel lineage. x402: Shows that x402 does not bind payment to service execution and proposes Atomic Service Channels.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{li2026a402,
      title = {{A402: Binding Cryptocurrency Payments to Service Execution for Agentic Commerce}},
      author = {Yue Li and Lei Wang and Kaixuan Wang and Zhiqiang Yang and Ke Wang and Zhi Guan and Jianbo Gao},
      year = {2026},
      eprint = {2603.01179},
      archivePrefix = {arXiv},
      primaryClass = {cs.DC},
      url = {https://arxiv.org/abs/2603.01179}
    }
  4. Agent-to-Agent Finance: Blockchain Payments and Trust Infrastructure for Autonomous AI Agents (external link)

    Hui Gong. 2026. Not peer reviewed arXiv 2607.00245 (open access, external link)

    A chapter-length treatment of agent-to-agent finance as a layer of machine-mediated financial interaction in which agents discover counterparties, express intent, pay and generate auditable evidence, drawing on blockchain agent-to-agent payment work, ERC-8004 registries, provenance-based wallets and official evidence on AI adoption in finance. Its central design question is bounded autonomy.

    Why it matters here: Positions erc-8004 and blockchain agent payments such as x402 as candidate financial market infrastructure and sets out the accountability questions regulators will ask.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{gong2026a2afinance,
      title = {{Agent-to-Agent Finance: Blockchain Payments and Trust Infrastructure for Autonomous AI Agents}},
      author = {Hui Gong},
      year = {2026},
      eprint = {2607.00245},
      archivePrefix = {arXiv},
      primaryClass = {q-fin.GN},
      url = {https://arxiv.org/abs/2607.00245}
    }
  5. Agentic Settlement Protocol: An Application Profile for Refundable, Delayed-Fulfilment Agent Commerce on Stablecoin Rails (external link)

    Behnam Mohammadkhani, Atul Khekade, Ritesh Kakkad. 2026. Not peer reviewed arXiv 2609.02208 (open access, external link)

    Proposes the Agentic Settlement Protocol, an application profile over on-chain authorize-and-capture escrow for purchases whose fulfillment is confirmed off-chain, with a three-deadline hold model, a fulfillment-verification ladder, engine-authoritative partial refunds with per-seller exposure controls, and a normative interface that includes an x402 scheme and a vault ABI; it is a design paper instantiated on the XDC Network, with evaluation deferred to follow-up work. The arXiv author metadata splits the first author's name into two single-word entries; it is recorded here as one name, as it appears on the abstract page.

    Why it matters here: Argues that x402's atomic, final payments fit metered access but not refundable commerce, and shows how an escrow profile can still be exposed as an x402 scheme. The paper does not discuss x402's own auth-capture scheme (specified 2026-05-13), which builds on the same Commerce Payments escrow. x402: An application profile for refundable, delayed-fulfillment payments, a gap in x402 exact.

    Metadata verified 2026-10-19 through arxiv.

    Show BibTeX
    @misc{mohammadkhani2026asp,
      title = {{Agentic Settlement Protocol: An Application Profile for Refundable, Delayed-Fulfilment Agent Commerce on Stablecoin Rails}},
      author = {Behnam Mohammadkhani and Atul Khekade and Ritesh Kakkad},
      year = {2026},
      eprint = {2609.02208},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2609.02208}
    }
  6. AI Agents in Payments: Applications, Risks and Regulations (external link)

    David Restrepo Amariles, Damien Charlotin, Liyun He-Guelton. 2026. European Journal of Risk Regulation 17(3). Peer reviewed DOI 10.1017/err.2026.10103 (external link)

    Defines agentic payments as transactions started and completed by AI agents, sets out how they work across retail, e-commerce and decentralized finance, and classifies their technical, legal and societal risks, including liability gaps and regulatory non-compliance.

    Why it matters here: One of the few peer-reviewed legal analyses aimed at agent payments specifically, useful for the compliance and liability questions every protocol in the atlas leaves to implementers. AP2: Risks and regulation of agent payments. Agentic Commerce Protocol (ACP): Risks and regulation of AI agents in payments, covering ACP.

    Metadata verified 2026-10-11 through doi-negotiation.

    Show BibTeX
    @article{amariles2026payments,
      title = {{AI Agents in Payments: Applications, Risks and Regulations}},
      author = {David Restrepo Amariles and Damien Charlotin and Liyun He-Guelton},
      year = {2026},
      journal = {European Journal of Risk Regulation},
      volume = {17},
      number = {3},
      pages = {884--907},
      publisher = {Cambridge University Press},
      doi = {10.1017/err.2026.10103},
      url = {https://doi.org/10.1017/err.2026.10103}
    }
  7. Can Trustless Agents Be Trusted? An Empirical Study of the ERC-8004 Decentralized AI Agent Ecosystem (external link)

    Xihan Xiong, Zelin Li, Wei Wei and others. 2026. Not peer reviewed arXiv 2606.26028 (open access, external link)

    First empirical study of ERC-8004 on Ethereum, BNB Smart Chain and Base from deployment through 2026-05-13, crawling Identity and Reputation Registry events, registration files and associated x402 payments. Only 3%, 4% and 15% of registrations on the three chains expose a valid registration file with a live endpoint, reputation values are not commensurable and are cheap to manipulate, and 73.5%, 59.2% and 90.6% of reviewers show coordinated Sybil behavior; removing flagged feedback leaves 15.8%, 77.9% and 86.8% of rated agents with no valid feedback.

    Why it matters here: Primary evidence for the disputed status of erc-8004 reputation data and for the gap between registrations and operational agents; it also links x402 settlements to registered identities. ERC-8004: Trustless Agents: The main measurement of ERC-8004 in practice: liveness and Sybil reviewers on three chains.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{xiong2026trustless,
      title = {{Can Trustless Agents Be Trusted? An Empirical Study of the ERC-8004 Decentralized AI Agent Ecosystem}},
      author = {Xihan Xiong and Zelin Li and Wei Wei and Qin Wang and William Knottenbelt and Zhipeng Wang},
      year = {2026},
      eprint = {2606.26028},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2606.26028}
    }
  8. Capability-Priced Micro-Markets: A Micro-Economic Framework for the Agentic Web over HTTP 402 (external link)

    Ken Huang, Jerry Huang, Mahesh Lambe and others. 2026. Not peer reviewed arXiv 2603.16899 (open access, external link)

    Introduces Capability-Priced Micro-Markets, combining Project NANDA capability-based discovery, HTTP 402 micropayments with x402 and H402 extensions, and the Agent Capability Negotiation and Binding Protocol into a repeated bilateral game with incomplete information, shown to converge to a constrained Radner equilibrium, and defines a privacy elasticity of demand.

    Why it matters here: A micro-economic model of markets priced over x402-style HTTP 402 payments.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{huang2026cpmm,
      title = {{Capability-Priced Micro-Markets: A Micro-Economic Framework for the Agentic Web over HTTP 402}},
      author = {Ken Huang and Jerry Huang and Mahesh Lambe and Hammad Atta and Yasir Mehmood and Muhammad Zeeshan Baig and Muhammad Aziz Ul Haq and Nadeem Shahzad and Shailja Gupta and Rajesh Ranjan and Rekha Singhal},
      year = {2026},
      eprint = {2603.16899},
      archivePrefix = {arXiv},
      primaryClass = {cs.GT},
      url = {https://arxiv.org/abs/2603.16899}
    }
  9. Compliance-Aware Agentic Payments on Stablecoin Rails (external link)

    Kenneth See, Xue Wen Tan. 2026. Not peer reviewed arXiv 2605.00071 (open access, external link)

    Describes a compliance-aware architecture that combines x402-style signature-based payment authorization and relayed execution with programmable compliance enforced on chain through a policy wrapper and a policy manager coordinating modular checks, so settlement stays low-friction when conditions are met and transaction-linked attestations are recorded. The arXiv comment labels it a demo-track paper, but no venue is confirmed.

    Why it matters here: Shows one route to adding regulatory checks to x402 settlement at execution time rather than in an off-chain workflow. x402: Compliance-aware agent payments on stablecoin rails, relevant to facilitator screening.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{see2026compliance,
      title = {{Compliance-Aware Agentic Payments on Stablecoin Rails}},
      author = {Kenneth See and Xue Wen Tan},
      year = {2026},
      eprint = {2605.00071},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2605.00071}
    }
  10. Enhancing the A2A Protocol with Blockchain-Based Identities and x402 Micropayments for Agentic AI (external link)

    Awid Vaziry, Sandro Rodriguez Garzon, Axel Küpper. 2026. IJCCI 2025, Springer Communications in Computer and Information Science (CCIS), pp. 454-472. Peer reviewed arXiv 2507.19550 (open access, external link) DOI 10.1007/978-3-032-15632-7_25 (external link)

    Extends the A2A protocol with ledger-anchored identities, publishing AgentCards on chain as smart contracts for verifiable discovery, and with x402 micropayments so that agents can discover, authenticate and pay one another across organizational boundaries; includes an implementation and evaluation. Published in Springer CCIS from IJCCI 2025 under the title given here; the arXiv preprint (2507.19550, 2025) carries the longer title 'Towards Multi-Agent Economies: Enhancing the A2A Protocol with Ledger-Anchored Identities and x402 Micropayments for AI Agents'.

    Why it matters here: Peer-reviewed design that pairs x402 with on-chain agent identity, the same combination that erc-8004 plus x402 deployments pursue. x402: Combines A2A with ledger-anchored identities and x402 micropayments.

    Metadata verified 2026-10-10 through doi-negotiation.

    Show BibTeX
    @inproceedings{vaziry2026a2ax402,
      title = {{Enhancing the A2A Protocol with Blockchain-Based Identities and x402 Micropayments for Agentic AI}},
      author = {Awid Vaziry and Sandro Rodriguez Garzon and Axel Küpper},
      year = {2026},
      booktitle = {Computational Intelligence (IJCCI 2025), Communications in Computer and Information Science, vol. 2827},
      publisher = {Springer Nature Switzerland},
      series = {Communications in Computer and Information Science},
      pages = {454-472},
      doi = {10.1007/978-3-032-15632-7_25},
      eprint = {2507.19550},
      archivePrefix = {arXiv},
      primaryClass = {cs.MA},
      url = {https://arxiv.org/abs/2507.19550}
    }
  11. Five Attacks on x402 Agentic Payment Protocol (external link)

    Zelin Li, Qin Wang, Zhipeng Wang. 2026. Not peer reviewed arXiv 2605.11781 (open access, external link)

    Formalizes x402 and demonstrates five practical attacks on authorization, binding, replay protection and web-layer handling, validated on local chains, Base Sepolia and live endpoints, plus an audit of three open-source SDKs and endpoints. The attacks yield either unpaid service or paid-but-denied outcomes, and the paper proposes mitigations.

    Why it matters here: Direct attack catalog for x402 that spans the HTTP layer and the on-chain settlement layer. x402: Five practical attacks and an audit of three x402 SDKs; one of the research sources for section H.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{li2026fiveattacks,
      title = {{Five Attacks on x402 Agentic Payment Protocol}},
      author = {Zelin Li and Qin Wang and Zhipeng Wang},
      year = {2026},
      eprint = {2605.11781},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2605.11781}
    }
  12. Free-Riding the Agentic Web: A Systematic Security Analysis of x402 Payments (external link)

    Shengchen Ling, Yihang Huang, Yuefeng Du and others. 2026. Not peer reviewed arXiv 2605.30998 (open access, external link)

    Analyzes x402 as a stack of HTTP semantics, per-chain schemes and SDK choices against five invariants and finds four flaw classes: cross-resource substitution, duplicate-settlement races, allowance overdraft and denial of settlement, reaching resource-leakage ratios up to 100% against official SDKs and a production deployment. It also proves that output-only pay-per-token pricing cannot be both fair and bounded against hidden reasoning-token inflation, and proposes mitigations with provable guarantees.

    Why it matters here: Explains the state-synchronization gap between synchronous HTTP and asynchronous settlement that is specific to x402-style rails. x402: Four flaw classes, including cross-resource substitution and a duplicate settlement race.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{ling2026freeriding,
      title = {{Free-Riding the Agentic Web: A Systematic Security Analysis of x402 Payments}},
      author = {Shengchen Ling and Yihang Huang and Yuefeng Du and Yuan Chen and Yajin Zhou and Lei Wu and Cong Wang},
      year = {2026},
      eprint = {2605.30998},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2605.30998}
    }
  13. Hardening x402: PII-Safe Agentic Payments via Pre-Execution Metadata Filtering (external link)

    Vladimir Stantchev. 2026. Not peer reviewed arXiv 2604.11430 (open access, external link)

    Presents presidio-hardened-x402, open-source middleware that intercepts x402 payment requests before transmission to redact personally identifiable information from payment metadata, enforce declarative spending policies and block replays. On a synthetic corpus of 2,000 metadata triples the recommended NLP mode reaches a micro-F1 near 0.9 at p99 latency under 6 ms; version 2 of the preprint revises the threshold and headline numbers.

    Why it matters here: Highlights that x402 metadata travels to facilitators that are typically not bound by data processing agreements, a privacy control gap in the protocol as deployed. x402: Treats x402 payment metadata as a PII channel and proposes filtering middleware.

    Metadata verified 2026-10-19 through arxiv.

    Show BibTeX
    @misc{stantchev2026hardening,
      title = {{Hardening x402: PII-Safe Agentic Payments via Pre-Execution Metadata Filtering}},
      author = {Vladimir Stantchev},
      year = {2026},
      eprint = {2604.11430},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2604.11430}
    }
  14. How Agentic Is Agentic Commerce? A Population-Scale Measurement of x402 Adoption and Authenticity (external link)

    Shengchen Ling, Yajin Zhou, Lei Wu and others. 2026. Not peer reviewed arXiv 2607.12575 (open access, external link)

    Population-scale measurement of x402 on Base over a 280-day window (136,708,672 settlements worth about 44.1 million dollars) with a coarser Solana census. Resolving the true payer through the meta-transaction layer, the authors classify 21.20% of settlements as fictitious and 63.78% as internal to a linked cluster, bound genuinely independent value between about 188 thousand and 20.3 million dollars, and conclude that the settlement count measures manufacturability rather than adoption.

    Why it matters here: The main source for the dispute over x402 volume authenticity; any x402 metric on the atlas should be shown alongside this analysis. x402: Population-scale measurement that questions x402 volume figures.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{ling2026howagentic,
      title = {{How Agentic Is Agentic Commerce? A Population-Scale Measurement of x402 Adoption and Authenticity}},
      author = {Shengchen Ling and Yajin Zhou and Lei Wu and Cong Wang},
      year = {2026},
      eprint = {2607.12575},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2607.12575}
    }
  15. Paying to Know: Micro-Transaction Markets for Verified Product Information in Agentic E-Commerce (external link)

    Filippos Ventirozos, Matthew Shardlow. 2026. Not peer reviewed arXiv 2606.24783 (open access, external link)

    A vision paper arguing that once buyers are agents paying through agent-native layers such as x402 (payment) and AP2 (authorization), the scarce resource becomes trustworthy product information rather than product matching. It sketches a market in which buyer agents pay fractions of a cent to unlock seller- and reviewer-supplied evidence, with reviewer trust scored reputationally, and lists the NLP problems this creates.

    Why it matters here: Names x402 (payment) and AP2 (authorization against the user's budget) as the agent-native layers that make per-fact micropayments feasible; it is a vision paper, not an analysis of either, and its reputational scoring of reviewers is a role that ERC-8004 registries also aim to fill, although the paper does not name ERC-8004.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{ventirozos2026paying,
      title = {Paying to Know: Micro-Transaction Markets for Verified Product Information in Agentic E-Commerce},
      author = {Filippos Ventirozos and Matthew Shardlow},
      year = {2026},
      eprint = {2606.24783},
      archivePrefix = {arXiv},
      primaryClass = {cs.CL},
      url = {https://arxiv.org/abs/2606.24783},
      note = {arXiv preprint}
    }
  16. RAILS: Verification-Native Clearing For Agentic Commerce (external link)

    Adrian de Valois-Franklin, Alex Bogdan. 2026. Not peer reviewed arXiv 2606.08790 (open access, external link)

    Defines the agentic clearing problem, deciding whether an agent met its delegated obligation and which settlement action follows, and argues that MCP, A2A, x402, AP2 and the Visa and Mastercard network agent protocols all assume that determination without producing it. RAILS specifies seven primitives and a formal model of admissibility-graded verification yielding a soundness property that no financially material settlement rests on evidence below the obligation's admissibility floor. The abstract names Visa and Mastercard generically rather than by protocol name.

    Why it matters here: Names x402, ap2 and the Visa and Mastercard agent programs as rails that lack a clearing layer; useful for the atlas comparison of where disputes and fulfillment evidence live. Mastercard Agent Pay: Names Agent Pay and Verifiable Intent and works an example that uses a Verifiable Intent autonomous-mode chain as authority evidence; it proposes a clearing layer, not a security analysis of Agent Pay. Visa Trusted Agent Protocol: One of the few papers that name TAP, with the GLEIF working paper, the Visa and Artemis report and a 2026-10-16 ChainIT white paper (arXiv 2610.22899); places TAP as the network's edge attestation layer.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{valoisfranklin2026rails,
      title = {{RAILS: Verification-Native Clearing For Agentic Commerce}},
      author = {Adrian de Valois-Franklin and Alex Bogdan},
      year = {2026},
      eprint = {2606.08790},
      archivePrefix = {arXiv},
      primaryClass = {cs.AI},
      url = {https://arxiv.org/abs/2606.08790}
    }
  17. SoK: Blockchain Agent-to-Agent Payments (external link)

    Yuanzhe Zhang, Yuexin Xiang, Yuchen Lei and others. 2026. Not peer reviewed arXiv 2604.03733 (open access, external link)

    Systematizes blockchain-based agent-to-agent payments, with x402 as the lead example, into a four-stage lifecycle of discovery, authorization, execution and accounting, classifies representative designs at each stage, and isolates recurring weaknesses: weak intent binding, misuse under valid authorization, payment-service decoupling and limited accountability.

    Why it matters here: Gives a lifecycle vocabulary for x402 and for the discovery role that erc-8004 registries are meant to fill, and names the payment-service decoupling problem that later x402 attack papers exploit. ERC-8004: Trustless Agents: Survey that places ERC-8004 among agent payment components. Stripe MPP (Machine Payments Protocol): Lists MPP among service-specified payment designs and describes its payment-gated API access, citing Stripe's MPP docs, and names Tempo as an execution environment; x402 is its worked case. x402: Systematizes blockchain agent-to-agent payments, with x402 as a central case.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{zhang2026sok,
      title = {{SoK: Blockchain Agent-to-Agent Payments}},
      author = {Yuanzhe Zhang and Yuexin Xiang and Yuchen Lei and Qin Wang and Tian Qiu and Yujing Sun and Spiridon Zarkov and Tsz Hon Yuen and Andreas Deppeler and Jiangshan Yu and Kwok-Yan Lam},
      year = {2026},
      eprint = {2604.03733},
      archivePrefix = {arXiv},
      primaryClass = {q-fin.GN},
      url = {https://arxiv.org/abs/2604.03733}
    }
  18. SoK: Security of Autonomous LLM Agents in Agentic Commerce (external link)

    Qian'ang Mao, Jiaxin Wang, Ya Liu and others. 2026. Not peer reviewed arXiv 2604.15367 (open access, external link)

    A systematization of knowledge that frames the security of autonomous LLM agents in commerce along five dimensions (agent integrity, transaction authorization, inter-agent trust, market manipulation, regulatory compliance), derives 12 cross-layer attack vectors from a curated corpus of papers, protocol documents, industry reports and incidents, and proposes a layered defense for the authorization gaps in current agent payment protocols. The ACP it lists is written 'Agent Commerce Protocol', which may not be OpenAI's Agentic Commerce Protocol; that mapping is unconfirmed.

    Why it matters here: Places erc-8004, ap2, x402 and stripe-mpp in one threat framework and argues that their authorization gaps compound across the reasoning, tooling, custody and settlement layers. AP2: Places AP2 among agent commerce attack vectors. Stripe MPP (Machine Payments Protocol): Includes MPP in its protocol set for agent commerce security. x402: Security SoK of agentic commerce that covers x402.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{mao2026sok,
      title = {{SoK: Security of Autonomous LLM Agents in Agentic Commerce}},
      author = {Qian'ang Mao and Jiaxin Wang and Ya Liu and Li Zhu and Cong Ma and Jiaqi Yan},
      year = {2026},
      eprint = {2604.15367},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2604.15367}
    }
  19. Tempting the Agent: The Economics of Reputation without Persistent Identity in AI Agent Markets (external link)

    Federico Gatta, Manuel Naviglio, Francesco Tarantelli. 2026. Not peer reviewed arXiv 2609.02992 (open access, external link)

    A dynamic model in which an agent's reputation is capital that attracts future demand, and the agent chooses each period between honest operation, investing in quality, or a one-shot deviation that cashes out the reputation and restarts under a penalized new identity. The temptation depends on identity-reset cost, reputation persistence, demand sensitivity and enforcement design; ERC-8004, ERC-8183 and x402 are named as the motivating infrastructure.

    Why it matters here: Names ERC-8004 and x402 directly and states the economic condition under which an on-chain reputation registry disciplines agents: resetting an identity must cost more than the one-shot gain from burning it. ERC-8004: Trustless Agents: Economics of reputation when identities are cheap.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{gatta2026tempting,
      title = {Tempting the Agent: The Economics of Reputation without Persistent Identity in AI Agent Markets},
      author = {Federico Gatta and Manuel Naviglio and Francesco Tarantelli},
      year = {2026},
      eprint = {2609.02992},
      archivePrefix = {arXiv},
      primaryClass = {q-fin.GN},
      url = {https://arxiv.org/abs/2609.02992},
      note = {arXiv preprint}
    }
  20. The Web4 Agent Economy: A Large-Scale Empirical Study of the Landscape, Challenges, and Opportunities (external link)

    Yuhan Jin, Shuohan Wu, Chong Chen and others. 2026. Not peer reviewed arXiv 2606.25876 (open access, external link)

    Large-scale empirical study (version 2, 2026-09-02) of the Web4 agent economy built on MCP, x402 and EIP-8004 (ERC-8004). It analyzes 386,665 identities across 26 active mainnets, 605 sampled MCP-linked wallets and 377 classified GitHub issues. It counts 11.64 million x402 settlements on Base in a 30-day window: about 388,000 a day, about $639,000 in USDC, mean $0.055. The arXiv abstract still carries the version 1 figures.

    Why it matters here: Measurement of erc-8004 registrations and x402 transaction volume from a software-engineering angle; read it together with the authenticity analyses before quoting volume figures.

    Metadata verified 2026-10-19 through arxiv.

    Show BibTeX
    @misc{jin2026web4,
      title = {{The Web4 Agent Economy: A Large-Scale Empirical Study of the Landscape, Challenges, and Opportunities}},
      author = {Yuhan Jin and Shuohan Wu and Chong Chen and Lingfeng Bao and Xiaohu Yang and Jiachi Chen},
      year = {2026},
      eprint = {2606.25876},
      archivePrefix = {arXiv},
      primaryClass = {cs.SE},
      url = {https://arxiv.org/abs/2606.25876}
    }
  21. When HTTP 402 Meets the Blockchain: Risks on Emerging x402 Payments (external link)

    Qinying Wang, Yong Yang, Yuan Chen and others. 2026. USENIX Security 2026. Peer reviewed arXiv 2607.19545 (open access, external link)

    Studies facilitator-mediated x402 deployments in the wild, derives eight security rules for facilitators and four attack vectors (Free Shopping, Asset Theft, Service Denial, Gas Abuse), and applies a semi-automated black-box tool to 15 facilitators serving over 60,000 sellers and 360,000 buyers, finding violations in all of them. Findings were disclosed and mitigated, including changes by Coinbase, and the paper adds a measurement of more than 119 million Base and Solana transactions. Listed on the USENIX Security 2026 technical sessions page (accessed 2026-10-10).

    Why it matters here: Peer-reviewed evidence that the x402 facilitator is a shared trust point whose flaws affect many merchants at once, plus adoption and centralization metrics. x402: Studies facilitator-mediated deployments and proposes eight security rules for facilitators.

    Metadata verified 2026-10-10 through publisher.

    Show BibTeX
    @inproceedings{wang2026http402,
      title = {{When HTTP 402 Meets the Blockchain: Risks on Emerging x402 Payments}},
      author = {Qinying Wang and Yong Yang and Yuan Chen and Shouling Ji and Mathias Payer},
      year = {2026},
      booktitle = {USENIX Security Symposium (USENIX Security 2026)},
      publisher = {USENIX Association},
      eprint = {2607.19545},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2607.19545}
    }
  22. Sybil-Resistant Service Discovery for Agent Economies (external link)

    David Shi, Kevin Joo. 2025. Not peer reviewed arXiv 2510.27554 (open access, external link)

    Introduces TraceRank, a reputation-weighted ranking for x402-enabled services in which payment transactions act as endorsements, seeded with precomputed reputation and propagated through the payment graph weighted by value and recency, then combined with semantic search. The authors argue that this resists Sybil spam because many low-reputation payers rank below a few high-reputation ones.

    Why it matters here: An early proposal for discovery and reputation over the x402 payment graph, the same problem that erc-8004 reputation registries target. x402: Uses the x402 payment graph for Sybil-resistant service discovery.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{shi2025sybil,
      title = {{Sybil-Resistant Service Discovery for Agent Economies}},
      author = {David Shi and Kevin Joo},
      year = {2025},
      eprint = {2510.27554},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2510.27554}
    }
  1. NostrAgent: A Decentralized Identity and Delegation Architecture for Sovereign Agentic Systems (external link)

    Oliver Aleksander Larsen, Mahyar Tourchi Moghaddam. 2026. Not peer reviewed arXiv 2609.22944 (open access, external link)

    Unifies persistent identity, scoped delegation, peer trust, discovery and payment over Nostr relays with three custom event kinds (identity declarations with BIP340 Schnorr signatures and pre-rotation commitments, scoped delegation chains that narrow at each hop, and peer attestations forming a Sybil-deterrent trust graph), with Lightning L402 payments bound to agent identity. A Python prototype shows sub-millisecond offline verification and 157 ms median L402 settlement on regtest. The arXiv comment reports acceptance at AGENTICS 2026 (IJCCI 2026) for Springer CCIS; no publisher record confirms it yet.

    Why it matters here: A registry-free alternative to erc-8004 identity and reputation, paired with L402, the Lightning cousin of x402.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{larsen2026nostragent,
      title = {{NostrAgent: A Decentralized Identity and Delegation Architecture for Sovereign Agentic Systems}},
      author = {Oliver Aleksander Larsen and Mahyar Tourchi Moghaddam},
      year = {2026},
      eprint = {2609.22944},
      archivePrefix = {arXiv},
      primaryClass = {cs.SE},
      url = {https://arxiv.org/abs/2609.22944}
    }
  2. A Survey of AI Agent Protocols (external link)

    Yingxuan Yang, Huacan Chai, Yuanyi Song and others. 2025. Not peer reviewed arXiv 2504.16736 (open access, external link)

    Surveys agent communication protocols with a two-dimensional classification (context-oriented versus inter-agent, general-purpose versus domain-specific), compares them on security, scalability and latency, and lays out directions such as layered architectures, privacy preservation and group interaction.

    Why it matters here: Provides the taxonomy into which payment and commerce protocols (x402, AP2, ACP, UCP) slot as domain-specific layers above MCP and A2A. UCP: Survey of AI agent protocols for orientation.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{yang2025protocols,
      title = {A Survey of AI Agent Protocols},
      author = {Yingxuan Yang and Huacan Chai and Yuanyi Song and Siyuan Qi and Muning Wen and Ning Li and Junwei Liao and Haoyi Hu and Jianghao Lin and Gaowei Chang and Weiwen Liu and Ying Wen and Yong Yu and Weinan Zhang},
      year = {2025},
      eprint = {2504.16736},
      archivePrefix = {arXiv},
      primaryClass = {cs.AI},
      url = {https://arxiv.org/abs/2504.16736},
      note = {arXiv preprint}
    }
  3. Beyond DNS: Unlocking the Internet of AI Agents via the NANDA Index and Verified AgentFacts (external link)

    Ramesh Raskar, Pradyumna Chari, John Zinky and others. 2025. Not peer reviewed arXiv 2507.14263 (open access, external link)

    Describes the NANDA index architecture in which a lean index resolves to cryptographically verifiable AgentFacts supporting multi-endpoint routing, sub-second revocation and key rotation, schema-validated capability assertions and privacy-preserving discovery, with a CRDT-based update protocol and prototype resolvers.

    Why it matters here: Another discovery and identity layer competing with erc-8004 registries; relevant to how agents find x402-priced services.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{raskar2025nanda,
      title = {{Beyond DNS: Unlocking the Internet of AI Agents via the NANDA Index and Verified AgentFacts}},
      author = {Ramesh Raskar and Pradyumna Chari and John Zinky and Mahesh Lambe and Jared James Grogan and Sichao Wang and Rajesh Ranjan and Rekha Singhal and Shailja Gupta and Robert Lincourt and Raghu Bala and Aditi Joshi and Abhishek Singh and Ayush Chopra and Dimitris Stripelis and Bhuwan B and Sumit Kumar and Maria Gorskikh},
      year = {2025},
      eprint = {2507.14263},
      archivePrefix = {arXiv},
      primaryClass = {cs.NI},
      url = {https://arxiv.org/abs/2507.14263}
    }
  4. Web3 x AI Agents: Landscape, Integrations, and Foundational Challenges (external link)

    Yiming Shen, Jiashuo Zhang, Zhenzhe Shao and others. 2025. Not peer reviewed arXiv 2508.02773 (open access, external link)

    Landscape study of Web3 and AI agents across market, DeFi, governance, security and trust. Version 4 (2026-10-11) adds on-chain measurement of the agent standards layer: 530,266 ERC-8004 identity registrations across 16 chains and 432,913 x402 settlements on Base by 2026-09-01. The x402 count covers one settlement router contract on Base, not all facilitators.

    Why it matters here: A third x402 settlement count with a narrow definition (one router contract on one chain); compare it with population-wide counts only together with that definition.

    Metadata verified 2026-10-19 through arxiv.

    Show BibTeX
    @misc{shen2025web3agents,
      title = {{Web3 x AI Agents: Landscape, Integrations, and Foundational Challenges}},
      author = {Yiming Shen and Jiashuo Zhang and Zhenzhe Shao and Wenxuan Luo and Yanlin Wang and Ting Chen and Lingfeng Bao and Jiachi Chen},
      year = {2025},
      eprint = {2508.02773},
      archivePrefix = {arXiv},
      url = {https://arxiv.org/abs/2508.02773}
    }

Foundations

  1. Sprites and State Channels: Payment Networks that Go Faster than Lightning (external link)

    Andrew Miller, Iddo Bentov, Ranjit Kumaresan and others. 2017. Not peer reviewed arXiv 1702.05812 (open access, external link)

    Proposes Sprites, a payment channel construction for smart-contract chains that cuts the worst-case time collateral is locked along a multi-hop route and supports partial deposits and withdrawals without closing the channel. It also gives a modular treatment of general state channels.

    Why it matters here: A key reference for channel designs on Ethereum-style chains, where x402 settles; it explains the collateral and dispute costs any channel-based agent payment scheme must budget for. Stripe MPP (Machine Payments Protocol): Formalizes state channels and payment channels, the construction family behind MPP's Tempo session method; the MPP specs do not cite it.

    Metadata verified 2026-10-11 through arxiv.

    Show BibTeX
    @misc{miller2017sprites,
      title = {{Sprites and State Channels: Payment Networks that Go Faster than Lightning}},
      author = {Andrew Miller and Iddo Bentov and Ranjit Kumaresan and Christopher Cordi and Patrick McCorry},
      year = {2017},
      eprint = {1702.05812},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/1702.05812}
    }
  2. The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments (external link)

    Joseph Poon, Thaddeus Dryja. 2016. Not peer reviewed

    The white paper (draft version 0.5.9.2, dated 2016-01-14) for a network of bidirectional payment channels in which transfers happen off chain and are routed across channels with hashed timelock contracts, so only channel opening and closing touch the blockchain.

    Why it matters here: Payment channels are the main route to cheap, fast repeated payments; x402's batch-settlement scheme (first proposed as deferred) and the session intents in MPP's method specs inherit the channel model this paper popularized. Stripe MPP (Machine Payments Protocol): The design of the Lightning Network, which MPP's lightning charge and session methods pay over. MPP's cumulative-voucher sessions use one-way channels instead, and the MPP specs do not cite this paper.

    Metadata verified 2026-10-19 through publisher.

    Show BibTeX
    @misc{poon2016lightning,
      title = {{The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments}},
      author = {Joseph Poon and Thaddeus Dryja},
      year = {2016},
      howpublished = {White paper, draft version 0.5.9.2},
      note = {Not peer reviewed},
      url = {https://lightning.network/lightning-network-paper.pdf}
    }
  3. Micropayments for Decentralized Currencies (external link)

    Rafael Pass, abhi shelat. 2015. ACM CCS 2015. Peer reviewed DOI 10.1145/2810103.2813713 (external link)

    Adapts probabilistic micropayments to decentralized currencies such as Bitcoin, designing schemes where a payer issues lottery-style tickets and only winning tickets are settled on chain, with protections against a payer who double-spends the escrow.

    Why it matters here: Links the 1990s micropayment literature to blockchain settlement, the setting in which x402 operates and in which MPP offers on-chain payment methods. Stripe MPP (Machine Payments Protocol): Micropayments for decentralized currencies.

    Metadata verified 2026-10-11 through doi-negotiation.

    Show BibTeX
    @inproceedings{pass2015decentralized,
      title = {{Micropayments for Decentralized Currencies}},
      author = {Rafael Pass and abhi shelat},
      year = {2015},
      booktitle = {Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security},
      pages = {207--218},
      publisher = {ACM},
      doi = {10.1145/2810103.2813713},
      url = {https://doi.org/10.1145/2810103.2813713}
    }
  4. Electronic lottery tickets as micropayments (external link)

    Ronald L. Rivest. 1997. Financial Cryptography 1997, LNCS. Peer reviewed DOI 10.1007/3-540-63594-7_87 (external link)

    Proposes paying for many small items with electronic lottery tickets: each ticket wins a larger payment with small probability, so the expected value equals the price while the number of real transactions drops sharply.

    Why it matters here: Probabilistic payment is one of the standing answers to per-request fees that are smaller than settlement cost, a problem x402 and MPP face whenever an agent buys thousands of cheap API calls. Stripe MPP (Machine Payments Protocol): Probabilistic micropayments, an alternative to channels.

    Metadata verified 2026-10-11 through doi-negotiation.

    Show BibTeX
    @inproceedings{rivest1997lottery,
      title = {{Electronic lottery tickets as micropayments}},
      author = {Ronald L. Rivest},
      year = {1997},
      booktitle = {Financial Cryptography},
      series = {Lecture Notes in Computer Science},
      pages = {307--314},
      publisher = {Springer},
      doi = {10.1007/3-540-63594-7_87},
      url = {https://doi.org/10.1007/3-540-63594-7_87}
    }
  5. PayWord and MicroMint: Two simple micropayment schemes (external link)

    Ronald L. Rivest, Adi Shamir. 1997. Security Protocols workshop 1996, LNCS (published 1997). Peer reviewed DOI 10.1007/3-540-62494-5_6 (external link)

    Introduces two micropayment schemes: PayWord, where a user commits to a hash chain and pays by revealing successive hash values, and MicroMint, where coins are hash collisions that are cheap to verify but costly to mint at scale. Both aim to make each payment far cheaper than a public-key signature.

    Why it matters here: The hash-chain idea behind PayWord is the template for streaming and session payments; MPP sessions and payment channels used with x402 apply the same principle of one setup and many cheap increments. Stripe MPP (Machine Payments Protocol): Hash-chain micropayments in which the latest token covers all earlier ones, an idea MPP's cumulative vouchers share; the MPP specs do not cite it.

    Metadata verified 2026-10-11 through doi-negotiation.

    Show BibTeX
    @inproceedings{rivest1997payword,
      title = {{PayWord and MicroMint: Two simple micropayment schemes}},
      author = {Ronald L. Rivest and Adi Shamir},
      year = {1997},
      booktitle = {Security Protocols},
      series = {Lecture Notes in Computer Science},
      pages = {69--87},
      publisher = {Springer},
      doi = {10.1007/3-540-62494-5_6},
      url = {https://doi.org/10.1007/3-540-62494-5_6}
    }
  6. The Millicent Protocol for Inexpensive Electronic Commerce (external link)

    Steve Glassman, Mark Manasse, Martín Abadi and others. 1995. Fourth International World Wide Web Conference (WWW4). Peer reviewed

    Describes Millicent, a protocol for web purchases below one cent in which brokers sell vendor-specific scrip that each vendor can validate locally, without extra network round trips or heavy cryptography. Brokers handle accounts and billing so vendors and customers do not need direct financial relationships.

    Why it matters here: The direct ancestor of pay-per-request web payments: x402 and MPP revisit the same goal of charging tiny amounts per HTTP resource, with stablecoins and facilitators in the broker role.

    Metadata verified 2026-10-11 through publisher.

    Show BibTeX
    @inproceedings{glassman1995millicent,
      title = {{The Millicent Protocol for Inexpensive Electronic Commerce}},
      author = {Steve Glassman and Mark Manasse and Martín Abadi and Paul Gauthier and Patrick Sobalvarro},
      year = {1995},
      booktitle = {Fourth International World Wide Web Conference},
      address = {Boston, MA, USA},
      url = {https://www.w3.org/Conferences/WWW4/Papers/246/}
    }

Security

  1. A2ABreak: Systematic Security Analysis of the A2A Protocol (external link)

    Alireza Lotfi, Mirza Masfiqur Rahman, Imtiaz Karim and others. 2026. Not peer reviewed arXiv 2609.10871 (open access, external link)

    Extracts a verified finite-state machine (37 states and 76 transitions from 929 formalized statements) from the A2A specification with LLM assistance and reasons over it to find 11 protocol-level vulnerabilities exploitable by specification-compliant adversaries, including cross-client context injection, credential harvesting through identity loss in multi-hop delegation chains, and exfiltration through unattested capability claims.

    Why it matters here: The a2a-x402 extension and the AP2 samples run on A2A, so specification-level flaws in A2A delegation and identity flow into their trust assumptions.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{lotfi2026a2abreak,
      title = {{A2ABreak: Systematic Security Analysis of the A2A Protocol}},
      author = {Alireza Lotfi and Mirza Masfiqur Rahman and Imtiaz Karim and Elisa Bertino},
      year = {2026},
      eprint = {2609.10871},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2609.10871}
    }
  2. Agentic Commerce Bench: Measuring Fraud Detection for Agents That Spend Money (external link)

    Ankit Srivastava, Debjyoti Paul. 2026. Not peer reviewed arXiv 2609.35886 (open access, external link)

    Presents a fraud taxonomy for agents with spend authority organized by five observation levels, a benchmark of twenty fraud classes built from production aggregates (1,647 service operations and 1,068 settlements), and gordonguard, an open-source detector stack. Calibrated detectors flag 6.5 percent of clean traffic and leave eight classes at chance, and a median payment of $0.007 makes one human review 143 times costlier than the payment it checks.

    Why it matters here: Targets fraud on machine-to-machine rails: its benchmark traffic settles over x402, where a counterparty can be exactly who it claims to be and still overcharge, so identity checks alone do not stop value loss. The paper does not name ERC-8004.

    Metadata verified 2026-10-19 through arxiv.

    Show BibTeX
    @misc{srivastava2026acb,
      title = {Agentic Commerce Bench: Measuring Fraud Detection for Agents That Spend Money},
      author = {Ankit Srivastava and Debjyoti Paul},
      year = {2026},
      eprint = {2609.35886},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2609.35886},
      note = {arXiv preprint}
    }
  3. AIP: Agent Identity Protocol for Verifiable Delegation Across MCP and A2A (external link)

    Sunil Prakash. 2026. Not peer reviewed arXiv 2603.24775 (open access, external link)

    Introduces Invocation-Bound Capability Tokens, an append-only token chain that fuses identity, attenuated authorization and provenance binding, in a compact JWT mode and a chained Biscuit mode with Datalog policies for multi-hop delegation across MCP, A2A and HTTP. Python and Rust implementations add sub-millisecond overhead, and all 600 adversarial attempts were rejected.

    Why it matters here: Delegation tokens for the A2A and MCP layers that the AP2 samples and the a2a-x402 extension use, and a descendant of the Macaroons caveat model. AP2: Verifiable delegation across MCP and A2A.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{prakash2026aip,
      title = {{AIP: Agent Identity Protocol for Verifiable Delegation Across MCP and A2A}},
      author = {Sunil Prakash},
      year = {2026},
      eprint = {2603.24775},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2603.24775}
    }
  4. APEX: Agent Payment Execution with Policy for Autonomous Agent API Access (external link)

    Mohd Safwan Uddin, Mohammed Mouzam, Mohammed Imran and others. 2026. Not peer reviewed arXiv 2604.02023 (open access, external link)

    APEX adapts HTTP 402-style payment gating to UPI-like real-time fiat rails with a challenge-settle-consume lifecycle, HMAC-signed short-lived tokens, idempotent settlement and policy-governed spend approval; in six scenarios policy enforcement cut spending by 27.3% while blocking all replay and invalid-token attempts.

    Why it matters here: Shows the x402 pattern without the cryptocurrency rail, relevant to regions where stablecoin settlement is impractical.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{uddin2026apex,
      title = {{APEX: Agent Payment Execution with Policy for Autonomous Agent API Access}},
      author = {Mohd Safwan Uddin and Mohammed Mouzam and Mohammed Imran and Syed Badar Uddin Faizan},
      year = {2026},
      eprint = {2604.02023},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2604.02023}
    }
  5. APort Vault: Benchmarking AI Agent Payment Authorization with the Open Agent Passport (external link)

    Uchi Uchibeke. 2026. Not peer reviewed arXiv 2609.22076 (open access, external link)

    Replays 4,371 human-written attacks from a capture-the-flag event against a live payment agent across 14 models, five policy levels and two tracks, with and without a deterministic pre-action check implementing the author's Open Agent Passport specification. Transfers to recipients the passport did not permit occurred 140 times in 76,842 model-alone evaluations and zero times in 69,297 behind the layer, while 25,370 legitimate payments still executed.

    Why it matters here: A benchmark of the authorization boundary that AP2 mandates, x402 payment headers and VIC instructions all depend on: deterministic policy enforcement outside the model stopped recipient hijacks that prompting alone did not. The Open Agent Passport is the author's own specification, so read the comparison with that in mind.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{uchibeke2026aport,
      title = {APort Vault: Benchmarking AI Agent Payment Authorization with the Open Agent Passport},
      author = {Uchi Uchibeke},
      year = {2026},
      eprint = {2609.22076},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2609.22076},
      note = {arXiv preprint}
    }
  6. Authority-Inference Separation in Agentic Finance: Intent-Bound Control, EVM Enforcement, and Replayable Assurance (external link)

    Hui Gong, Michail Samawi, Francesca Medda. 2026. Systems (MDPI), vol. 14, no. 10 (2026). Peer reviewed arXiv 2608.30519 (open access, external link) DOI 10.3390/systems14101329 (external link)

    Develops Authority-Inference Separation, an architecture in which an agent's proposed financial action gains temporary executable authority only after a deterministic control plane validates registered identity, accountable ownership, mandate lineage, policy version and exact economic semantics, with blockchain enforcing granted authority and recording evidence. A 48-fixture prototype rejected all 36 synthetic authorization attacks, and a test of 1,700 Base transactions tied to public x402 facilitator addresses shows that public ledgers evidence settlement but not mandate, accountability or delivery. The peer-reviewed version appeared in the MDPI journal Systems on 2026-10-20 under this title; the arXiv preprint is titled "Authority-Inference Separation in Agentic Finance: First-Line Control, Blockchain Enforcement, and Replayable Assurance", and the figures above come from its abstract.

    Why it matters here: Uses live x402 facilitator traffic to show what on-chain data cannot prove, and frames mandate lineage in terms that map onto ap2 mandates and erc-8004 identity.

    Metadata verified 2026-11-14 through crossref.

    Show BibTeX
    @article{gong2026ais,
      title = {{Authority-Inference Separation in Agentic Finance: Intent-Bound Control, EVM Enforcement, and Replayable Assurance}},
      author = {Hui Gong and Michail Samawi and Francesca Medda},
      year = {2026},
      journal = {Systems},
      volume = {14},
      number = {10},
      publisher = {MDPI},
      doi = {10.3390/systems14101329},
      eprint = {2608.30519},
      archivePrefix = {arXiv},
      primaryClass = {q-fin.GN},
      url = {https://arxiv.org/abs/2608.30519}
    }
  7. Before the Tool Call: Deterministic Pre-Action Authorization for Autonomous AI Agents (external link)

    Uchi Uchibeke. 2026. Not peer reviewed arXiv 2603.20953 (open access, external link)

    Characterizes the pre-action authorization problem, enforcing policy on a tool call before it executes, and presents the Open Agent Passport, an open specification and implementation that intercepts tool calls, evaluates a declarative policy and emits signed audit records at a median of 53 ms. In a live adversarial testbed with 4,437 decisions, social engineering succeeded 74.6% of the time under a permissive policy and 0% across 879 attempts under a restrictive one.

    Why it matters here: The authorization layer that the APort Vault benchmark later uses for payment authorization; it sits in front of x402 and ap2 spending actions.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{uchibeke2026oap,
      title = {{Before the Tool Call: Deterministic Pre-Action Authorization for Autonomous AI Agents}},
      author = {Uchi Uchibeke},
      year = {2026},
      eprint = {2603.20953},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2603.20953}
    }
  8. Can CaMeLs Talk? Securing Multi-Agent Systems Against Indirect Prompt Injection Attacks (external link)

    James Peters-Gill, Avi Semler, Henning Bartsch and others. 2026. Not peer reviewed arXiv 2610.05640 (open access, external link)

    Shows that CaMeL's guarantees do not compose when agents call other agents as tools, because a downstream agent can reinterpret untrusted data as trusted input, and gives a concrete attack. Multi-CaMeL, an agent-to-agent protocol that passes untrusted data through a separate channel, brings attack success on MultiAgentDojo to 0.0 percent versus 0.2 percent for single-agent CaMeL and 12.9 percent undefended.

    Why it matters here: Agent-to-agent commerce (A2A with x402, or buyer and merchant agents under ACP) is the hierarchical setting in which single-agent defenses fail; the protocol-level fix speaks to how payment messages between agents should be typed.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{petersgill2026multicamel,
      title = {Can CaMeLs Talk? Securing Multi-Agent Systems Against Indirect Prompt Injection Attacks},
      author = {James Peters-Gill and Avi Semler and Henning Bartsch and Ilia Shumailov and Christian Schroeder de Witt},
      year = {2026},
      eprint = {2610.05640},
      archivePrefix = {arXiv},
      primaryClass = {cs.MA},
      url = {https://arxiv.org/abs/2610.05640},
      note = {arXiv preprint}
    }
  9. Defeating Prompt Injections by Design (external link)

    Edoardo Debenedetti, Ilia Shumailov, Tianqi Fan and others. 2026. IEEE Conference on Secure and Trustworthy Machine Learning (SaTML 2026), pp. 587-618. Peer reviewed arXiv 2503.18813 (open access, external link) DOI 10.1109/SaTML68715.2026.00040 (external link)

    CaMeL wraps the LLM in a protective system layer that extracts control and data flow from the trusted user query, so retrieved data can never alter program flow, and attaches capabilities to values so tool calls are checked against security policies. It solved 77 percent of AgentDojo tasks with provable security versus 84 percent for an undefended agent.

    Why it matters here: The capability model is a natural enforcement point for payment policy: an AP2 open mandate's constraints (for example payment.amount_range) or an x402 spend limit can be expressed as a CaMeL policy on the payment tool's arguments.

    Metadata verified 2026-10-10 through doi-negotiation.

    Show BibTeX
    @inproceedings{debenedetti2026camel,
      title = {Defeating Prompt Injections by Design},
      author = {Edoardo Debenedetti and Ilia Shumailov and Tianqi Fan and Jamie Hayes and Nicholas Carlini and Daniel Fabian and Christoph Kern and Chongyang Shi and Andreas Terzis and Florian Tramèr},
      year = {2026},
      booktitle = {2026 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML)},
      publisher = {IEEE},
      pages = {587-618},
      doi = {10.1109/SaTML68715.2026.00040},
      eprint = {2503.18813},
      archivePrefix = {arXiv},
      url = {https://arxiv.org/abs/2503.18813}
    }
  10. From Review to Authorization: Key-Isolated Threshold Signing for LLM Agents (external link)

    Yu Zheng, Qizhi Zhang. 2026. Not peer reviewed arXiv 2609.05901 (open access, external link)

    KITA keeps the user's signing key and every threshold key share outside all LLM processes; an action is authorized only when t reviewer-signer domains contribute shares bound to the canonical action after authenticated approval, so a prompt-injected proposer cannot forge an authorization. The path is implemented with a structured-output LLM adapter and threshold BLS signatures.

    Why it matters here: Addresses a gap AP2 leaves open that also applies to x402 clients: the agent that reads untrusted content should not hold the credential that signs the payment. The paper discusses AP2 and does not name x402.

    Metadata verified 2026-10-19 through arxiv.

    Show BibTeX
    @misc{zheng2026kita,
      title = {From Review to Authorization: Key-Isolated Threshold Signing for LLM Agents},
      author = {Yu Zheng and Qizhi Zhang},
      year = {2026},
      eprint = {2609.05901},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2609.05901},
      note = {arXiv preprint}
    }
  11. Runtime Authorization for Resources Acquired by AI Agents (external link)

    Genliang Zhu, Chu Wang. 2026. Not peer reviewed arXiv 2609.14744 (open access, external link)

    Identifies a post-fulfillment activation gap: payment, budget, OAuth, mandate and fulfillment checks validate a transaction but do not decide whether a resource an agent acquires (compute, credentials, accounts, other agents) may become usable authority. Proposes a provenance-bounded runtime authorization architecture that quarantines acquired outputs and activates them only through checked activation transactions, with eight proved safety properties and trace-based evaluation.

    Why it matters here: Extends the ap2 and x402 question from whether a payment was authorized to what the agent may do with what it bought, a gap none of the eight protocols addresses.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{zhu2026runtimeauth,
      title = {{Runtime Authorization for Resources Acquired by AI Agents}},
      author = {Genliang Zhu and Chu Wang},
      year = {2026},
      eprint = {2609.14744},
      archivePrefix = {arXiv},
      primaryClass = {cs.AI},
      url = {https://arxiv.org/abs/2609.14744}
    }
  12. SoK: Decentralized Agent Economic Infrastructure (external link)

    Rui Sun, Xihan Xiong, Qin Wang and others. 2026. Not peer reviewed arXiv 2610.01756 (open access, external link)

    Systematizes security and economic requirements across the lifecycle of an agent task into 17 property families over six stages, examines 12 systems and standards, five mechanism families and four classical baselines, and introduces guarantee closure, a criterion for whether guarantees made at one stage still constrain later decisions. Experiments over 840 matched executions and an 11,648-case check expose recurring gaps between verification and settlement.

    Why it matters here: Relevant to stacks that chain ERC-8004 identity and validation with x402 payment: it shows how an escrow can release funds on an approval that carries little evidence the work was done. Which 12 systems are covered was not confirmed from the abstract alone.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{sun2026sokeconomic,
      title = {SoK: Decentralized Agent Economic Infrastructure},
      author = {Rui Sun and Xihan Xiong and Qin Wang and Fei Gao and Zelin Li and Zehua Cheng and Jiahao Sun and Zhipeng Wang},
      year = {2026},
      eprint = {2610.01756},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2610.01756},
      note = {arXiv preprint}
    }
  13. Design Patterns for Securing LLM Agents against Prompt Injections (external link)

    Luca Beurer-Kellner, Beat Buesser, Ana-Maria Creţu and others. 2025. Not peer reviewed arXiv 2506.08837 (open access, external link)

    Proposes a set of principled design patterns that restrict how untrusted inputs can influence an agent's actions, analyzes their utility and security trade-offs, and illustrates them with case studies of real applications.

    Why it matters here: A practical checklist for anyone building a buying agent on ACP, AP2 or x402: the patterns constrain which parts of agent state untrusted merchant content may ever touch.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{beurerkellner2025patterns,
      title = {Design Patterns for Securing LLM Agents against Prompt Injections},
      author = {Luca Beurer-Kellner and Beat Buesser and Ana-Maria Creţu and Edoardo Debenedetti and Daniel Dobos and Daniel Fabian and Marc Fischer and David Froelicher and Kathrin Grosse and Daniel Naeff and Ezinwanne Ozoani and Andrew Paverd and Florian Tramèr and Václav Volhejn},
      year = {2025},
      eprint = {2506.08837},
      archivePrefix = {arXiv},
      primaryClass = {cs.LG},
      url = {https://arxiv.org/abs/2506.08837},
      note = {arXiv preprint}
    }
  14. Real AI Agents with Fake Memories: Fatal Context Manipulation Attacks on Web3 Agents (external link)

    Atharv Singh Patlan, Peiyao Sheng, S. Ashwin Hebbar and others. 2025. Not peer reviewed arXiv 2503.16248 (open access, external link)

    Defines context manipulation (input channels, memory modules and external data feeds) as the attack surface of blockchain agents, shows on ElizaOS that injected prompts or falsified memories trigger unauthorized asset transfers, and introduces CrAIBench with over 150 Web3 tasks and over 500 attack cases. Memory injection proved more effective than prompt injection, and prompt-injection detectors offered little protection.

    Why it matters here: The closest existing study of agents that hold crypto spending keys, the deployment model for x402 clients and ERC-8004 registered agents; a poisoned memory can drain a wallet that no protocol-level check would stop.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{patlan2025memories,
      title = {Real AI Agents with Fake Memories: Fatal Context Manipulation Attacks on Web3 Agents},
      author = {Atharv Singh Patlan and Peiyao Sheng and S. Ashwin Hebbar and Prateek Mittal and Pramod Viswanath},
      year = {2025},
      eprint = {2503.16248},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2503.16248},
      note = {arXiv preprint}
    }
  15. AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents (external link)

    Edoardo Debenedetti, Jie Zhang, Mislav Balunović and others. 2024. NeurIPS 2024 Datasets and Benchmarks Track. Peer reviewed arXiv 2406.13352 (open access, external link)

    An extensible environment for agents that run tools over untrusted data, with 97 realistic tasks (email, e-banking, travel booking), 629 security test cases and pluggable attacks and defenses. Frontier models fail many tasks even without attacks, and existing injections break some but not all security properties.

    Why it matters here: Its e-banking and booking suites are the closest public testbed to agent payments, and the defenses cited here (CaMeL, multi-CaMeL) report their numbers on it.

    Metadata verified 2026-10-10 through publisher.

    Show BibTeX
    @inproceedings{debenedetti2024agentdojo,
      title = {AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents},
      author = {Edoardo Debenedetti and Jie Zhang and Mislav Balunović and Luca Beurer-Kellner and Marc Fischer and Florian Tramèr},
      year = {2024},
      booktitle = {Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track},
      url = {https://proceedings.neurips.cc/paper_files/paper/2024/hash/97091a5177d8dc64b1da8bf3e1f6fb54-Abstract-Datasets_and_Benchmarks_Track.html},
      eprint = {2406.13352},
      archivePrefix = {arXiv}
    }
  16. InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents (external link)

    Qiusi Zhan, Zhixiang Liang, Zifan Ying and others. 2024. Findings of ACL 2024, pp. 10471-10506. Peer reviewed arXiv 2403.02691 (open access, external link) DOI 10.18653/v1/2024.findings-acl.624 (external link)

    A benchmark of 1,054 test cases over 17 user tools and 62 attacker tools that measures whether tool-integrated agents follow injected instructions aimed at direct harm or data exfiltration. Across 30 agents the vulnerability was substantial, with ReAct-prompted GPT-4 following injections in roughly one case in four.

    Why it matters here: Supplies the attacker-tool framing (a malicious tool result that triggers a transfer) that payment-agent threat models for AP2 and x402 reuse.

    Metadata verified 2026-10-10 through doi-negotiation.

    Show BibTeX
    @inproceedings{zhan2024injecagent,
      title = {InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents},
      author = {Qiusi Zhan and Zhixiang Liang and Zifan Ying and Daniel Kang},
      year = {2024},
      booktitle = {Findings of the Association for Computational Linguistics: ACL 2024},
      publisher = {Association for Computational Linguistics},
      pages = {10471-10506},
      doi = {10.18653/v1/2024.findings-acl.624},
      url = {https://aclanthology.org/2024.findings-acl.624/},
      eprint = {2403.02691},
      archivePrefix = {arXiv}
    }
  17. Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (external link)

    Kai Greshake, Sahar Abdelnabi, Shailesh Mishra and others. 2023. AISec 2023 (16th ACM Workshop on Artificial Intelligence and Security, at CCS 2023), pp. 79-90. Peer reviewed arXiv 2302.12173 (open access, external link) DOI 10.1145/3605764.3623985 (external link)

    Introduces indirect prompt injection: adversaries plant instructions in data that an LLM-integrated application will retrieve, so the model is attacked without any direct interface. The paper gives a security taxonomy of impacts, including data theft, worming and contamination of the information ecosystem, and demonstrates attacks on real systems.

    Why it matters here: The founding paper for the threat every agentic payment protocol must contain. AP2 mandates, TAP intent signatures and ACP's structured checkout all exist partly because retrieved merchant content can hijack the buying agent; x402 leaves that defense to client policies such as spend caps and payTo checks. Agentic Commerce Protocol (ACP): Indirect prompt injection, relevant to merchant text rendered by the agent.

    Metadata verified 2026-10-19 through doi-negotiation.

    Show BibTeX
    @inproceedings{greshake2023injection,
      title = {Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection},
      author = {Kai Greshake and Sahar Abdelnabi and Shailesh Mishra and Christoph Endres and Thorsten Holz and Mario Fritz},
      year = {2023},
      booktitle = {Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec '23)},
      publisher = {ACM},
      pages = {79-90},
      doi = {10.1145/3605764.3623985},
      eprint = {2302.12173},
      archivePrefix = {arXiv},
      url = {https://arxiv.org/abs/2302.12173}
    }
  18. Macaroons: Cookies with Contextual Caveats for Decentralized Authorization in the Cloud (external link)

    Arnar Birgisson, Joe Gibbs Politz, Úlfar Erlingsson and others. 2014. NDSS 2014. Peer reviewed DOI 10.14722/ndss.2014.23212 (external link)

    Introduces macaroons, bearer credentials built from chained HMACs that any holder can attenuate by adding caveats (contextual restrictions such as time, target or third-party discharge) without contacting the issuer, enabling decentralized delegation in cloud services.

    Why it matters here: The attenuable-token model behind later agent delegation designs (Biscuit tokens in AIP, scoped mandates in ap2) and a reference point for how visa-tap and openai-acp scope agent authority. AP2: Caveat-based attenuation, an ancestor of constraint-limited delegation. x402: Macaroons, the credential in the original L402 design (an earlier HTTP 402 approach on Lightning).

    Metadata verified 2026-10-10 through doi-negotiation.

    Show BibTeX
    @inproceedings{birgisson2014macaroons,
      title = {{Macaroons: Cookies with Contextual Caveats for Decentralized Authorization in the Cloud}},
      author = {Arnar Birgisson and Joe Gibbs Politz and Úlfar Erlingsson and Ankur Taly and Michael Vrable and Mark Lentczner},
      year = {2014},
      booktitle = {Proceedings 2014 Network and Distributed System Security Symposium (NDSS)},
      publisher = {Internet Society},
      doi = {10.14722/ndss.2014.23212},
      url = {https://doi.org/10.14722/ndss.2014.23212}
    }
  19. Blind Signatures for Untraceable Payments (external link)

    David Chaum. 1983. Advances in Cryptology, Springer 1983. Peer reviewed DOI 10.1007/978-1-4757-0602-4_18 (external link)

    Introduces blind signatures, where a signer signs a message without seeing it, and uses them to build payments that the bank can verify but cannot link back to the payer.

    Why it matters here: The origin of private digital cash; it frames the privacy trade-off in agent payments, where x402 settles on public ledgers and card-based agent payments expose purchase data to the networks.

    Metadata verified 2026-10-11 through doi-negotiation.

    Show BibTeX
    @inproceedings{chaum1983blind,
      title = {{Blind Signatures for Untraceable Payments}},
      author = {David Chaum},
      year = {1983},
      booktitle = {Advances in Cryptology},
      pages = {199--203},
      publisher = {Springer},
      doi = {10.1007/978-1-4757-0602-4_18},
      url = {https://doi.org/10.1007/978-1-4757-0602-4_18}
    }

Economics and markets

  1. Evolution of Market Microstructure in the Age of AI (external link)

    Irene Aldridge. 2026. Not peer reviewed arXiv 2609.33058 (open access, external link)

    A survey tracing market microstructure from floor trading through electronic order books, batch auctions, dark pools and blockchain automated market makers to AI agents that discover, pay for and compete over resources, organized around whether a market can allocate efficiently without participants revealing everything. It argues that allocation is the missing layer of the agent-commerce protocol stack.

    Why it matters here: Positions x402 as the posted-price payment layer of an agent stack whose missing layer is allocation, and says agent commerce inherits the extractable value of the chains it settles on.

    Metadata verified 2026-10-19 through arxiv.

    Show BibTeX
    @misc{aldridge2026microstructure,
      title = {Evolution of Market Microstructure in the Age of AI},
      author = {Irene Aldridge},
      year = {2026},
      eprint = {2609.33058},
      archivePrefix = {arXiv},
      primaryClass = {econ.EM},
      url = {https://arxiv.org/abs/2609.33058},
      note = {arXiv preprint}
    }
  2. Markets, Not Planners: Decentralized Orchestration of LLM Agents with Private Information (external link)

    Xiao Liu, Haoyang Li, Songwei Li and others. 2026. Not peer reviewed arXiv 2608.23867 (open access, external link)

    Replaces centralized orchestration with AgentLance, a repeated labor market in which agents bid on tasks using private costs, an allocator picks winners from bids and public reputation records, a VCG-style rule sets payments, and winners can subcontract through the same mechanism. It outperforms single-model, centralized and market baselines, and the authors show a centralized LLM allocator can be swayed by a single inserted preference.

    Why it matters here: Demonstrates reputation records and payments working together to allocate agent labor, which is the combination ERC-8004 (reputation) and x402 (payment) aim to provide on open rails.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{liu2026agentlance,
      title = {Markets, Not Planners: Decentralized Orchestration of LLM Agents with Private Information},
      author = {Xiao Liu and Haoyang Li and Songwei Li and Hongbo Fang and Fengli Xu and Feng Shi and James Evans},
      year = {2026},
      eprint = {2608.23867},
      archivePrefix = {arXiv},
      primaryClass = {cs.MA},
      url = {https://arxiv.org/abs/2608.23867},
      note = {arXiv preprint}
    }
  3. The Agentic Economy (external link)

    David M. Rothschild, Markus M. Mobius, Jake M. Hofman and others. 2026. Communications of the ACM, vol. 69, no. 2, pp. 39-42 (2026). Peer reviewed arXiv 2505.15799 (open access, external link) DOI 10.1145/3747175 (external link)

    Argues that the deepest economic effect of generative AI is lower communication friction between consumers and businesses, with assistant agents and service agents transacting programmatically. The authors separate unscripted interactions, enabled by language and protocol design, from unrestricted interactions, which depend on market structure and governance, and discuss walled gardens versus an open agent web, advertising and discovery, micro-transactions and the rebundling of digital goods.

    Why it matters here: The clearest economic framing of why ACP, UCP and AP2 exist: its assistant-agent and service-agent split maps onto the buyer-agent and merchant roles those protocols standardize, and its walled-garden warning is the open question behind all of them, with x402 as the micro-transaction case.

    Metadata verified 2026-10-10 through doi-negotiation.

    Show BibTeX
    @article{rothschild2026agenticeconomy,
      title = {The Agentic Economy},
      author = {David M. Rothschild and Markus M. Mobius and Jake M. Hofman and Eleanor Dillon and Daniel G. Goldstein and Nicole Immorlica and Sonia Jaffe and Brendan Lucier and Aleksandrs Slivkins and Matthew Vogel},
      year = {2026},
      journal = {Communications of the ACM},
      volume = {69},
      number = {2},
      pages = {39-42},
      doi = {10.1145/3747175},
      url = {https://doi.org/10.1145/3747175},
      eprint = {2505.15799},
      archivePrefix = {arXiv}
    }
  4. Agentic Web: Weaving the Next Web with AI Agents (external link)

    Yingxuan Yang, Mulei Ma, Yuxuan Huang and others. 2025. Not peer reviewed arXiv 2507.21206 (open access, external link)

    Proposes a framework for the Agentic Web built on three dimensions (intelligence, interaction, economics), traces its evolution from the PC and mobile web, and discusses communication protocols, orchestration and an Agent Attention Economy together with governance risks.

    Why it matters here: Its economics dimension and attention-economy discussion anticipate the discovery and monetization questions that UCP, ACP and x402 are now standardizing.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{yang2025agenticweb,
      title = {Agentic Web: Weaving the Next Web with AI Agents},
      author = {Yingxuan Yang and Mulei Ma and Yuxuan Huang and Huacan Chai and Chenyu Gong and Haoran Geng and Yuanjian Zhou and Ying Wen and Meng Fang and Muhao Chen and Shangding Gu and Ming Jin and Costas Spanos and Yang Yang and Pieter Abbeel and Dawn Song and Weinan Zhang and Jun Wang},
      year = {2025},
      eprint = {2507.21206},
      archivePrefix = {arXiv},
      primaryClass = {cs.AI},
      url = {https://arxiv.org/abs/2507.21206},
      note = {arXiv preprint}
    }
  5. Evaluating LLM Agent Collusion in Double Auctions (external link)

    Kushal Agrawal, Verona Teo, Juan J. Vazquez and others. 2025. Not peer reviewed arXiv 2507.01413 (open access, external link)

    Places LLM sellers in simulated continuous double auctions and tests when they collude, defined as secret cooperation that harms another party. Direct seller communication increases collusion, propensity differs by model, and oversight or urgency from authority figures changes collusive behavior.

    Why it matters here: Relevant to any multi-seller agent market on ACP, UCP or x402: giving seller agents a channel to talk to each other is itself a competition risk.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{agrawal2025collusion,
      title = {Evaluating LLM Agent Collusion in Double Auctions},
      author = {Kushal Agrawal and Verona Teo and Juan J. Vazquez and Sudarsh Kunnavakkam and Vishak Srikanth and Andy Liu},
      year = {2025},
      eprint = {2507.01413},
      archivePrefix = {arXiv},
      primaryClass = {cs.GT},
      url = {https://arxiv.org/abs/2507.01413},
      note = {arXiv preprint}
    }
  6. Virtual Agent Economies (external link)

    Nenad Tomasev, Matija Franklin, Joel Z. Leibo and others. 2025. Not peer reviewed arXiv 2509.10147 (open access, external link)

    Proposes the sandbox economy as a lens on the emerging layer in which AI agents transact at machine speed, classifying it by origin (emergent or intentional) and by permeability to the human economy. The authors discuss auctions for resource allocation, mission economies, and the identity, trust and oversight infrastructure needed to steer such markets, warning that the current path leads to a large and highly permeable agent economy with systemic risk.

    Why it matters here: Names the infrastructure gaps (verifiable identity, reputation, controls on permeability) that ERC-8004 and x402 are being built to fill, and gives the policy vocabulary for discussing them.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{tomasev2025virtual,
      title = {Virtual Agent Economies},
      author = {Nenad Tomasev and Matija Franklin and Joel Z. Leibo and Julian Jacobs and William A. Cunningham and Iason Gabriel and Simon Osindero},
      year = {2025},
      eprint = {2509.10147},
      archivePrefix = {arXiv},
      primaryClass = {cs.AI},
      url = {https://arxiv.org/abs/2509.10147},
      note = {arXiv preprint}
    }
  7. The Case Against Micropayments (external link)

    Andrew Odlyzko. 2003. Financial Cryptography 2003, LNCS. Peer reviewed DOI 10.1007/978-3-540-45126-6_6 (external link)

    Argues from pricing history that people prefer flat-rate and bundled pricing over metered charges, and that the mental cost of deciding on each tiny payment is the main obstacle to micropayments, not the technology.

    Why it matters here: The classic objection to pay-per-use pricing; agent payments may sidestep it because software, not a person, makes each spending decision, which is the core bet behind x402 and MPP. Stripe MPP (Machine Payments Protocol): The classic critique of per-unit pricing, relevant to MPP's tiny payments: MPPscan averaged about 0.01 USD per transaction in the 30 days to 2026-10-21.

    Metadata verified 2026-10-11 through doi-negotiation.

    Show BibTeX
    @inproceedings{odlyzko2003against,
      title = {{The Case Against Micropayments}},
      author = {Andrew Odlyzko},
      year = {2003},
      booktitle = {Financial Cryptography},
      series = {Lecture Notes in Computer Science},
      pages = {77--83},
      publisher = {Springer},
      doi = {10.1007/978-3-540-45126-6_6},
      url = {https://doi.org/10.1007/978-3-540-45126-6_6}
    }

Law and governance

  1. Bonded Recourse for Smart-Contract Settlement of Compensable Agent Side Effects (external link)

    Laurent Bindschaedler, Quentin Botha, Christoph Siebenbrunner. 2026. Not peer reviewed arXiv 2609.01939 (open access, external link)

    Designs Recourse, a set of smart contracts that binds each agent action to its scope, recovery plan, evidence, payout and collateral, so residual harm from a permitted action that fails can be settled through an optimistic oracle or arbitration. The authors deploy it on Base Sepolia and report less uncompensated harm than authorization-only baselines; the arXiv comment says it was accepted at IEEE BCCA 2026, not yet confirmed in proceedings.

    Why it matters here: Adds the after-the-fact remedy that payment and identity protocols lack; it pairs naturally with ERC-8004 reputation and on-chain settlement used by x402.

    Metadata verified 2026-10-11 through arxiv.

    Show BibTeX
    @misc{bindschaedler2026recourse,
      title = {{Bonded Recourse for Smart-Contract Settlement of Compensable Agent Side Effects}},
      author = {Laurent Bindschaedler and Quentin Botha and Christoph Siebenbrunner},
      year = {2026},
      eprint = {2609.01939},
      archivePrefix = {arXiv},
      primaryClass = {cs.CR},
      url = {https://arxiv.org/abs/2609.01939}
    }
  2. terms.txt: A Consent and Compensation Protocol for Agentic Web Access (external link)

    Rajarshi Chowdhury. 2026. Not peer reviewed arXiv 2609.11152 (open access, external link)

    Specifies terms.txt, a robots.txt-style file for per-path, per-purpose machine-access terms, and an origin-enforced exchange combining Web Bot Auth signatures, signed intent, delegation tokens, HTTP 402 negotiation and signed receipts, with a dependency-free implementation adding 0.20 to 0.65 ms per request. The arXiv comment reports submission to IEEE Internet Computing; it is not accepted as of the arXiv record.

    Why it matters here: Combines Web Bot Auth signatures (the pattern visa-tap says it is aligned with) with HTTP 402 negotiation in the style of x402 and stripe-mpp, for content access rather than checkout.

    Metadata verified 2026-10-10 through arxiv.

    Show BibTeX
    @misc{chowdhury2026termstxt,
      title = {{terms.txt: A Consent and Compensation Protocol for Agentic Web Access}},
      author = {Rajarshi Chowdhury},
      year = {2026},
      eprint = {2609.11152},
      archivePrefix = {arXiv},
      primaryClass = {cs.NI},
      url = {https://arxiv.org/abs/2609.11152}
    }

Grey literature: central banks, standards drafts and white papers

  1. Agentic AI in Payments: Establishing Interoperable Trust and Control (external link)

    Global Legal Entity Identifier Foundation (GLEIF). 2026. GLEIF Working Paper Series. Not peer reviewed

    A working paper (cover dated September 2026, written by contributors from GLEIF, Curvy Protocol, zERC20, Terminal 3 and an independent expert) arguing that existing law can allocate liability for agent payments but practical proof of delegated authority is missing. It proposes Agent Mandate Credentials anchored in the verifiable LEI to show which organization stands behind an agent and what it may do.

    Why it matters here: Offers an organizational-identity answer to the "who is behind this agent" question that ERC-8004 registries, Visa TAP keys and Agent Pay tokens each answer differently.

    Metadata verified 2026-10-11 through publisher.

    Show BibTeX
    @techreport{gleif2026agenticpayments,
      title = {{Agentic AI in Payments: Establishing Interoperable Trust and Control}},
      author = {{Global Legal Entity Identifier Foundation (GLEIF)}},
      year = {2026},
      institution = {Global Legal Entity Identifier Foundation},
      type = {GLEIF Working Paper Series},
      month = {sep},
      url = {https://www.gleif.org/organizational-identity/research-publications/2026-08-13_agentic_ai_in_payments_v1.0-1.pdf}
    }
  2. Agentic commerce and the battleground for new payments infrastructure (external link)

    Prem Munday. 2026. Bank Underground (Bank of England staff blog). Not peer reviewed

    A Bank of England staff blog post (2026-05-21) on how agentic commerce could reshape payment design, stressing that deployers stay legally responsible for their agents and asking how existing frameworks apply to card, account-to-account and tokenized rails. Views are the author's, not the Bank's.

    Why it matters here: Shows how a Bank of England staff author (on the Bank Underground blog, views not necessarily the Bank's) frames the contest between card-network agent programs and newer rails such as x402.

    Metadata verified 2026-10-19 through publisher.

    Show BibTeX
    @misc{munday2026bankunderground,
      title = {{Agentic commerce and the battleground for new payments infrastructure}},
      author = {Prem Munday},
      year = {2026},
      howpublished = {Bank Underground blog, Bank of England},
      note = {Published 2026-05-21},
      url = {https://bankunderground.co.uk/2026/05/21/agentic-commerce-and-the-battleground-for-new-payments-infrastructure/}
    }
  3. Agentic Payments from the Ground Up: What the Onchain Data Tells Us (external link)

    Visa, Artemis. 2026. Visa and Artemis joint research report. Not peer reviewed

    A joint report (summary page last updated 2026-07-14) that splits agentic commerce into agent purchases on behalf of people and small machine-to-machine payments, and measures x402 at about $15.0 million adjusted volume over 109.6 million transactions and MPP at about $25,000 over 115,000 transactions, using Artemis data as of 2026-04-21.

    Why it matters here: The main vendor-published measurement of x402 and MPP volumes; the adjusted figures exclude activity Artemis classed as wash or test traffic, and they are self-reported, not independently audited.

    Metadata verified 2026-10-11 through publisher.

    Show BibTeX
    @misc{visa2026groundup,
      title = {{Agentic Payments from the Ground Up: What the Onchain Data Tells Us}},
      author = {{Visa} and {Artemis}},
      year = {2026},
      howpublished = {Visa},
      note = {Research report with Artemis; data as of 2026-04-21},
      url = {https://www.visa.com/en-us/thought-leadership/innovation/agentic-payments-from-the-ground-up}
    }
  4. How Agentic AI Will Reshape Payments (external link)

    Sonja Davidovic, Hervé Tourpe. 2026. IMF Notes 2026/004. Not peer reviewed DOI 10.5089/9781513533308.068 (external link)

    Examines how agentic AI could change authorization, liquidity, settlement, compliance and resilience in payments, using a three-layer model of intent, authorization and settlement. It stresses the tension between probabilistic AI behavior and the deterministic requirements of payment systems.

    Why it matters here: The IMF view of where agent decisions should stop and rule-based payment execution should begin, a split visible in how AP2 mandates and card network tokens separate intent from settlement.

    Metadata verified 2026-10-11 through doi-negotiation.

    Show BibTeX
    @techreport{davidovic2026imfnote,
      title = {{How Agentic AI Will Reshape Payments}},
      author = {Sonja Davidovic and Hervé Tourpe},
      year = {2026},
      institution = {International Monetary Fund},
      type = {IMF Notes},
      number = {2026/004},
      month = {apr},
      doi = {10.5089/9781513533308.068},
      url = {https://doi.org/10.5089/9781513533308.068}
    }
  5. Payments in the Age of AI Agents (external link)

    Christopher J. Waller. 2026. Speech at Sibos 2026, Miami, Florida. Not peer reviewed

    A Federal Reserve Governor speech separating agent-assisted commerce, where the buyer decides and pays, from agent-delegated commerce, where an agent shops and pays within guardrails, and naming authentication, liability and fraud as the main barriers to the delegated model. The Board speech feed dates it 2026-09-29.

    Why it matters here: States in policy terms the shift every protocol in the atlas addresses: proving that an agent holds authority to pay, not only that the cardholder is genuine.

    Metadata verified 2026-10-11 through publisher.

    Show BibTeX
    @misc{waller2026sibos,
      title = {{Payments in the Age of AI Agents}},
      author = {Christopher J. Waller},
      year = {2026},
      howpublished = {Speech, Board of Governors of the Federal Reserve System},
      note = {Sibos 2026, Miami, Florida, 2026-09-29},
      url = {https://www.federalreserve.gov/newsevents/speech/waller20260928a.htm}
    }
  6. The "Payment" HTTP Authentication Scheme (external link)

    B. Ryan, J. Moxey, T. Meagher and others. 2026. IETF Internet-Draft draft-httpauth-payment-01. Not peer reviewed

    Revision 01 (2026-09-09) of the draft behind the Machine Payments Protocol, written by authors from Tempo Labs and Stripe. It defines a "Payment" HTTP authentication scheme that uses the 402 status code to issue payment challenges and stays agnostic to payment method through registered method identifiers.

    Why it matters here: The core MPP specification in IETF form; comparing it with x402, which also uses HTTP 402, shows the two designs for pay-per-request access.

    Metadata verified 2026-10-11 through publisher.

    Show BibTeX
    @misc{ryan2026httpauthpayment,
      title = {{The "Payment" HTTP Authentication Scheme}},
      author = {B. Ryan and J. Moxey and T. Meagher and J. Weinstein and S. Kaliski},
      year = {2026},
      howpublished = {Internet-Draft draft-httpauth-payment-01, IETF},
      note = {Work in progress, 2026-09-09},
      url = {https://datatracker.ietf.org/doc/draft-httpauth-payment/}
    }
  7. The next-generation monetary and financial system (external link)

    Bank for International Settlements. 2025. BIS Annual Economic Report 2025, chapter III. Not peer reviewed

    Argues that tokenized platforms built around central bank reserves, commercial bank money and government bonds can form the next monetary system, and that stablecoins fail the three tests of singleness, elasticity and integrity needed to be its mainstay. Published 2025-06-29.

    Why it matters here: x402 and the on-chain MPP methods settle mostly in stablecoins; this chapter is the leading central bank critique of that settlement asset.

    Metadata verified 2026-10-11 through publisher.

    Show BibTeX
    @incollection{bis2025aerch3,
      title = {{The next-generation monetary and financial system}},
      author = {{Bank for International Settlements}},
      year = {2025},
      booktitle = {Annual Economic Report 2025},
      chapter = {III},
      publisher = {Bank for International Settlements},
      month = {jun},
      url = {https://www.bis.org/publ/arpdf/ar2025e3.htm}
    }

Search every paper and resource in the library

H. Security and threat model

x402 makes two strong promises and leaves the rest to the parties. The client's signature binds the amount and the recipient (for ERC-7710 accounts, the delegation's caveats do), so a facilitator can only broadcast what the client authorized. A single-use nonce with a validity window stops replay. Everything around that is out of scope: whether the payTo in a 402 response is the seller the client meant, how much an agent may spend, and whether the service is delivered after payment. So are what the facilitator learns and whether it serves everyone. Most published vulnerabilities so far were SDK bugs, not protocol flaws: route-matching bypasses, Solana duplicate settlement and, since 2026-10-20, a CVE (CVE-2026-113603, assigned by a third-party CNA) for a sign-in-with-x payment bypass whose fix was still unmerged on 2026-11-14. An industry review by V12 (2026-10-22) disclosed three critical SDK flaws that had been fixed in August 2026 without an advisory, and the deprecated V1 middleware still had an open paywall bypass on 2026-11-14. Research also reports design-level gaps in binding, atomicity and facilitator behavior.

STRIDE threats (15)
STRIDEThreatSpec mitigationImplementer notes
S SpoofingPayee substitution in an altered 402 responseAn attacker who can change the 402 response (a compromised proxy, a malicious mirror or an injected tool result) swaps payTo for its own address. The client signs a valid authorization to the attacker. Source [29, 48, 100, 108]Preconditions: The attacker can modify or forge the PAYMENT-REQUIRED header; The client does not check payTo against an expected address.Impact: Funds go to the attacker; an exact settlement cannot be reversed by the protocol.PartlyThe signature protects payTo after signing, not before. Pin expected payTo addresses per domain in a client policy, use TLS end to end, and prefer signed offers (offer-receipt) where the seller supports them.
S SpoofingReplay of a captured payment headerSomeone resends a PAYMENT-SIGNATURE that already paid, to get the resource again or to charge the payer twice. Source [11, 32, 91, 107]Preconditions: The attacker sees a signed header (logs, a proxy, a shared cache).Impact: Blocked: EIP-3009 tokens refuse a used nonce, and facilitators check nonce state at verify time.Mitigated by specKeep validBefore short, never cache responses that carry payment headers (the SDK sets Cache-Control no-store on 402), and add payment-identifier for idempotent server-side access grants.
S SpoofingApproval accepted as payment (Solana)A facilitator that parses a Solana instruction as a token transfer without checking its type can accept an ApproveChecked instruction, which grants a spending permission and moves no tokens, as a TransferChecked payment to the seller. Source [8, 10, 21, 61, 63, 88]Preconditions: The seller relies on a TypeScript Solana exact facilitator older than @x402/svm 2.23.0, or on the legacy V1 facilitator code of npm x402, which V12 also found affected; The attacker holds a token account; no balance is needed.Impact: The seller delivers a paid resource and receives nothing, and the facilitator pays the transaction fee each time.Mitigated by specOne of V12's three critical findings (reported 2026-08-12, disclosed 2026-10-22). The Solana binding of exact already requires the payment to be a TransferChecked transfer to the seller's token account, so this was an SDK flaw, not a gap in the specification. Fixed by PR #3132 (merged 2026-08-12) in @x402/svm 2.23.0, whose changelog calls it only a validation guard; no advisory was published. V12 says the V1 facilitator was affected too: the legacy V1 code in the repository has the guard, but no V1 npm release has come out since 2026-04-16 (x402 1.2.0, as of 2026-11-14). Run @x402/svm 2.23.0 or later instead of a V1 facilitator, and check settled transfers on chain for high-value sales.
S SpoofingCross-site sign-in relay through SIWXA hostile server puts another site's domain, uri and login nonce into its sign-in-with-x challenge. A client that signs automatically returns a valid login signature that the attacker replays at the target site. Source [21, 31, 62]Preconditions: The client signs SIWX challenges without user review; The client SDK is older than @x402/extensions 2.23.0 (or the Python and Go fixes of 2026-08-18).Impact: Session takeover at the target site for the client's wallet, independent of the price of the original request.PartlyOne of V12's three critical findings (reported 2026-08-12, disclosed 2026-10-22). Fixed by PR #3133 (TypeScript, 2026-08-13) and PRs #3192 and #3193 (Python and Go, 2026-08-18): createSIWxPayload now needs the response URL and refuses to sign when the challenge origin differs. No advisory was published. Upgrade, and never sign a SIWX message whose domain is not the site you called.
T TamperingFacilitator changes the amount or recipientA malicious or buggy facilitator tries to settle a different amount or send funds elsewhere. Source [8, 29, 95]Preconditions: The facilitator controls the broadcast.Impact: None for exact on EVM with EIP-3009 or Permit2: amount and recipient are inside the signed EIP-712 struct, and the Permit2 proxy enforces the witness recipient. With ERC-7710 the delegation's caveats must limit recipient and amount, as the spec requires.Mitigated by specKeep this property when adding schemes: the trust-minimizing principle forbids schemes that let the facilitator move funds against client intent. Under upto, the witness also names the only facilitator allowed to settle.
T TamperingDuplicate settlement raceConcurrent or retried settles for the same payment each report success, so one payment unlocks more than one resource. Source [48, 52, 69, 99, 101, 155]Preconditions: Several settle workers, or networks where a resubmitted payment looks the same as the original.Impact: Double service at the seller's expense; a 2026 advisory covered facilitators that process Solana payments.PartlyPatch to @x402/svm 2.6.0, PyPI x402 2.3.0 or Go 2.5.0 or later. Deduplicate atomically across every settle process; the Solana SDK keeps a 120 second settlement cache. A related fail-open in TypeScript SVM batch-settlement servers, where a store failure during verify let an unpaid request run, was fixed on 2026-10-13 (PR #3697) and released on 2026-10-28 in @x402/svm 2.29.0.
T TamperingCross-resource substitutionA payment made for one resource is accepted for another, for example a cheap route's payment used on an expensive one. Source [11, 16, 18, 19, 20, 101]Preconditions: The server does not tie a verified payment to the specific route and requirements it issued.Impact: Underpayment or free access.PartlyVerify against the server's own requirements for the requested route, never against the accepted object the client echoed. The free-riding paper lists this among four flaw classes. A published instance is CVE-2026-113603 (2026-10-20, medium): the SIWX settle hook records a payment under the client-supplied PaymentPayload.resource.url, so a payment for a cheap route unlocks an expensive one. The record covers @x402/extensions up to 2.28.0, PyPI x402 up to 2.25.0 and Go up to 2.28.0; the fix (PR #3840) was unmerged on 2026-11-14 and later releases appear to be affected too (an inference from the code on main). Until a fixed release ships, record SIWX entitlements under the server's own request path or keep SIWX off paid routes with different prices.
T TamperingPrompt injection through discovery metadataAgents read a listing's description, tags and schemas to decide whether and how to call an endpoint. A seller can write text there that instructs the agent instead of describing the service. Source [72, 73, 105]Preconditions: An agent picks services from a discovery catalog such as the Bazaar; The agent treats listing metadata as instructions.Impact: The agent may call or pay for services it would not otherwise choose, or follow injected instructions.Left to implementersTreat listing metadata as untrusted data and keep payTo pinning and spend caps in force. Since 2026-10-13 the CDP Bazaar screens metadata for prompt-injection risk before listing and removes resources that fail.
R RepudiationPaid but not delivered, or delivered but unpaidPayment and service execution are separate steps. Under authorization the server serves before it settles; under upfront the client pays before the handler runs. Source [11, 43, 49]Preconditions: A handler or settle failure, or a dishonest party.Impact: The seller loses work when a settle fails, or the buyer loses money when the handler fails; neither side can prove the other's fault inside the protocol.Left to implementersUse auth-capture for refundable or delayed delivery, keep PAYMENT-RESPONSE hashes and offer-receipt receipts as evidence, and watch research such as A402 that binds payment to execution.
R RepudiationManufactured volume and wash activityBecause facilitators often pay gas, settlement counts can be inflated almost for free, and nothing on chain shows who controls a paying wallet. Source [123, 125, 126]Preconditions: Cheap gas and permissive facilitators.Impact: Misleading adoption metrics and leaderboards; poor inputs for reputation systems.Left to implementersReport adjusted figures with their method and date; weight reputation by payment evidence and buyer diversity.
I Information disclosurePersonal data in payment metadataResource URLs and descriptions in PaymentRequired and PaymentPayload reach the facilitator, which may have no data agreement with the payer. Source [11, 131]Preconditions: Servers put identifiers or query data in resource fields.Impact: Leakage of personal or business data to third parties.Left to implementersKeep resource.url and description generic, strip query strings, and consider filtering middleware as proposed in the Hardening x402 paper.
D Denial of serviceFacilitator outage or refusalThe facilitator is down, slow or refuses certain payers or sellers. Most traffic runs through few facilitators. Source [52, 90, 93, 94]Preconditions: A server depends on one facilitator.Impact: Paid routes answer 502 or stop selling; a settle timeout leaves the outcome unknown.PartlyAnyone can run a facilitator and a server can self-facilitate. Configure a second facilitator, set timeouts deliberately (the TypeScript client defaults to 90 seconds), and reconcile settlement_pending results on chain before retrying.
D Denial of serviceOversized headers dropped in transitBase64 JSON headers can exceed 2 KB, and some HTTP intermediaries reject headers that large. Source [28]Preconditions: Many accepts entries or large extensions.Impact: Clients never see the requirements, or servers never see the payment.PartlyKeep accepts lists short and omit optional fields; the cloudflare:402 binding strips schema objects for this reason.
E Elevation of privilegePayment bypass through route matchingEncoded path tricks (percent-encoded line terminators, backslashes, escaped slashes) make a paid route look unpaid to the middleware while the framework still serves it. A HEAD request to a route configured only for GET could also reach the paid handler without payment. The legacy V1 middleware decodes the path before it matches, so an encoded slash in a route parameter skips payment (issue #3850, open on 2026-11-14). Source [10, 13, 32, 68, 69, 71, 76, 77, 78, 98]Preconditions: The server runs an affected SDK version; Paths can be encoded (any route type; literal routes were affected until 2.27.0), or the server answers HEAD on GET-only paid routes; Or the server still uses the legacy V1 packages (npm x402 1.2.0 through x402-express or x402-hono) with parameterized paid routes.Impact: Free access to paid resources, or paid handlers that run without payment (a HEAD response carries no body).Left to implementersUpgrade to @x402/core 2.29.0, PyPI x402 2.26.0 or Go v2.29.0 or later (route fixes in 2.13.0, 2.21.0, 2.22.0 and 2.27.0; the HEAD fix of PR #3796 shipped on 2026-10-28 in 2.29.0) and test protected routes with encoded variants. The legacy V1 packages are deprecated and promise security patches only, yet on 2026-11-14 npm x402, x402-express and x402-hono were still 1.2.0 (2026-04-16) with neither the HEAD fix nor a fix for the parameterized-route bypass, so migrate them to the @x402 packages; a HEAD workaround alone does not close the V1 gaps. An older high-severity advisory (GHSA-3j63-5h8p-gf7c) hit legacy resource-server packages below 0.5.2.
E Elevation of privilegeOverspending by an agentAn agent pays more than its owner intended: no cap, a disabled cap, or an upto ceiling that the server fully uses. Source [11, 21, 32, 60, 95, 156]Preconditions: spendControls disabled or set high; Upto endpoints with generous ceilings.Impact: Budget loss; under upto the client trusts the server to charge fairly up to the ceiling.Left to implementersBudgets are out of scope in the spec. Keep the SDK default cap ($1 per payment) or lower it, add per-task budgets in a policy hook, and set low ceilings for upto. Before @x402/core 2.23.0 (2026-08-18) the documented default client had no per-payment limit at all, which V12 rated critical and disclosed on 2026-10-22. The cap bounds what one payment can lose; it does not check that the amount matches the price you expected (issue #3866, open on 2026-11-14), so compare amounts with your own price list.

Attack scenarios

A tool result swaps the payee Source [11, 29, 100]

Preconditions: An agent reads 402 responses relayed through a third-party tool or proxy; No payTo pinning in the client policy.

  1. The proxy rewrites payTo in PAYMENT-REQUIRED to its own address
  2. The agent signs a valid authorization for that address
  3. The real server's facilitator rejects it with a recipient mismatch
  4. The signed authorization still names the attacker, who can try to settle it on its own

Impact: Loss of the signed amount; no protocol refund under exact.

A settle timeout followed by a blind retry Source [11, 52, 93]

Preconditions: The facilitator broadcast the transfer but the receipt wait timed out; The server retries without checking.

  1. The first /settle times out after the handler ran
  2. The server retries /settle
  3. The retry fails because the nonce is now used, and the server wrongly concludes the payment failed
  4. The server withholds the resource although the client paid

Impact: A paying client is refused; support cost and reputation damage for the seller.

An agent with controls switched off Source [11, 60]

Preconditions: spendControls set to false, as the browser paywall does for humans; The agent calls many paid endpoints in a loop.

  1. A bug makes the agent call a paid route repeatedly
  2. Each call is a valid, small exact payment
  3. No cap stops the loop

Impact: Budget drained in small, irreversible payments.

Published research findings

  • 25 Vulnerabilities in the x402 Protocol: Inside Three Critical Findings (V12, industry review): An industry review of the x402 codebase reports 25 findings (3 critical, 13 high, 9 medium and low) sent to the maintainers on 2026-08-12 and 2026-09-09. It describes only the three critical SDK flaws: a Solana approval accepted as a transfer, cross-site SIWX login signatures and a default client with no spending limit; all three were fixed in the 2.23.0 releases of August 2026 without an advisory. Not peer reviewed, and no proof of concept is published. Source [21, 61, 62]
  • A Formal Analysis of Agent Payment Protocols: Tamarin models of x402, MPP, ACP and AP2. (paper in section G) Source [157]
  • When HTTP 402 Meets the Blockchain: Risks on Emerging x402 Payments: First systematic study of facilitator-mediated deployments: eight security rules for facilitators and four new attack vectors. It finds at least one rule violation in each of the 15 facilitators tested, used by over 60,000 sellers and 360,000 buyers. (paper in section G) Source [90]
  • How Agentic Is Agentic Commerce? A Population-Scale Measurement of x402 Adoption and Authenticity: Counts 136,708,672 settlements on Base over 280 days and argues the count is not adoption because it can be manufactured almost for free. (paper in section G) Source [126]
  • Free-Riding the Agentic Web: A Systematic Security Analysis of x402 Payments: Four flaw classes, including cross-resource substitution and a duplicate settlement race, organized around five invariants. (paper in section G) Source [101]
  • Five Attacks on x402 Agentic Payment Protocol: Five practical attacks on authorization, binding, replay protection and web-layer handling, tested on local chains, Base Sepolia and live endpoints, with audits of three SDKs. (paper in section G) Source [100]
  • Hardening x402: PII-Safe Agentic Payments via Pre-Execution Metadata Filtering: Resource metadata sent to servers and facilitators is a PII leakage channel; proposes redacting middleware with spending policies. (paper in section G) Source [131]
  • A402: Binding Cryptocurrency Payments to Service Execution for Agentic Commerce: x402 does not make execution, payment and delivery atomic; proposes Atomic Service Channels. (paper in section G) Source [43]

CVEs and advisories

  • CVE-2026-113603 severity medium: Assigned by the third-party CNA VulnCheck rather than through a maintainer advisory: a SIWX settle hook records a payment under the client-supplied PaymentPayload.resource.url, so paying for a cheap SIWX route unlocks an expensive one with only a SIGN-IN-WITH-X header (CWE-639; CVSS 3.1 6.5). Affected per the record: @x402/extensions 2.3.1 to 2.28.0, PyPI x402 2.11.0 to 2.25.0, Go module 2.16.0 to 2.28.0. GitHub lists it as the unreviewed GHSA-vxw2-vmfp-vrg3 with no package mapping, so advisory queries by package do not return it. Issue #3838 and fix PR #3840 were open on 2026-11-14, so later releases appear to be affected too (an inference from the code on main, not part of the record). Verified Source [16, 17, 18, 19, 20]
  • GHSA-qr2g-p6q7-w82m severity high: High-severity advisory for facilitators that process Solana payments, published by the x402 maintainers on 2026-03-06 (GitHub Advisory Database entry 2026-03-07 UTC); patched in @x402/svm 2.6.0, PyPI x402 2.3.0 and Go 2.5.0. No CVE identifier assigned. Verified Source [99]
  • GHSA-3j63-5h8p-gf7c severity high: High-severity GitHub advisory for the legacy npm packages x402, x402-next, x402-express and x402-hono below 0.5.2, mainly affecting resource server builders. No CVE identifier assigned. Verified Source [98]

Trust boundaries

The trust-boundary diagram is shown in section C: x402 actors and trust boundaries.

I. Controls lens

x402 natively binds the payee and amount in the client's authorization, bounds most authorizations in time, prevents replay and returns a transaction hash. It leaves identity, consent, budgets, disputes and reputation to SDKs, facilitators or other protocols. A signed exact payment has no recall message; the signer can only cancel an unused EVM authorization on chain, outside x402. The best places for an independent controls layer are the client before signing (policy hooks, payTo allowlists, budgets) and the facilitator at settlement (screening).

Native controls (support levels: native, partial, external, none)
ControlSupportNote
Agent identity verificationPartialIdentity is optional and separate from payment: sign-in-with-x (CAIP-122 wallet proof), auth-hints (OAuth 2.0 with DPoP) and RFC 9421 agent signatures in cloudflare:402. Source [28, 31, 51]
Agent registration (know your agent)ExternalNo registry in x402. ERC-8004 can record that an agent accepts x402; cloudflare:402 needs the signature agent registered with Cloudflare. Source [28, 36, 39]
User consent captureExternalThe protocol has no consent object. The browser paywall asks a human in the UI; agents rely on mandates from other protocols such as AP2. Source [8, 60, 141]
Spending capsPartialBudgets are out of scope in the spec. The TypeScript client applies spendControls by default (default assets only, $1 per payment); upto signs a ceiling. Source [11, 60, 95]
Merchant or payee scopingNativeWith EIP-3009 and Permit2 the client's signature covers payTo and the amount; with ERC-7710 the delegation's caveats must. EVM upto also names the one facilitator allowed to settle. Source [29, 95]
Time windows and expiryPartialvalidAfter, validBefore, the Permit2 deadline, maxTimeoutSeconds and Lightning invoice expiry bound exact, upto, auth-capture and Lightning authorizations. Batch-settlement vouchers carry no expiry and stay claimable until the escrow is drained; ERC-7710 delegations carry whatever limits the delegator set. Source [11, 27, 29, 30]
RevocationPartialx402 has no revocation message. The signer can race the facilitator by canceling an unused EVM authorization on chain before settlement: EIP-3009 cancelAuthorization (Base USDC implements it), Permit2 nonce invalidation or revoking an ERC-7710 delegation. auth-capture adds void and client reclaim after the capture deadline; batch-settlement channels allow timed withdrawal. Source [29, 30, 49, 145, 158, 159, 160]
Step-up authenticationNoneThe core specification defines no step-up to the human. The auth-hints extension lets a server require OAuth authentication for specific payment options (a 401 challenge), which identifies the client but is not a risk-based escalation. Source [11, 51]
Replay protectionNativeSingle-use 32-byte nonces enforced by EIP-3009 tokens, Permit2 nonces, cumulative vouchers, and replay stores for Lightning payment hashes. Source [11, 27, 30]
Receipts and evidenceNativePAYMENT-RESPONSE carries the transaction hash; the optional offer-receipt extension signs offers and receipts (TypeScript only). Source [22, 64, 108]
Dispute supportPartialNo dispute or chargeback process. exact defines no refund; auth-capture adds void, refund and reclaim, batch-settlement channels refund unclaimed escrow, Solana upto returns unused escrow, and third parties such as x402r add arbitration. Source [30, 44, 48, 49, 50]
ReputationExternalNone in x402. ERC-8004 feedback can carry proofOfPayment for an x402 payment. Source [39, 143]
Monitoring signalsPartialOn-chain settlements (EVM, Solana) are public but look like ordinary transfers; /supported, Bazaar and x402scan expose endpoints and 402 offers. Payment payloads, Lightning payments and cloudflare:402 commitments are not public. Source [27, 28, 29, 106, 143, 146]
Kill switchExternalNo protocol kill switch. Clients stop by policy or spendControls; servers stop by removing routes; facilitators can refuse to settle. Source [52, 60]

Gaps

  • No protocol budget. Client-side budget management is out of scope. Caps exist only in SDKs and wallets, and can be switched off with spendControls false. Source [11, 60]
  • No recall message for a signed exact payment. Once a client signs, the authorization stays valid until validBefore unless the client cancels it on chain first (EIP-3009 cancelAuthorization or Permit2 nonce invalidation, outside x402), racing the facilitator. The exact scheme itself has no recall step. Source [11, 48, 145, 160]
  • No disputes. exact defines no refund, and upto only returns unused or undelivered escrow on Solana; neither has a refund after settlement, and the protocol has no dispute process. Source [48, 49, 50]
  • No identity or consent object. The payment says nothing about who the client is beyond its paying address, or about what a user approved; optional extensions and other protocols fill this. Source [31, 39]
  • Weak on-chain labeling. An exact EIP-3009 payment is an ordinary token transfer on chain, so monitors cannot easily isolate x402 traffic without builder codes or facilitator data. Source [33, 143]

Where an independent controls layer can act

Before authorization
Decide whether to pay at all: allowlists, budgets, asset and network policy. Client policies and hooks (onPaymentRequired, onBeforePaymentCreation) and spendControls in the SDK. Source [60, 64]
At signing
Limit what a signature can do. Short validBefore windows, low upto ceilings, wallet-level signing policies and key isolation. Source [11, 95]
At the edge
Check requests before they reach the seller. Payment middleware, CDN gateways such as Cloudflare's, and RFC 9421 agent identity in cloudflare:402. Source [28, 66]
At settlement
Screen and deduplicate before money moves. Facilitator KYT and OFAC screening, onBeforeSettle hooks, atomic deduplication across settle workers. Source [48, 64, 127]
After the fact
Recover and learn. auth-capture refunds, third-party x402r, transaction-hash receipts, contract events and x402scan monitoring. Source [44, 49, 146]

Implementer checklist

  • Pin the expected payTo per seller and refuse anything else before signing. The signature protects payTo only after you sign it. Source [29]
  • Keep spendControls on and set a cap lower than the $1 default for unattended agents. Budgets are not part of the protocol. Source [11, 60]
  • Verify against your own requirements for the requested route, not the accepted object the client echoed. Prevents cross-resource substitution. Source [101]
  • Treat a settle timeout as unknown and reconcile on chain before retrying. The facilitator may already have settled. Source [11, 93]
  • Keep @x402 packages current and test encoded-path variants of paid routes. Several releases fixed payment bypasses in route matching. Source [32]
  • Store every PAYMENT-RESPONSE transaction hash with the request it paid for. It is the only receipt exact provides. Source [22]
  • Strip personal data from resource URLs and descriptions. They reach the facilitator. Source [131]
  • Use auth-capture when buyers need refunds or delivery is delayed. exact is final. Source [49]

J. Compliance and regulation

x402 moves signed payments, mostly in stablecoins, and has no KYC, know-your-agent or sanctions layer of its own. Its optional identity extensions, such as sign-in-with-x, prove control of a wallet or key rather than a verified legal identity. Which rules apply depends on each party's role: stablecoin issuer, custodial wallet provider, facilitator that broadcasts payments, payer or seller. Open questions: whether a non-custodial facilitator counts as a money transmitter or payment service provider, which existing guidance does not address directly, and who screens for sanctions and carries travel-rule data. Another is how consumer-protection rules written for accounts at financial institutions apply to wallet transfers. Rows are dated; check each source before you rely on it.

Rules by topic and jurisdiction
JurisdictionWhat appliesConfidence
Consumer protection and liability
United StatesRegulation E protects consumers against unauthorized transfers from accounts held at financial institutions, and the CFPB withdrew its 2025 proposal on emerging payment mechanisms (effective 2025-05-15). Whether it covers an x402 stablecoin wallet transfer is unclear, and exact payments have no protocol refund. Source [48, 170, 171]Verified
United StatesProducts built on x402 add their own gates. The Cloudflare Monetization Gateway closed beta announced on 2026-09-30 is limited to eligible US-based sellers and buyers. Stripe's x402 docs (2026-10-19) offer stablecoin payments to businesses in all US states except New York, and in more than 30 countries on request. Source [66, 172]Verified
CanadaThe Retail Payment Activities Act brought payment service providers under Bank of Canada supervision on 2025-09-08 (risk management and safeguarding of funds). Source [192]Verified
Card network rulesVisa's rules define a Transaction as the use of a payment credential, which an exact stablecoin settlement does not involve. The x402 Foundation runs a card-acceptance working group (repository created 2026-09-23). A draft card binding for the auth-capture scheme (pull request #3707) merged on 2026-11-12 into a feature branch, not into main; its draft pull request to main (#4241) was open on 2026-11-14, so cards are not part of the specification. cloudflare:402 is credit billed by Cloudflare as merchant of record under its own terms. Source [28, 148, 197, 198, 199, 200]Verified
Card network rulesVisa's rules govern Visa and its member institutions and yield to applicable law. Since 2025-10-18 they have required an Agentic Payment Provider to enroll in Visa Intelligent Commerce and register with Visa, directly or via an Agentic Payment Enabler. Within Visa's system, they make the cardholder responsible for the provider's actions in an Agentic Transaction as if the cardholder had initiated it. A merchant must not require a cardholder to waive the right to dispute such a transaction. The rules do not mention x402. Source [197]Verified
Card network rulesVisa calls none of its agent rules a liability shift and adds no agent-specific dispute condition or fee; its US interchange schedule (2026-10-24 edition, like the April 2026 one) has no agentic category. It does require issuers to pay for Agentic Transactions made under a cardholder's payment instructions and not to block them wholesale. From 2026-10-24 it also accepts an Agentic Payment Provider's login ID among the evidence that can defeat a card-absent fraud dispute. A Worldpay analysis (2026-07-30) says no liability shift exists yet for agentic transactions. Source [197, 201, 202, 203]Reported
Card network rulesMastercard says standard chargeback rights apply to agentic transactions. The 2026-06-02 Mastercard Rules add no agent-specific liability rule. They require pass-through wallet operators and checkout facilitators in Agent Pay to follow the Mastercard Agent Pay Program Standards. A web search on 2026-10-19 found no public copy of those standards. Source [204, 205]Reported
AML and sanctions
United StatesThe protocol has no KYC, know-your-agent or sanctions layer. As of 2026-10-19 the CDP facilitator's docs describe OFAC and Know Your Transaction checks that decline payments involving sanctioned or high-risk addresses; other facilitators vary. Source [11, 89, 127, 128]Verified
United StatesOFAC's sanctions compliance guidance for the virtual currency industry (2021-10-15) says sanctions obligations apply to virtual currency transactions as they do to fiat ones. They bind all US persons and, under some programs, others; civil penalties generally rest on strict liability. OFAC encourages every company in the industry, including technology companies and wallet providers, to run a risk-based program that generally includes sanctions list and geographic screening. The guidance names no x402 role. Source [161, 162]Verified
United StatesFinCEN guidance FIN-2019-G001 (2019-05-09) judges intermediaries by four criteria, including whether they have total independent control over the value, and treats hosted wallet providers as money transmitters. A multiple-signature provider that only adds a validation key does not accept and transmit value. The guidance names no relayer that only broadcasts a payer-signed transfer, so how it applies to x402 facilitators is an inference. Source [52, 163]Verified
European UnionThe Transfer of Funds Regulation (EU) 2023/1113 has applied the travel rule since 2024-12-30 to crypto-asset transfers where the crypto-asset service provider, or an intermediary one, of the originator or the beneficiary has its registered office in the Union. x402 payloads carry the payer's and payee's ledger addresses but no names or other identifying data, so the rest must come from the service providers involved. Source [11, 175]Verified
United KingdomSince 2023-09-01 UK cryptoasset businesses must apply the travel rule, and the FCA expects them to stay responsible even when they use third-party suppliers. Source [185]Verified
CanadaFINTRAC treats transferring virtual currency at a client's request as a money services business activity that needs registration. That includes a foreign business that directs the service at persons or entities in Canada and provides it to clients there. Source [191]Verified
Stablecoin rules
United StatesThe GENIUS Act (Public Law 119-27, 2025-07-18) regulates payment stablecoin issuers. From 2028-07-18 it bars a digital asset service provider from offering or selling a payment stablecoin to a person in the United States unless a permitted issuer issued it, with limited exceptions. It takes effect on the earlier of 2027-01-18 or 120 days after the primary federal regulators issue final regulations (section 20). Source [164]Verified
United StatesThe OCC issued the first final rule implementing the GENIUS Act from a primary federal payment stablecoin regulator: announced on 2026-10-21 (News Release 2026-92) and published on 2026-10-23 (FR Doc. 2026-21706, 91 FR 67000), it sets requirements for permitted and foreign payment stablecoin issuers under OCC jurisdiction and takes effect on 2027-01-18, the date the rule says the Act takes effect. It has no provision on AI agents or agentic payments. On 2026-11-14 no FDIC, Federal Reserve, NCUA or Treasury final rule implementing the Act was found; Treasury's procedural interim final rule on state certifications took effect on 2026-09-30. The OCC proposal had been published on 2026-03-02. Source [164, 165, 166, 167, 168, 169]Verified
European UnionMiCA (Regulation (EU) 2023/1114) has applied to e-money tokens since 2024-06-30 and in full since 2024-12-30; the transitional period for crypto-asset service providers ended on 2026-07-01 at the latest. Source [173, 174]Verified
United KingdomThe FCA published its cryptoasset regime policy statements on 2026-06-30, including stablecoin issuance (PS26/10); the full set of regulated activities applies from 2027-10-25. Source [184]Verified
CanadaThe Stablecoin Act in Bill C-15 received Royal Assent on 2026-03-26 but is not yet in force (Justice Laws, current to 2026-09-30); orders of the Governor in Council will set its commencement. Once in force, the Bank of Canada will register and supervise fiat-backed stablecoin issuers; the Act does not apply to issuers that are financial institutions, such as banks and credit unions. Finance Canada expects the framework to take effect in 2027. Source [188, 189, 190]Verified
SingaporeA business providing digital payment token services in Singapore needs a MAS license under the Payment Services Act 2019 unless exempt. On 2023-08-15 MAS finalized a framework for single-currency stablecoins pegged to the Singapore dollar or a G10 currency and issued in Singapore. Source [193, 194, 195]Verified
Strong customer authentication
European UnionPSD3 and the Payment Services Regulation reached provisional agreement on 2025-11-27, and the Council adopted its first-reading positions on 2026-10-29; on 2026-11-14 both awaited Parliament's second reading (indicative plenary 2026-12-14) and were not in the Official Journal. They govern payment and e-money services, and MiCA deems e-money tokens electronic money. The Council's PSR text keeps a crypto-asset service provider's transfer services in which e-money tokens pay for goods or services inside payment services law (recital 29) and excludes transfers between two self-hosted addresses with no intermediary on either side (recital 30); it does not mention a party that only broadcasts a payer-signed transfer. Its PSD3 text would let a payment institution provide crypto-asset services for e-money tokens after notifying its supervisor (a new MiCA Article 60(4a)). The EBA has advised supervisors to treat transfers and custody of e-money tokens by crypto-asset service providers for clients as PSD2 payment services, so x402 stablecoin payments made through such providers can fall under both MiCA and payment services law. Neither text has an AI-agent provision. Source [173, 179, 180, 181, 182, 183]Verified
AI-specific rules
European UnionAI Act transparency duties under Article 50 apply from 2026-08-02; generative systems placed on the market before that date have until 2026-12-02 for the Article 50(2) marking duty. The Digital Omnibus (Regulation (EU) 2026/1744) moved Annex III high-risk obligations to 2027-12-02. Nothing in the AI Act is specific to agent payments. Source [176, 177]Verified
United KingdomThe FCA payments priorities report (2026-03-25) says it will consider whether regulation must change for agentic AI payments, and HM Treasury consulted on modernising payment services regulation from 2026-07-14 to 2026-10-06, naming agentic payments. Source [186, 187]Verified
SingaporeMAS issued Guidelines on AI Risk Management for financial institutions on 2026-10-07, effective 2027-10-07, mentioning agentic AI systems that act autonomously. Source [196]Verified
Data protection
European UnionGDPR covers information about an identifiable person, including online identifiers. Resource URLs, descriptions and payer addresses linked to a person that x402 sends to a facilitator can be personal data. Source [131, 178]Verified

K. Observability lens

3 of 5 observability score

  • Every on-chain settlement is public, with a transaction hash returned to the client. An exact EIP-3009 payment looks like an ordinary token Transfer plus AuthorizationUsed, so nothing marks it as x402 unless the settlement carries a builder code.
  • The x402 contracts (Permit2 proxies, batch settlement) share one CREATE2 address on each EVM chain where they are deployed, which makes those paths easy to index. The proxies' own events carry no fields, so amounts come from the token's Transfer log.
  • Facilitator capabilities (GET /supported) and the Bazaar resource catalog are public HTTP endpoints, and x402scan publishes an explorer and API.
  • The richest per-request data (which client paid for which resource, signed payloads, vouchers, screening decisions) stays in headers and facilitator logs. Only the offers of listed resources are public in the Bazaar, and credit-backed cloudflare:402 commitments never reach a chain.
  • Public volume figures are contested and come from third parties: x402.org removed its Last 30 days counter, unchanged since at least 2025-12-14, by 2026-11-14, and the trackers that remain disagree by method (x402scan about 4.93M transactions and $1.89M in the 30 days to 2026-11-14; agenteconomy.to about 200.2M cumulative transactions on that date).

Publicly observable

Public signals
WhatWhereHow
Exact EIP-3009 settlementsThe token contract on each chainTransfer and AuthorizationUsed events; the transaction hash also arrives in PAYMENT-RESPONSE. Source [22, 29, 143, 145]
Permit2 and batch-settlement contractsx402ExactPermit2Proxy 0x402085c248EeA27D92E8b30b2C58ed07f9E20001, x402UptoPermit2Proxy 0x4020A4f3b7b90ccA423B9fabCc0CE57C6C240002, x402BatchSettlement 0x4020074e9dF2ce1deE5A9C1b5c3f541D02a10003One CREATE2 address on each EVM chain where they are deployed (the contracts README lists the networks). Batch channels emit ChannelCreated, Deposited, Claimed, Settled, Refunded, WithdrawInitiated, WithdrawFinalized and ChannelClosed; the Permit2 proxies emit parameterless Settled or SettledWithPermit events, not the x402PermitTransfer event shown in the spec's reference code. Source [29, 97]
Facilitator capabilitiesGET /supported (for example https://x402.org/facilitator/supported)Lists kinds (x402Version, scheme, network), extensions and signer addresses per CAIP-2 family. Source [11, 206]
Resource catalogGET /discovery/resources and GET /discovery/search; CDP instance at api.cdp.coinbase.com/platform/v2/x402/discovery/resourcesPublic listings with accepts entries, lastUpdated, seller-supplied tags and service names, and 30-day call and unique-payer counts; no API key needed on the CDP instance. Tags are free-form, not a category taxonomy. Since 2026-10-13 the CDP Bazaar screens listing metadata for prompt-injection risk and removes resources that fail. Source [11, 72, 73, 106]
Explorer and registryhttps://www.x402scan.com and its API routes (buyers, facilitators, merchants, origins, registry, resources, send, wallets)Operated by Merit Systems. Its API routes are paid with x402 ($0.01 to $0.02 per data call) and registry writes need sign-in-with-x authentication. Discovery reads /openapi.json with x-payment-info, then /.well-known/x402, and trusts runtime 402 behavior over static metadata. Source [146, 207]
Agent key directories/.well-known/http-message-signatures-directoryRFC 9421 public keys for signature agents in cloudflare:402 and the http-message-signatures extension. Source [28, 36]
Attribution codesSettlement calldatabuilder-code appends an ERC-8021 Schema 2 suffix naming app, wallet or facilitator, and service. Source [33]
Project advisories and security recordsGitHub Security Advisories (repository and global database), the CVE record, the repositoryTwo maintainer GHSA advisories, the third-party CVE-2026-113603 (mirrored as an unreviewed GHSA with no package mapping, so package-based queries miss it), Cantina audit reports and changelogs. Several SDK security fixes shipped without any advisory, so read changelogs and issues too. The x402.org home page no longer shows a usage counter (removed by 2026-11-14). Source [8, 16, 19, 21, 80, 98, 99]

Private by design

  • PAYMENT-SIGNATURE and PAYMENT-RESPONSE contents. They travel only between client, server and facilitator, including which client paid for which resource. PAYMENT-REQUIRED offers go to any requester, and the Bazaar publishes the offers of listed resources.
  • Facilitator logs, KYT and OFAC decisions, pending settlement stores. Operational data of each facilitator; nothing obliges publication.
  • Batch-settlement vouchers before a claim. Cumulative vouchers stay off chain until they are claimed: in server storage by default, or with the facilitator in the facilitator-managed mode the EVM batch-settlement spec added on 2026-10-26.
  • cloudflare:402 credit commitments and billing identity. Credit-backed payments never reach a chain; Cloudflare maps signature identities to accounts.
  • Who controls a paying wallet. Nothing on chain links a wallet to an agent or a person, which is the root of the volume dispute.

What an indexer or monitor could capture

  • Exact EIP-3009 settlements from Token Transfer and AuthorizationUsed events, joined with known facilitator signer addresses from /supported: authorizer address, nonce, transaction hash, facilitator signer Source [11, 29, 145]
  • Permit2 proxy settlements from Parameterless Settled() or SettledWithPermit() logs of x402ExactPermit2Proxy and x402UptoPermit2Proxy at their fixed addresses, joined with the token Transfer log in the same transaction: proxy address, transaction hash, from, to, amount, asset Source [29, 97]
  • Payment channel lifecycle from x402BatchSettlement events: channelId, sender, receiver, token Source [97]
  • Seller and resource catalog from GET /discovery/resources on public Bazaar instances and x402scan registry routes: resource URL, payTo, scheme, network Source [106, 146]
  • App and facilitator attribution from ERC-8021 builder-code suffix in settlement calldata: app code (a), wallet or facilitator code (w), service code (s) Source [33]

L. Ecosystem and adoption

Stewards

  • x402 Foundation (x402 a Series of LF Projects, LLC): Governs the protocol under a technical charter adopted 2026-03-31, as a Linux Foundation project announced on 2026-04-02. A Governing Board handles budget and business oversight and the TSC makes technical decisions; Michael Hursta (Linux Foundation) has been Executive Director since 2026-10-01. Source [2, 3, 4, 6, 67]
  • Technical Steering Committee: Coinbase, Cloudflare, Stripe: Votes on technical decisions; named in TSC.md on 2026-05-12. Source [5, 58]
  • Coinbase Developer Platform: Originated x402 and wrote the 2025-05-06 whitepaper; runs the largest facilitator by transactions and volume in x402scan figures reported on 2026-07-21. Source [1, 90, 208]

Implementers and deployments

Implementers (13)
NameRoleStatus
Coinbase CDP facilitatorFacilitator on Base, Polygon, Arbitrum, Monad, World and Solana with KYT and OFAC screening (CDP docs, 2026-10-19). Source [127, 128]Live
Facilitators listed in the x402 docs (PayAI, Corbits, Dexter, Fireblocks, Polygon, Celo, NEAR x402 Facilitator, T54 XRPL and others)Independent verify and settle services; the docs say the list is not exhaustive. Source [89]Unknown
Cloudflare Monetization GatewayClosed beta that settles USDC on Base through Coinbase's facilitator; US sellers and buyers only. Source [66]Beta
Cloudflare Agents SDKwithX402 and paidTool for agents and MCP servers since 2025-09-23. Source [56, 133]Live
Cloudflare AI Gateway machine paymentsPays for inference on select models over x402 when a request carries the Cloudflare-specific Payment-Method: x402 header; since 2026-09-30, for US-based customers. Source [66, 209]Beta
Circle Nanopayments (Circle Gateway)Gas-free USDC payments from $0.000001 using EIP-3009 inside the x402 flow, batched settlement. Source [57, 210]Live
Circle Facilitator ServiceCircle's hosted x402 facilitator for sellers, launched 2026-09-16: settles USDC on Arc, Base and Polygon PoS with exact, and with upto since 2026-10-13; Circle pays settlement gas and screens both parties. Settling needs a Circle API key (a keyless trial exists); no price was published on 2026-11-14. Source [211, 212]Live
Stripe machine payments previewCharges agents in USDC on Base through x402 and records each settled payment as a PaymentIntent; open to US businesses outside New York, other countries on request (2026-10-19). Source [135, 172]Beta
Coinbase Agentic WalletsCoinbase-managed agent wallet that, as its docs described it on 2026-10-19, holds USDC and pays for x402 services within limits the owner sets, through the awal CLI or an MCP server; made available on 2026-02-11 per the CDP changelog as read on 2026-10-19. By 2026-11-14 its docs answered 404 and the changelog entry was gone; no retirement announcement was found. Source [73, 136, 213]Unknown
Coinbase Wallet MCP and Coinbase for AgentsThe agent payment options in CDP's agentic accounts docs on 2026-11-14: Wallet MCP pays x402 services in USDC on Base or Base Sepolia with exact, upto and auth-capture, with the user's approval and a wallet signature for each paid request; Coinbase for Agents connects an agent to a Coinbase account through a remote MCP server or a local CLI. Source [213]Live
Brave Search API x402 proxySeller: since 2026-11-12 Brave sells Brave Search API requests (LLM Context, web, news, images, videos, local) at $0.005 each over x402 V2 exact, USDC on Base (eip155:8453), through a facilitator Brave runs, with no account or API key. Other networks and stablecoins are announced only. Source [84, 85, 86, 87]Live
x402scan (Merit Systems)Explorer, registry and public API for x402 activity. Source [146]Live
Google a2a-x402 and AP2 samplesA2A extension and human-present and human-not-present x402 samples. Source [142, 214]Pilot

SDKs and packages

Metrics

Metrics, each with its date and definition
MetricValueAs ofDefinition and caveats
GitHub stars, x402-foundation/x4026,808 starsStars on the canonical repository (GitHub API, read 2026-11-14; 6,735 on 2026-10-19). Source [103] Caveat: Interest, not usage.
npm downloads of @x402/core, last 30 days2,142,399 downloadsnpm registry downloads of the V2 core package in the 30 days from 2026-10-15 to 2026-11-13 (last-month endpoint, read 2026-11-14). The window from 2026-09-17 to 2026-10-16 had 1,437,614. Source [215, 216] Caveat: Includes CI installs; the deprecated legacy V1 package x402 had 2,629,833 in the same window (1,910,242 in the previous one).
x402.org "Last 30 days" transactions counter (removed; history)75.41M transactionsSelf-reported counter formerly on the x402.org home page, with no date or method on the page. Archived with this same value from 2025-12-14 to 2026-10-24 (Wayback Machine); the home page no longer showed it on 2026-11-14. Source [80, 81, 82, 83] Caveat: History only: it never changed, so it was never a live 30-day figure, and it was removed without an announcement. For the 30 days to 2026-11-14 x402scan showed about 4.93M transactions; agenteconomy.to counted about 5.09M for October 2026. A Base study measured about 145,500 settlements a day from January to June 2026. Disputed Source [118, 120, 126].
x402.org "Last 30 days" volume counter (removed; history)$24.24M USDSelf-reported counter formerly on the x402.org home page, with no date or method on the page. Archived with this same value from 2025-12-14 to 2026-10-24 (Wayback Machine); the home page no longer showed it on 2026-11-14. Source [80, 81, 82, 83] Caveat: History only: it never changed, so it was never a live 30-day figure. For the 30 days to 2026-11-14 x402scan showed about $1.89M; agenteconomy.to counted about $274,000 for October 2026. In March 2026 a16z put a 30-day window at about $3M on chain and $1.6M after removing wash trades. Disputed Source [118, 120, 217].
Adjusted x402 volume (Visa and Artemis)$15.0M across 109.6M transactions USD and transactionsCumulative from the May 2025 launch to 2026-04-21, excluding identified wash and test activity (Artemis's proprietary method); about $0.14 per transaction. Raw totals were over $135.7M across 178.3M transactions. Source [121, 122, 124] Caveat: Report commissioned by Visa. On 2026-07-16 The Defiant reported Visa's Cuy Sheffield citing about $19M across about 134M adjusted transactions, with no data date.
Share of transactions flagged as gamed (Artemis)63.94 percent (average)Average share of x402 transactions Artemis flagged as gamed between 2025-11-09 and 2026-02-07 (peak 90.21 percent), reported by Four Pillars. A separate Base study (2025-09-17 to 2026-06-23, different method) classes 21.20 percent of settlements as fictitious and 63.78 percent as internal to linked clusters. Source [125, 126] Caveat: Secondary report of Artemis data; the detection logic is not published.
Settlements on Base (academic count)136,708,672 settlementsx402 settlements on Base from 2025-09-17 to 2026-06-23 (280 days), counted in arXiv:2607.12575 (submitted 2026-07-14). Source [126] Caveat: The paper argues settlement counts are not adoption because they can be manufactured almost for free.
Payments before V2 (self-reported)over 100M paymentsClaim in the V2 launch post. Source [102] Caveat: Raw self-reported count. Visa and Artemis counted about 38M adjusted transactions in November 2025 and 109.6M adjusted (178.3M raw) from launch to 2026-04-21. Disputed Source [122, 126].
Solana share of x402 volumenearly 65 percentQuote from Rishin Sharma (Solana Foundation) in the Linux Foundation release of 2026-04-02, for 2026 to date; a self-reported figure from an interested party. Source [3, 218] Caveat: Crypto Briefing reported about 70 percent of monthly volume for mid August 2026. Visa and Artemis data (adjusted, cumulative to 2026-04-21) put Base at about 90 percent of transactions and 93 percent of volume; the windows differ. Disputed Source [122].
x402scan transactions, past 30 days4.93M transactionsPast 30 Days view of x402scan's overall stats, read 2026-11-14 (window from 2026-10-15); the same view showed about $1.89M in volume, 31.6K buyers and 14.4K sellers. On 2026-10-19 it showed 3.02M transactions and $1.23M. Source [118, 219] Caveat: x402scan's own indexing of facilitator settlements; trackers count differently. agenteconomy.to's monthly series gives about 5.09M transactions but only about $274,000 for October 2026.
Cumulative x402 transactions settled on chain (agenteconomy.to)200.2M transactions and $43.0M transactions and USD200,193,219 transactions and $42,967,916 of stablecoin volume across 12 chains and 18 tracked facilitators, measured from public on-chain settlement data (read 2026-11-14). Source [120] Caveat: Counts settlements from the facilitators it tracks, not proven commerce. Its October 2026 value (about $274,000) is far below x402scan's 30-day volume (about $1.89M to 2026-11-14); the methods differ. Disputed Source [118].
Cumulative transactions (press)120M to 187M transactionsRange across unnamed trackers reported by Crypto Briefing on 2026-09-15. Source [218] Caveat: Trackers count differently: x402scan showed 234.69M all-time transactions on 2026-10-19, Chainalysis reported more than 138 million x402 transactions on Base by the end of its 2026 report period (2026-10-14), and agenteconomy.to counted about 200.2M cumulative transactions as of 2026-11-14. Disputed Source [120, 219, 220].
x402 Foundation members58 organizationsOrganizations listed on x402.org/members: 19 Premier, 26 General and 13 Associate (57 on 2026-10-19). Source [4, 15, 67] Caveat: 40 at the 2026-07-14 launch, 17 of them Premier; the Linux Foundation said more than 50 active members on 2026-10-01.

Costs

Costs, who pays them, and how sure we are
ItemValueWho paysAs ofConfidence and caveat
CDP facilitator settlement feeFirst 1,000 on-chain transactions each month free, then $0.001 per on-chain transaction Source [73, 127, 128]Resource server (the facilitator customer)Verified Counts on-chain transactions, not payment requests. CDP began charging on 2026-01-01 after announcing it on 2025-12-01; check the page for current rates.
CDP facilitator verificationFree Source [127, 128]NobodyVerified Applies to /verify calls.
On-chain transactions per payment (CDP)exact and EVM upto: one; Solana upto: two; batch-settlement: one claim covers many vouchers Source [29, 127, 128]Facilitator pays gas; the seller pays CDP's fee per on-chain transactionVerified Deposits, refunds and withdrawals in batch-settlement count as one transaction each.
PayAI facilitatorOn-chain gas plus 30 percent per settlement since 2026-09-21, paid in $0.001 credits; 1,000 free credits per receiving wallet, for life Source [221, 222]Resource server (the facilitator customer)Verified Rates are recomputed daily. On 2026-10-19 a Solana exact settlement cost 1.33 credits and a Base exact (EIP-3009) settlement 2.09, so the free credits covered about 750 or 480 settlements.
thirdweb facilitator0.3 percent of each transaction executed through its facilitator, on all paid plans shown Source [223]The thirdweb account holder (the seller using its facilitator)Verified Plan fees and RPC charges are separate.
Self-hosted facilitatorNo facilitator fee; the operator pays gas, RPC, operations and compliance costs Source [224]The operatorReported From a secondary comparison (Wavect, 2026-07-12, reviewed 2026-09-02).
Gas for a USDC transferEthereum L1 about $0.01 on 2026-10-19 ($1 to $5 under normal congestion); Base under $0.005 to $0.01; Solana under $0.001 to $0.005 Source [29, 88, 225, 226]Facilitator on the exact EVM path and as Solana fee payer, or the merchant when it sponsorsReported The Ethereum figure is one EIP-3009 USDC transfer measured on 2026-10-19 (81,053 gas at 0.045 gwei, ETH at $2,432). The other ranges are Spark's mid-2026 low and normal congestion estimates; gas prices move by orders of magnitude.
Circle NanopaymentsPayments from $0.000001 USDC; Circle says batched settlement means neither party pays per-transaction fees Source [210, 227]Neither party per payment (Circle). The buyer makes a one-time on-chain deposit; moving funds out of Gateway pays a gas fee per burn that varies by source chain, and crosschain transfers add a percentage transfer fee, except to or from ArcVerified Circle loads current Gateway fees from its fee API; the $0.01 gas fee and 0.005 percent transfer fee on its fees page are illustrative inputs to a worked example, not a price list. Who pays the gas for batch settlement is not stated.
Protocol feeNone Source [11, 28]NobodyVerified x402 itself charges nothing; costs are facilitator fees and gas. cloudflare:402 is credit billed by Cloudflare as merchant of record under its own terms.

M. Timeline and changelog

  1. ReleaseVerified

    Exact EVM scheme specified Source [228, 229]

    First committed to main as specs/scheme-exact-evm.md (commit 3e5c14a); PR #1 moved it to specs/schemes/exact/ on 2025-02-23, before the public launch.

  2. AnnouncementVerified

    Whitepaper and public launch Source [1, 10]

    Coinbase Developer Platform whitepaper; npm x402 0.3.0 published the same day.

  3. SecurityVerified

    First high-severity advisory Source [98]

    GHSA-3j63-5h8p-gf7c for legacy resource-server packages below 0.5.2.

  4. LaunchVerified

    A2A x402 extension launched with AP2 Source [38, 132]

    Google's AP2 announcement; a2a-x402 v0.1.0 released.

  5. GovernanceVerified

    Cloudflare and Coinbase announce a foundation plan Source [56]

    Cloudflare also proposed a deferred scheme and added x402 to its Agents SDK.

  6. MarketReported

    Memecoin-driven activity spike Source [134]

    Nearly 500,000 transactions between 2025-10-14 and 2025-10-20 amid a wave of x402-powered memecoin launches (secondary report).

  7. ReleaseVerified

    Specification v2.0 dated Source [11]

    CAIP-2 networks, restructured objects, ResourceInfo, extensions.

  8. ReleaseVerified

    V2 launched Source [12, 13, 102]

    PR #705 merged and @x402/core 2.0.0 published; new header names.

  9. ReleaseVerified

    Permit2 support in exact EVM Source [37]

  10. ReleaseVerified

    Bazaar discovery extension Source [37, 105]

  11. ReleaseVerified

    Sign-in-with-x extension (CAIP-122) Source [31, 37]

  12. PilotReported

    Stripe machine payments preview with x402 Source [135, 172]

    USDC on Base. Stripe's docs (2026-10-19) offer stablecoin payments to businesses in all US states except New York, others on request, and record each settled payment as a PaymentIntent.

  13. ReleaseVerified

    upto scheme Source [138]

  14. SecurityVerified

    Solana facilitator advisory Source [99]

    GHSA-qr2g-p6q7-w82m, high severity, published by the maintainers (GitHub Advisory Database entry 2026-03-07 UTC).

  15. GovernanceVerified

    Technical charter adopted Source [2]

    x402 a Series of LF Projects, LLC.

  16. GovernanceVerified

    Linux Foundation announces the x402 Foundation Source [3]

    22 organizations expressed intent or support.

  17. ReleaseVerified

    batch-settlement scheme (formerly deferred) Source [55]

    Merged with the credit-backed cloudflare:402 binding and the http-message-signatures extension.

  18. LaunchVerified

    Circle Nanopayments live on mainnet Source [57]

  19. GovernanceVerified

    Technical Steering Committee named Source [5, 58]

    Coinbase, Cloudflare and Stripe in TSC.md.

  20. ReleaseVerified

    auth-capture scheme Source [59]

  21. GovernanceVerified

    Foundation operational launch Source [4]

    40 member organizations, 17 Premier.

  22. ReleaseVerified

    Client spend controls Source [13, 21, 32]

    @x402/core 2.23.0: spendControls with a $1 default per payment. With the SIWX origin check and a Solana TransferChecked guard in the 2.23.0 releases, it closed three critical findings V12 reported on 2026-08-12 and disclosed on 2026-10-22; no advisory was published.

  23. ReleaseVerified

    exact on Lightning (lnbtc) Source [26, 64]

    Specification only: no SDK implemented the binding by 2026-10-19.

  24. PilotVerified

    Cloudflare Monetization Gateway closed beta Source [66]

    Settles USDC on Base through Coinbase's facilitator; closed beta for eligible US-based sellers and buyers.

  25. GovernanceVerified

    Executive Director appointed Source [6, 67]

    The Linux Foundation named Michael Hursta Executive Director of the x402 Foundation. A Governing Board handles budget and business oversight; the TSC makes technical decisions.

  26. SecurityVerified

    HEAD payment bypass fixed on main Source [13, 68, 71]

    PR #3796 makes HEAD requests to GET-only paid routes require payment in TypeScript, legacy x402, Go and Python. Not in a published release on 2026-10-19; shipped on 2026-10-28 in @x402/core 2.29.0, PyPI x402 2.26.0 and Go v2.29.0, but in no legacy V1 release.

  27. SecurityVerified

    Bazaar metadata content policy Source [72, 73]

    The CDP Bazaar stops listing resources whose metadata poses a prompt-injection risk and removes listed ones that fail screening, curated endpoints included.

  28. GovernanceVerified

    Security reporting moves to the foundation Source [74, 75]

    SECURITY.md now sends sensitive reports privately to a TSC member or primary maintainer through the x402 Slack and non-sensitive bugs to GitHub Issues; a bug bounty is announced as coming soon.

  29. SecurityVerified

    Paywall bypass reported in the V1 middleware Source [10, 76, 77]

    Issue #3850: the deprecated V1 middleware (npm x402 1.2.0, used by x402-express and x402-hono) decodes paths before matching, so encoded route parameters skip payment. Open, with no V1 release, on 2026-11-14; V2 is not affected.

  30. PilotVerified

    Mastercard Agent Pay for Machines builds on x402 Source [111]

    Mastercard opened AP4M Early Access after pilots in which services answered 402 and agents signed off-chain vouchers that providers redeem later; Base was the settlement network in the pilot.

  31. SecurityVerified

    Third-party CVE for an x402 SDK: CVE-2026-113603 Source [16, 19, 20]

    The third-party CNA VulnCheck published a medium-severity SIWX payment bypass (public since 2026-10-17); GitHub mirrors it as the unreviewed GHSA-vxw2-vmfp-vrg3. The fix (PR #3840) was unmerged on 2026-11-14.

  32. SecurityVerified

    V12 discloses 25 findings, three critical Source [21, 61, 62]

    Industry review: a Solana approval accepted as payment, cross-site SIWX login signatures and no default spending limit, all fixed in the 2.23.0 releases of August 2026 without an advisory.

  33. MarketVerified

    x402.org home page edited; its counter is gone by 2026-11-14 Source [80, 83]

    The home page, last edited on 2026-10-27, no longer showed on 2026-11-14 the Last 30 Days counter that had displayed the same 75.41M transactions and $24.24M since at least 2025-12-14 (last archived on 2026-10-24). Not announced.

  34. ReleaseVerified

    @x402 2.29.0 ships the HEAD fix Source [13, 69, 70, 139]

    @x402/core 2.29.0, PyPI x402 2.26.0 and Go v2.29.0 require payment for HEAD requests to GET routes; @x402/svm 2.29.0 fails SVM batch-settlement verification closed when a store call fails. Go now requires Go 1.26.10.

  35. LaunchVerified

    Brave Search API sells searches over x402 Source [84, 86, 87]

    $0.005 per request over x402 V2 exact, USDC on Base, through a facilitator Brave runs, with no account or API key. Other networks and stablecoins are announced only.

See every protocol on the multi-lane timeline

N. Code and labs

Pay for a request with @x402/fetch (client)@x402/fetch with @x402/evm 2.28.0Client sidetypescript
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount("0xYourPrivateKey");

const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [
    {
      network: "eip155:8453", // Base mainnet
      client: new ExactEvmScheme(account),
    },
  ],
});

const response = await fetchWithPayment("https://api.example.com/paid-endpoint", {
  method: "GET",
});

From the package README quick start. On a 402 the wrapper decodes PAYMENT-REQUIRED, signs with the registered scheme and retries with PAYMENT-SIGNATURE. Never put a real key in code; the atlas playground uses ephemeral keys on a simulated chain id. @x402/fetch with @x402/evm documentation (external link) Source [154]

Lower the default spend cap (client)@x402/fetch (x402ClientConfig) 2.28.0Client sidetypescript
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
  // Default: only known assets, "$1" per payment. false disables all limits.
  spendControls: { maxAmountPerPayment: "$0.10" },
});

Built from the x402ClientConfig and SpendControls type definitions in x402Client.ts (DEFAULT_MAX_AMOUNT_PER_PAYMENT is "$1"), not copied from a README. @x402/fetch (x402ClientConfig) documentation (external link) Source [60]

Charge for a route with @x402/express (server)@x402/express with @x402/evm and @x402/core 2.28.0Server sidetypescript
import express from "express";
import { paymentMiddleware, x402ResourceServer } from "@x402/express";
import { ExactEvmScheme } from "@x402/evm/exact/server";
import { HTTPFacilitatorClient } from "@x402/core/server";

const app = express();
const facilitatorClient = new HTTPFacilitatorClient({ url: "https://x402.org/facilitator" });
const resourceServer = new x402ResourceServer(facilitatorClient)
  .register("eip155:84532", new ExactEvmScheme());

app.use(
  paymentMiddleware(
    {
      "GET /protected-route": {
        accepts: [
          { scheme: "exact", price: "$0.10", network: "eip155:84532", payTo: "0xYourEvmAddress" },
        ],
        description: "Access to premium content",
      },
    },
    resourceServer,
  ),
);

app.get("/protected-route", (req, res) => {
  res.json({ message: "This content is behind a paywall" });
});

Shortened from the README quick start (the README also registers a Solana scheme). The x402.org facilitator serves testnets only. @x402/express with @x402/evm and @x402/core documentation (external link) Source [153]

Create a payment payload in Python (client)x402 (PyPI) 2.25.0Client sidepython
from x402 import x402Client
from x402.mechanisms.evm.exact import ExactEvmScheme

client = x402Client()
client.register("eip155:*", ExactEvmScheme(signer=my_signer))

# Create payment from 402 response
payload = await client.create_payment_payload(payment_required)

From the Python README (async client). PyPI x402 2.x implements V2. x402 (PyPI) documentation (external link) Source [70, 230]

Register a scheme on a Python resource serverx402 (PyPI) 2.25.0Server sidepython
from x402 import x402ResourceServer
from x402.http import FacilitatorConfig, HTTPFacilitatorClient
from x402.mechanisms.evm.exact import ExactEvmServerScheme

facilitator = HTTPFacilitatorClient(FacilitatorConfig(url="https://x402.org/facilitator"))
server = x402ResourceServer(facilitator)
server.register("eip155:*", ExactEvmServerScheme())
server.initialize()

Adapted from the Python README server example. The README passes url= straight to HTTPFacilitatorClient, which raises a TypeError in PyPI x402 2.25.0, so this uses FacilitatorConfig as the class docstring does. The README continues with ResourceConfig and framework middleware. x402 (PyPI) documentation (external link) Source [230, 231]

O. Playground

Simulation of the V2 and V1 402 handshake, facilitator verify and settle, failure injection, an EIP-712 signature with an ephemeral key on a simulated chain id (402402, not assigned in the public chain registry on 2026-10-18), and the SDK spend cap. No real funds, no wallet, no network calls.

Simulation, no real fundsFollows spec version v2.0

Loading the simulation.

Keys are generated in this browser for this session only, on test chain identifiers or fixture data. No wallet connects, and the simulation sends nothing to a network.

P. Compare and compose

Stripe MPP is the closest sibling, and the two are built to coexist. MPP’s documentation says the x402 model maps onto MPP’s charge intent, and its mppx library lets one server route answer with either challenge and accept either credential.Source [40] Stripe sits on the x402 TSC and co-authors MPP with Tempo.Source [4, 5, 109, 110] Pick x402 when you want the model and the family (, , ); compare the two side by side in the matrix before you commit to one.

AP2 and x402 meet through the a2a-x402 , launched on 2025-09-16, which carries x402 requirements and payments inside messages and, in its embedded flow, inside AP2 mandates.Source [38, 141, 142] That embedding targets AP2 v0.1: it puts the requirements in a CartMandate, and AP2 v0.2 has no Cart mandate, so the two specifications are out of step today.Source [141, 142] The AP2 repository still ships human-present and human-not-present x402 samples.Source [142]

ERC-8004 supplies what x402 leaves out: who the agent is and how it behaved. Its registration file has an x402Support boolean, and its off-chain feedback file can carry a proofOfPayment for an x402 payment.Source [39] Its best practices recommend agentWallet as the address that receives x402 payments, and they warn that indexers cannot easily tell x402 payments from ordinary transfers.Source [29, 33, 143, 144, 145, 146]

Visa TAP answers in its own way. The TAP specification defines a conditional browsingIOU object that the agent sends when a merchant asked for payment with a 402. The merchant checks it against its 402 response and grants access, expecting the funds at settlement.Source [41] TAP’s sample merchant backend uses non-standard X-Payment headers, not the x402 wire format.Source [147] Visa and Mastercard are both Premier members of the x402 Foundation, which also runs a card-acceptance working group.Source [4, 15, 148] , an earlier HTTP 402 payment design on Lightning, sits in the orbit; neither its specification nor x402’s describes a lineage between the two.Source [1, 8, 42, 45] Lightning Labs launched it as LSAT on 2020-03-30 with a plus a and renamed it L402 on 2023-04-20. The bLIP-0026 draft, rewritten on 2026-02-25 and still an open pull request, makes macaroons optional.Source [42, 45, 149, 150, 151, 152]

Relations to other protocols

  • Embedsfrom AP2: AP2 can carry x402 as a payment method through the a2a-x402 extension launched on 2025-09-16; its embedded flow targets AP2 v0.1 mandates (CartMandate), which AP2 v0.2 no longer has. The AP2 repository ships x402 samples. Source [38, 141, 142, 238, 239]
  • Complementsfrom ERC-8004: Trustless Agents: Neither depends on the other. ERC-8004 publishes x402Support, uses agentWallet as the payee address, and lets feedback files carry proofOfPayment for an x402 payment; Erik Reppel co-authors ERC-8004 and sits on the x402 TSC. Source [5, 11, 240, 241]
  • Complementsfrom Mastercard Agent Pay: Mastercard says Agent Pay for Machines builds on x402: its 2026-10-20 brief opening AP4M Early Access describes a 402 response and signed off-chain vouchers, piloted with Cloudflare, Coinbase and Base settlement. Mastercard is a premier member of the x402 Foundation, and Coinbase's AP4M quote names x402. The card-side Agent Pay guides do not mention x402. Source [237, 242, 243]
  • Compatible withfrom Stripe MPP (Machine Payments Protocol): MPP maps x402 headers onto Payment authentication and x402 exact onto charge; upto and batch-settlement are comparable to sessions. mppx's EVM charge has offered both protocols on one route since 0.6.29 (2026-06-02), 0.9.0 added dual MPP and x402 framework wrappers, and the mppx client prefers the Payment challenge. Source [244, 245, 246, 247]
  • Competes withfrom Stripe MPP (Machine Payments Protocol): Both are HTTP 402 payment protocols; MPP's comparison page, written by its authors, recommends MPP by default. Stripe co-authors MPP and sits on the x402 TSC. Source [244, 248]
  • Complementsfrom Visa Trusted Agent Protocol: TAP's browsingIOU answers an HTTP 402 with card-acquiring data but uses none of x402's headers or payloads; Visa is a Premier member of the x402 Foundation and said at launch it was working with Coinbase on interoperability. Source [4, 236, 249]
  • Compatible withx402 to Stripe MPP (Machine Payments Protocol): MPP maps x402 exact onto its charge intent, and mppx can serve both protocols on one route; Stripe sits on the x402 TSC and co-authors MPP with Tempo. Source [5, 40, 109]
  • Competes withx402 to Stripe MPP (Machine Payments Protocol): Both offer HTTP 402 machine payments for agents; Visa and Artemis measured MPP at about 25,000 USD across about 115,000 adjusted transactions in its first weeks to 2026-04-21, far below x402. Source [40, 121, 123]
  • Complementsx402 to ERC-8004: Trustless Agents: ERC-8004 registration files carry an x402Support flag, feedback files can carry proofOfPayment for an x402 payment, and best practices use agentWallet as the x402 receipt address. Source [39, 143]
  • Complementsx402 to Mastercard Agent Pay: Mastercard says Agent Pay for Machines builds on x402 (2026-10-20 brief opening AP4M Early Access): a 402 response and signed off-chain vouchers, piloted with Cloudflare, Coinbase and Base. Mastercard is a Premier member of the x402 Foundation, which runs a card-acceptance working group. The card-side Agent Pay guides do not mention x402. Source [4, 111, 148]
  • Complementsx402 to Visa Trusted Agent Protocol: The TAP specification defines a browsingIOU object an agent sends when a merchant answered with 402; TAP samples use non-standard X-Payment headers rather than the x402 wire format. Visa is a Premier member of the x402 Foundation. Source [4, 41, 147]
x402 in the compare matrix (34 dimensions)
DimensionValueConfidence
Primary jobPay-per-request payments over HTTP 402 The server prices a request in a 402 response, the client signs a payment, a facilitator verifies and settles it. Source [8, 11]Verified
Layers coveredSettlement rails and payment credential; discovery through Bazaar; refunds in auth-capture, batch-settlement channels and Solana upto No identity, intent or checkout layer. Only auth-capture refunds captured funds; the channel schemes return unused escrow. Source [11, 30, 49, 50, 105]Verified
Stewardsx402 Foundation (Linux Foundation); TSC: Coinbase, Cloudflare, Stripe Originated at Coinbase Developer Platform. Source [1, 4, 5]Verified
Governance modelFoundation under an LF Projects technical charter TSC with one vote per representative and majority decisions; 75 percent supermajority for Core Principles. Source [2]Verified
License (spec and code)Apache-2.0 for code; CC BY 4.0 for documentation under the technical charter The repository has one Apache-2.0 LICENSE and no CC BY file, and the charter does not say whether specification files count as documentation. The charter (2026-03-31, section 9.b) also requires a Developer Certificate of Origin sign-off on inbound code; CONTRIBUTING.md requires signed commits (GPG, SSH or S/MIME). Source [2, 7, 9]Verified
First announced2025-05-06 Whitepaper and public launch; npm x402 0.3.0 was published the same day, after earlier releases from 2025-03-03. Source [1, 10]Verified
Latest version and dateSpec v2.0 (2025-12-09); @x402/core 2.31.0 (2026-11-12) V2 launched 2025-12-11; the specification version has not changed since, while the SDKs release about weekly (as of 2026-11-14). Source [11, 12, 13]Verified
MaturityLive (V2 since 2025-12-11) upto, batch-settlement and auth-capture are 2026 additions with uneven SDK coverage; the Lightning binding (2026-09-23) had no SDK implementation on 2026-10-19. Source [12, 26, 64]Verified
TransportsHTTP headers, MCP _meta, A2A task metadata Facilitator APIs are currently standardized as HTTP endpoints, whatever the transport. Source [11, 22, 23, 24]Verified
Settlement railsEVM chains, Solana, Lightning and other CAIP-2 networks; credit-backed cloudflare:402 Fiat ids such as ach:us appear only as examples of the id format. Source [11, 25, 27, 28]Verified
Agent identity modelNone in the core; optional extensions sign-in-with-x (CAIP-122), auth-hints (OAuth 2.0 with DPoP), RFC 9421 agent signatures in cloudflare:402. Source [28, 31, 51]Verified
User authorization modelThe client signature on each payment No user mandate object. The a2a-x402 embedded flow carries x402 inside AP2 v0.1 mandates (CartMandate), which AP2 v0.2 no longer has. Source [29, 141, 250]Verified
Human-present and human-not-present supportBoth Built for unattended clients with SDK spend controls; @x402/paywall serves humans; AP2 ships human-present and human-not-present x402 samples. Source [8, 60, 142]Verified
Merchant of recordThe resource server In cloudflare:402 the network (Cloudflare) is merchant of record. Source [11, 28]Verified
Credential typeSigned payment authorization EIP-3009 or Permit2 signatures, ERC-7710 delegations, a partially signed Solana transaction, or a Lightning preimage. Source [27, 29, 88]Verified
CryptographyEIP-712 typed-data signatures; Ed25519 for RFC 9421 and Solana; SHA-256 preimages on Lightning Smart wallets through ERC-1271 and ERC-6492. Source [27, 28, 29, 34, 251]Verified
Replay protectionSingle-use nonce plus a validity window, enforced by the token contract Replay stores for Lightning payment hashes; cumulative vouchers in batch-settlement. Source [11, 27, 30]Verified
Native spending controlsNone in the protocol; SDK default of $1 per payment Budgets are out of scope in the spec; upto signs a ceiling. Source [11, 60]Verified
RevocationNo revocation message in x402; the signer can cancel an unused EVM authorization on chain before settlement EIP-3009 cancelAuthorization (Base USDC implements it), Permit2 nonce invalidation or revoking an ERC-7710 delegation, if it lands before the facilitator settles. auth-capture adds void and client reclaim; channels allow timed withdrawal. Source [29, 30, 49, 145, 158, 159, 160]Verified
Refunds and disputesNo refunds in exact; no dispute process auth-capture refunds captured funds; batch-settlement channels and Solana upto return unused escrow; third-party x402r adds refunds and arbitration. Source [30, 44, 48, 49, 50]Verified
Privacy exposureOn-chain settlements (EVM, Solana) are public; resource metadata reaches the facilitator Payment payloads and settlement responses stay between client, server and facilitator. The 402 offer is visible to any requester and to discovery services; Lightning and cloudflare:402 payments do not appear on a public chain. Source [11, 28, 29, 106, 131]Verified
Discovery mechanismBazaar extension and GET /discovery/resources Public CDP Bazaar; x402scan reads /openapi.json and /.well-known/x402. Source [11, 106, 207]Verified
Permissionless or registration requiredPermissionless Anyone can run a facilitator; cloudflare:402 needs the signature agent registered with Cloudflare. Source [36, 52]Verified
DecentralizationOpen and permissionless, concentrated in practice In x402scan figures reported on 2026-07-21, Coinbase's facilitator carried about half of transactions and two thirds of volume. From 2025-09-17 to 2026-06-23 one facilitator held 63.54 percent of Base settlements and another 67.72 percent of Solana's. Source [52, 90, 126, 208]Reported
Observability score3 of 5 Public settlements and endpoints, but payments look like ordinary transfers and payment payloads stay private. Source [106, 143, 146]Verified
Fees and who pays themNo protocol fee; facilitator fee plus gas CDP: 1,000 free on-chain transactions a month, then $0.001 each; verification free (as of 2026-10-11). The facilitator pays gas on the EVM exact path and as Solana fee payer. Source [29, 88, 128]Verified
Who pays (short)Facilitator pays gas; seller pays the facilitator fee On Solana the merchant can sponsor as fee payer; cloudflare:402 is billed by Cloudflare. Source [52, 88, 128]Verified
Builds on (standards)HTTP 402, EIP-712, EIP-3009, Permit2, ERC-7710, CAIP-2, CAIP-122, RFC 9421, BOLT11 Plus ERC-8021 builder codes. Source [11, 27, 29, 31, 33, 36]Verified
Composes withAP2 (a2a-x402, AP2 v0.1 target), ERC-8004, Stripe MPP, Mastercard Agent Pay for Machines (builds on x402, 2026-10-20) Visa TAP is a looser fit: its browsingIOU answers an HTTP 402 with card-settlement fields, not the x402 format, and Visa's sample merchant names its flow x402. The ACP and UCP repositories do not mention x402 (searched 2026-10-19). Source [39, 40, 41, 111, 112, 113, 141, 147]Verified
Reference implementations and SDKs@x402 TypeScript 2.31.0, PyPI x402 2.28.0, Go module v2.31.0 (versions on 2026-11-14) Java is in the repository but unpublished. The deprecated legacy V1 npm package x402 (1.2.0, no release since 2026-04-16) still had 2.63M downloads in the 30 days to 2026-11-13, and its middleware had an open paywall bypass. Source [10, 13, 70, 76, 130, 139, 216]Verified
Adoption evidenceReal but contested Trackers disagree, each by its own method: x402scan counted about $1.89M and 4.93M transactions in the 30 days to 2026-11-14, while agenteconomy.to counted about 200.2M cumulative transactions and $43.0M (2026-11-14). Visa and Artemis adjusted cumulative activity to about $15.0M across 109.6M transactions (data to 2026-04-21). The x402.org counter, unchanged at 75.41M transactions and $24.24M from 2025-12-14 to 2026-10-24, was removed by 2026-11-14. Source [80, 81, 83, 118, 120, 122, 126]Reported
Published security researchYes: six 2026 papers, a 25-finding industry review (V12, 2026-10-22), two high-severity maintainer advisories and one CVE (CVE-2026-113603, medium, 2026-10-20) Five attacks, free-riding flaws, facilitator risks, A402, PII leakage, formal analysis; GHSA-3j63-5h8p-gf7c and GHSA-qr2g-p6q7-w82m have no CVE id, while CVE-2026-113603 came from a third-party CNA for a sign-in-with-x bypass whose fix was unmerged on 2026-11-14. Source [16, 20, 21, 43, 90, 98, 99, 100, 101, 131, 157]Verified
Regulatory touchpointsStablecoin rules fall mainly on issuers; whether a non-custodial facilitator is a money transmitter is unsettled; sanctions duties apply to every US person No KYC or sanctions layer in the protocol; the CDP facilitator runs OFAC and KYT checks. Source [11, 127, 161, 163, 164]Verified
Biggest open questionHow much activity is real commerce, and can payment and delivery be made atomic? Source [43, 126]Verified

Q. FAQ and misconceptions

MisconceptionIs x402 a Coinbase product?

No longer. Coinbase Developer Platform originated it in 2025, but since 2026 it is governed by the x402 Foundation, a Linux Foundation project with a Technical Steering Committee of Coinbase, Cloudflare and Stripe. coinbase/x402 is now a fork of the foundation repository. Source [1, 2, 3, 4, 5, 104]

MisconceptionIs every x402 payment USDC on Base?

No. Networks are CAIP-2 ids across many EVM chains, Solana, Lightning and others, and default assets include USDT0, MegaUSD, USDM and USDT as well as USDC. A Solana Foundation quote in the Linux Foundation release of 2026-04-02 put Solana at nearly 65 percent of x402 volume in 2026 to date. Source [3, 11, 25, 26, 27]

MisconceptionAre the V1 and V2 headers the same?

No. V1 put the requirements in a JSON body and used X-PAYMENT and X-PAYMENT-RESPONSE. V2 uses PAYMENT-REQUIRED, PAYMENT-SIGNATURE and PAYMENT-RESPONSE, CAIP-2 network ids and an amount field instead of maxAmountRequired. Source [11, 14, 22, 53, 54]

MisconceptionIs the PyPI package x402 a legacy V1 package?

No. PyPI x402 2.x is the V2 Python SDK (2.28.0 on 2026-11-12). The legacy V1 packages are the unscoped npm packages such as x402 and x402-express. They are deprecated, and x402 and x402-express had no release between 2026-04-16 and 2026-11-14. Source [8, 10, 32, 53, 68, 70, 76, 78, 79]

MisconceptionWhat happened to the deferred scheme?

Cloudflare proposed it in 2025-09. It merged on 2026-04-15 under the name batch-settlement, together with the credit-backed cloudflare:402 binding. A separate deferred scheme from Edge & Node (PR #426) closed without merging on 2026-05-15, and another deferred proposal (PR #1302) was still open on 2026-10-19. Source [55, 56, 232, 233]

Can a facilitator steal or redirect the payment?

Not under exact on EVM with the default EIP-3009 or the Permit2 method: the signature covers the amount and the recipient, so the facilitator can only broadcast what the client signed. With an ERC-7710 delegation, the delegation's caveats must set those limits. A facilitator can refuse service, as the CDP facilitator does for payments that fail its screening, or stop answering, and it sees payment metadata. Source [11, 29, 30, 52, 89, 93, 105, 127, 128, 129]

Can I get a refund?

Not in the exact scheme, which defines no refund. auth-capture supports void, refund and reclaim, batch-settlement channels allow refunds and withdrawal, upto on Solana returns unused escrow to the client, and third parties such as x402r add refund and arbitration. Source [30, 44, 48, 49, 50]

How much does x402 cost?

The protocol charges nothing. Costs are facilitator fees and gas. The CDP facilitator makes the first 1,000 on-chain transactions each month free, then charges $0.001 per transaction, and verification is free (as of 2026-10-19). Source [29, 52, 88, 128, 234]

MisconceptionHow big is x402 really?

Contested. The x402.org Last 30 Days counter (75.41M transactions, $24.24M) never changed from at least 2025-12-14 to 2026-10-24, so it was never a current 30-day figure, and by 2026-11-14 it had been removed from the page. Trackers disagree by method: x402scan counted about 4.93M transactions and $1.89M in the 30 days to 2026-11-14, and agenteconomy.to about 200.2M cumulative transactions and $43.0M as of 2026-11-14. Visa and Artemis adjusted cumulative activity to about $15.0M across 109.6M transactions (data to 2026-04-21), and Visa's Cuy Sheffield was later reported citing about $19M across about 134M. An academic study argues settlement counts can be manufactured almost for free. Source [80, 81, 82, 83, 118, 119, 120, 121, 122, 123, 124, 125, 126]

MisconceptionIs the Cloudflare Monetization Gateway the same thing as cloudflare:402?

No. The Monetization Gateway closed beta (2026-09-30) settles USDC on Base through Coinbase's facilitator. cloudflare:402 is a separate credit-backed batch-settlement variant where Cloudflare is merchant of record. Source [28, 66]

MisconceptionIs x402 the same as L402?

No. L402 is an earlier HTTP 402 payment design on Lightning by Lightning Labs, launched as LSAT on 2020-03-30 with a macaroon plus a BOLT11 invoice and renamed L402 on 2023-04-20. Its bLIP-0026 draft, rewritten on 2026-02-25 and still an open pull request, makes macaroons optional. Neither specification describes a lineage between the two, and x402's own Lightning binding sends only a preimage, no macaroon. Source [1, 8, 27, 42, 45, 149, 150, 151, 152]

Does x402 limit how much my agent can spend?

The protocol does not; budgets are out of scope. The TypeScript client applies spendControls by default: only default assets and at most $1 per payment, unless you change or disable them. Source [8, 11, 32, 60, 64]

Who runs x402scan?

Merit Systems, which publishes the source on GitHub and is a General member of the x402 Foundation (2026-10-19). Source [4, 15, 146]

R. Open questions and research frontier

  1. How much x402 activity is real commerce?

    Raw counts, Visa and Artemis adjusted figures and academic counts disagree by an order of magnitude. The x402.org counter showed the same values from at least 2025-12-14 until it was removed after 2026-10-24. On 2026-11-14 x402scan showed about $1.89M for its 30-day view, while agenteconomy.to counted about 200.2M cumulative transactions and about $274,000 for October 2026; agenteconomy.to states its counting basis (on-chain settlements from 18 tracked facilitators) but does not label wash activity. Artemis keeps its detection logic private and arXiv:2607.12575 uses its own method; no shared, published labeling method was found on 2026-11-14. Source [80, 81, 83, 118, 120, 121, 124, 125, 126]

  2. Will a2a-x402 be updated for AP2 v0.2?

    The a2a-x402 v0.2 embedded flow puts requirements in an AP2 v0.1 CartMandate, which AP2 v0.2 no longer has. The two transport specs also use different extension URIs. Source [24, 141, 142]

  3. Can payment and delivery be made atomic?

    Each payment flow shifts risk to one side. A402 proposes Atomic Service Channels; auth-capture adds refunds but not proof of delivery. Source [43, 49]

  4. How decentralized will facilitation be in practice?

    Anyone can run a facilitator, and supply has widened: Circle has run a hosted facilitator since 2026-09-16, and Brave runs its own for its Search API since 2026-11-12. Yet in arXiv:2607.19545's sample (Base and Solana, 2025-10-01 to 2025-12-26) Coinbase's handled 77.17M of about 119.7M x402 transactions, and the Cloudflare Monetization Gateway also settles through it; no newer concentration measurement was found on 2026-11-14. The eight facilitator security rules from that paper are not part of the spec. Source [52, 66, 84, 90, 208, 211]

  5. What will the identity, tax and card-acceptance working groups produce?

    The x402 Foundation has wg-identity, wg-tax, wg-card-acceptance and wg-domain-discovery repositories. On 2026-10-19 the identity, tax and card-acceptance repositories held only a README and a license, and the domain-discovery group had merged a draft verifier response schema on 2026-10-02. The draft card binding for auth-capture (x402 PR #3707) merged on 2026-11-12 into the feature branch feat/auth-capture-card, not into main; a draft pull request to main (#4241) was open on 2026-11-14, so cards are not part of the specification on main. Source [148, 199, 200, 235]

  6. Will SDK parity catch up?

    On 2026-11-14 TypeScript listed 14 network families (13 published on npm), Go had added casper and Python cardano and the client payment hooks. No SDK implements the Lightning binding; Python lacks auth-capture and Solana upto and batch-settlement; offer-receipt is TypeScript only; the Java module is unpublished; x402-a2a is not on PyPI. Source [64, 65, 130, 214]

  7. Should payment metadata be minimized by the spec?

    Resource URLs and descriptions reach facilitators that may not have data agreements with payers; research proposes filtering middleware, but the spec has no rule. Source [11, 131]

  8. Will the maintainers publish advisories and CVE identifiers for SDK security fixes, and when will the foundation's bug bounty start?

    The two high-severity maintainer advisories still had no CVE id on 2026-11-14. CVE-2026-113603 (2026-10-20) came from a third-party CNA, and GitHub lists it as unreviewed with no package mapping. V12's three critical findings and the paywall script-injection fix of 2026-10-22 shipped without an advisory. Since 2026-10-15 SECURITY.md routes vulnerability reports to the x402 Foundation (a TSC member or a primary maintainer, privately through the x402 Slack) and says a bug bounty program is coming soon. Source [16, 19, 21, 74, 75, 79, 98, 99]

S. Self-test

Quiz

0 of 10 answered.

  1. Question 1. In x402 V2 over HTTP, which header carries the client's signed payment?
  2. Question 2. What is a facilitator allowed to do during POST /verify?
  3. Question 3. Which payment flow is the default in V2?
  4. Question 4. Which scheme was first proposed under the name deferred?
  5. Question 5. What per-payment cap does the TypeScript client apply by default through spendControls?
  6. Question 6. Who governs x402 today?
  7. Question 7. How are networks identified in V2 payment requirements?
  8. Question 8. Which scheme lets a server refund captured funds and a client reclaim an untouched hold?
  9. Question 9. Which payment flow does the exact scheme use on Lightning?
  10. Question 10. Why can a facilitator not redirect an exact EVM payment made with EIP-3009?

Flashcards

0 of 15 marked known. Card 1 of 15.

Prompt

PAYMENT-REQUIRED

T. Notes

Notes stay in this browser and are never sent anywhere.

All your notes across the atlas

Source details

    Loading the index.

    Enter open Esc close ? shortcuts