Skip to content
Integra Protocol

Refusal codes

Every refusal code @integraledger/lcp returns, with its meaning.

For AI agents: this page as Markdown, and llms.txt, the index of every page.

Every function in this package whose type carries a refusal answers a failure with a value, { refused: true, code }, and every code is <namespace>/<reason> (Refusals). A recover given a ref or reader that is not an object, or a ref whose transaction id is not in its rail's form, refuses with nothing read, with the code it gives a reader for another network. The writers whose type carries no refusal, such as toLcpString, throw a TypeError on an argument outside their type instead (What throws). A link is an absolute URL, on this page, when the WHATWG URL Standard's basic URL parser reads it with no base, as the package's own copy of that parser reads it (The link), on every runtime alike. This page lists all 561 codes the package can return, by namespace. CI checks that every refusal(…) call in the source passes its code as a string literal, that this page lists exactly those codes, each once, and that this total and the namespace counts below match its rows.

A meaning that begins Read to repeat. is that of a code readToRepeat answers true for: the answer rests on a read of the rail that may answer differently later, with nothing the caller must change, so the caller asks again later (Reads to repeat). No other code is a read to repeat: wrong-reader and read-first codes are calls the caller changes. node scripts/docs-reference.mjs writes the marks from the set readToRepeat answers from, and CI checks that they match it.

NamespaceCodesReturned by
core6The core: assemble and the JSON checks under it.
discovery20The discovery document (@integraledger/lcp/discovery).
x40239x402 documents, the request commitment, and the checks every x402 pairing shares (@integraledger/lcp/x402 and the x402 pairings on each rail).
mpp60MPP challenges and credentials, and the checks every MPP pairing shares (@integraledger/lcp/mpp, and the MPP Lightning pairings of @integraledger/lcp/lightning).
ack10ACK Payment Requests and receipts (@integraledger/lcp/ack).
acp16ACP checkout sessions and delegated payments (@integraledger/lcp/acp).
ap220AP2 checkouts, Checkout Mandates and the SD-JWT reader under them (@integraledger/lcp/ap2, and the AP2 Mandate pairings of @integraledger/lcp/ucp).
ucp16UCP checkouts and bookings (@integraledger/lcp/ucp).
card27Visa TAP, Mastercard Agent Pay, Visa Intelligent Commerce, Mastercard Verifiable Intent and the plain card checkout (@integraledger/lcp/card).
a2a6The A2A extension (@integraledger/lcp/a2a).
evm20EVM chains: typed data, logs and the settlement read (@integraledger/lcp/evm, the EVM pairings of @integraledger/lcp/x402, @integraledger/lcp/x402-batch-settlement and @integraledger/lcp/mpp, and @integraledger/lcp/spend-permissions).
tempo20Tempo: transactions, memos, channels and key authorizations (@integraledger/lcp/tempo, and the MPP Tempo pairings and keySearch in @integraledger/lcp/mpp).
svm31Solana (@integraledger/lcp/svm and the Solana pairings).
stellar18Stellar (@integraledger/lcp/stellar, the pairing x402/exact/stellar/precondition in @integraledger/lcp/x402-exact-stellar, and the lcp method's Stellar request check in @integraledger/lcp/mpp).
xrpl21The XRP Ledger (@integraledger/lcp/xrpl and the XRPL pairings).
hedera22Hedera (@integraledger/lcp/hedera, and the MPP Hedera pairings and challenges in @integraledger/lcp/mpp).
avm15Algorand (@integraledger/lcp/avm).
aptos6Aptos (@integraledger/lcp/aptos).
cardano15Cardano (@integraledger/lcp/cardano).
casper14Casper (@integraledger/lcp/casper).
ccd17Concordium (@integraledger/lcp/ccd).
near16NEAR (@integraledger/lcp/near, and chargeNearIntents in @integraledger/lcp/mpp).
polkadot17Polkadot Asset Hub (@integraledger/lcp/polkadot).
starknet17Starknet (@integraledger/lcp/starknet).
sui13Sui (@integraledger/lcp/sui).
tron15Tron (@integraledger/lcp/tron).
tvm16TON (@integraledger/lcp/tvm).
ln25Lightning: BOLT11 invoices and the Lightning pairings (@integraledger/lcp/lightning, and the Lightning challenge checks of @integraledger/lcp/mpp).
stacks7Stacks (@integraledger/lcp/stacks, and chargeUsdcStacks in @integraledger/lcp/mpp).
return4The return after an agreement: the Legal-Context header, its check, and the charge options an agreement option serves (@integraledger/lcp).
spend-permissions12The Spend Permission exchange (@integraledger/lcp/spend-permissions).

core

The core: assemble and the JSON checks under it.

CodeMeaning
core/binding-not-jsonassemble refuses an id that is not a string, or a binding value that is not serialisable JSON with safe-integer numbers and at most 64 levels of nesting.
core/content-not-jsonassemble refuses a content that is not an array, or party content that is not a Uint8Array holding exactly one JSON value in which no object repeats a member name (after escape decoding), no number overflows a double and no integer lies beyond 2^53 - 1 either way, and canonicalJson and digestJson refuse a value that is not JSON (deeper than 64 levels, a non-finite number, a string with an unpaired surrogate, or a non-JSON type).
core/slot-duplicateassemble refuses two party slots with the same name.
core/slot-nameassemble refuses a binding or a party slot that is not an array of two, or a binding slot or party slot name that is not a string of 1 to 64 characters from A-Z, a-z, 0-9, ., _ and - starting with a letter or digit.
core/slot-reservedassemble refuses a slot named atrVersion or id, or a party slot that reuses the binding slot's name.
core/too-largeassemble refuses a maxBytes limit that is not a non-negative safe integer, more than 64 party slots, or an ATR whose bytes would exceed the limit (at most 1 MiB).

discovery

The discovery document (@integraledger/lcp/discovery).

CodeMeaning
discovery/atr-hash-malformedThe discovery document's atrHash is not 0x followed by 64 hex digits.
discovery/clause-id-malformedThe discovery document's disputeResolution.clauseId is not sha256:0x followed by 64 hex digits.
discovery/member-malformed/acceptanceRequiredparse or emit finds the discovery document's acceptanceRequired present but not a boolean.
discovery/member-malformed/apiparse or emit finds the discovery document's api present but not a non-empty string.
discovery/member-malformed/contactparse or emit finds the discovery document's contact present but not an object.
discovery/member-malformed/contact.legalparse or emit finds the discovery document's contact.legal present but not a non-empty string.
discovery/member-malformed/contact.technicalparse or emit finds the discovery document's contact.technical present but not a non-empty string.
discovery/member-malformed/disputeResolutionparse or emit finds the discovery document's disputeResolution present but not an object.
discovery/member-malformed/disputeResolution.catalogparse or emit finds the discovery document's disputeResolution.catalog present but not a non-empty string.
discovery/member-malformed/disputeResolution.contactparse or emit finds the discovery document's disputeResolution.contact present but not a non-empty string.
discovery/member-malformed/disputeResolution.jurisdictionparse or emit finds the discovery document's disputeResolution.jurisdiction present but not a non-empty string.
discovery/member-malformed/disputeResolution.methodparse or emit finds the discovery document's disputeResolution.method present but not a non-empty string.
discovery/member-malformed/disputeResolution.sourceparse or emit finds the discovery document's disputeResolution.source present but not a non-empty string.
discovery/member-malformed/returnsparse or emit finds the discovery document's returns present but not a non-empty string.
discovery/member-malformed/termsparse or emit finds the discovery document's terms present but not a string.
discovery/member-malformed/termsFormatparse or emit finds the discovery document's termsFormat present but not a non-empty string.
discovery/not-json-objectparse refuses an input that is not a Uint8Array, or bytes that are not UTF-8 JSON or whose value is not an object, and emit refuses a document that is not an object.
discovery/terms-missingThe discovery document has no terms member.
discovery/terms-not-httpsThe discovery document's terms is a string that the package's https-link rule (isHttpsLink) refuses: not an absolute URL of scheme https with a host and no userinfo, or holding whitespace, a control character or a backslash, a host name over 253 characters or a port above 65535, or not well-formed UTF-16.
discovery/too-largeparse refuses bytes that exceed 65536, and emit refuses a document whose written bytes exceed 65536.

x402

x402 documents, the request commitment, and the checks every x402 pairing shares (@integraledger/lcp/x402 and the x402 pairings on each rail).

CodeMeaning
x402/accepted-not-optionA pairing's reference is given a payment whose accepted is not the option it is given, compared by RFC 8785 form (on Cardano, a CIP-34 alias and its canonical network being one; on x402/exact/tvm, with the forward payload dropped from both, as unplaced drops it): the payment answers another option, whose payee the read would not test. The one code every x402 family answers with.
x402/batched-not-eip3009An exact option on an eip155 network whose extra.name is GatewayWalletBatched, or whose extra.verifyingContract is not its asset: Circle's batched payment, signed under the Gateway Wallet's domain and not the token's, which x402/exact/eip155/eip3009 does not pay.
x402/channel-id-mismatchThe EVM batch pairing finds that the voucher's channelId is not the id computed from the payment's channel config, or buildWithin is given a channel config whose salt is not H; under an option in the scheme's refund-authorizer mode (extra.voucherManager "facilitator" with a non-zero extra.refundAuthorizer), bound, reference or buildWithin is given a channel config whose salt does not end in that refund authorizer.
x402/channel-kind-unknownThe batch pairing's channel.kind cannot classify the payment as an opening, a payment within the channel, or a close (an unknown payload type, or an SVM deposit whose channel instruction is neither open nor top_up); its channel.ref refuses such a payment with this code, as it refuses every payment channel.kind refuses with channel.kind's code.
x402/delegation-emptyAt the ERC-7710 salt level, the payment's permission context decodes to no delegations.
x402/deposit-authorizationThe EVM batch opening's deposit.authorization is not an object carrying exactly one of erc3009Authorization and permit2Authorization.
x402/escrow-not-canonicalAn auth-capture option's extra.authCaptureEscrow is present but is not the address of the commerce-payments escrow's v1.1 or v1.0 deployment; an absent authCaptureEscrow means v1.1.
x402/facilitator-missingAn upto option on an EVM network has no valid extra.facilitatorAddress.
x402/flow-missingThe Solana upto pairing's advertise refuses an option with no extra.paymentFlow; an option whose extra.paymentFlow is present and not escrow is refused x402/option-not-this-pairing.
x402/flow-not-carriedAn auth-capture option's extra.paymentFlow is neither escrow nor authorization, or its extra.autoCapture is true.
x402/header-malformeddecodePaymentRequired, decodePaymentSignature or decodePaymentResponse is given a value that is not padded standard base64 in its canonical form, of at most MAX_HEADER_BYTES bytes of well-formed UTF-8 that are a JSON object carrying no refused member, or a settlement response whose success is not a boolean; or encodeHeader is given a value that is not a JSON object, or whose UTF-8 is over MAX_HEADER_BYTES.
x402/legal-context-conflictadvertise finds an extensions.legalContext already in the document with other values, or the Cloudflare batch pairing's build finds that the document's legal context carries a hash other than H.
x402/legal-context-malformedThe link or agreement URL given to advertise is an https link over 2048 characters, H is invalid, or the document's extensions is not an object; or extensions.legalContext.info does not decode as a legal context, has a link over 2048 characters, or carries an agreement URL that is malformed or given in both spellings with different values.
x402/link-not-httpsThe link or agreement URL given to advertise is not an https link, or the link or agreement URL in the document's extensions.legalContext.info read by read, or the legal context's link read by the Cloudflare batch pairing's build and bound or by the Stellar pairing's bound and reference, is an absolute URL of at most 2048 characters whose scheme is not https.
x402/manager-not-referenceAt the ERC-7710 salt level, the payment's delegationManager is not the reference DelegationManager on a chain where it is deployed.
x402/no-legal-contextThe document or presented payment has no extensions.legalContext, or (for the unsigned ERC-7710 level and Aptos bound) the echoed extensions.legalContext.info does not decode.
x402/no-signed-placebound of x402/upto/xrpl refuses every payment, nothing the payer signs carrying H at coverage none, neither the channel's create nor its claim, once the presented accepted passes the pairing's option filter and its payload names a channel, 64 hex digits, and a payer, a classic XRPL address, whose refusal it gives.
x402/no-payable-optionread finds no option in the document's accepts that this pairing serves. Every pairing's option filter reads its options without the rail's optional peer, so read gives a document the same answer with the peer or without it.
x402/nonce-malformedA presented exact or upto Permit2 payment's nonce is not a decimal below 2^256 or 0x followed by 64 hex digits (on auth-capture, a nonce that does not decode is x402/nonce-not-payment).
x402/nonce-not-agreementbound or reference of x402/exact/eip155/eip3009 or x402/exact/eip155/permit2, given the act agreement and H, is given a payment whose signed nonce is not the agreement's own value, agreementValue of that H.
x402/nonce-not-paymentA presented auth-capture payment's signed nonce does not decode, or is not the escrow payment hash recomputed from the option's terms, the salt and the expiry.
x402/not-an-openingbound or reference refuses a presented payment that is not a channel opening: its payload type is not deposit, or its channel instruction is not open.
x402/not-bound-withinThe SVM batch pairing's channel.boundWithin always refuses, because a voucher within the channel carries no hash; the EVM batch pairing's refuses a payment under an option in the scheme's refund-authorizer mode, whose H only the opening's deposit authorization carries.
x402/not-v2The object a PAYMENT-REQUIRED or PAYMENT-SIGNATURE header carries, read by decodePaymentRequired or decodePaymentSignature, has an x402Version other than 2; or the payment document given to advertise, read, build or buildWithin, or the payment presented to bound, reference, authorizer or a batch pairing's channel.kind or channel.ref (and the EVM batch pairing's channel.boundWithin), is not an object whose x402Version is 2, or the choice given to build or buildWithin is not an object.
x402/option-malformedThe document's accepts is not an array of at most 32 options, an option this pairing names lacks what the pairing needs to pay it (an amount that is the canonical decimal string of a positive integer, with no sign, point, exponent or leading zero, within the width the pairing writes it into, "0" also taken on the EVM and Solana batch-settlement pairings and on x402/exact/solana, and on XRPL an issued currency's value in the canonical decimal form of a positive STAmount value instead (no sign, exponent or leading zero, a fraction that ends in a digit other than 0, at most 16 significant digits, at least 10^-81, and digits below 2^63 with the point removed); an asset, payTo, a maxTimeoutSeconds that is a positive safe integer, token name and version, or its scheme's required extra members; on the Solana pairings, an extra.transactionVersions that is present and is not a non-empty array of the integers 0 and 1, which x402's scheme_exact_svm.md §1.5 makes invalid and which admits neither message version; on auth-capture, an amount below 2^120, captureDeadline, refundDeadline and maxTimeoutSeconds below 2^48, fees of at most 65,535 basis points, and a non-zero receiverAuthorizer where paymentFlow is authorization; on the EVM batch pairing, an extra.refundAuthorizer that is present and is not an address; on x402/exact/eip155/gateway-batched, an extra.version other than "1" and "2" (absent read as "1", as Circle's client reads it) an extra.verifyingContract other than the Gateway Wallet on the option's network, and, at version "1", whose authorization names no token, an asset other than the network's USDC, which Circle's client does not sign; on XRPL, a payTo, and an issued currency's extra.issuer, that is a classic address whose checksum holds and whose AccountID is not 0 and, on an issued currency, not 1 (noAccount), which rippled refuses there; each pairing's read offers no such option, and its bound and reference refuse a payment presented under one), the buyer's choice given to build carries an invalid payer address, now, key, nonce, sequence, deposit, amount or TON state init (a TON state init that holds libraries, whose fixed prefix is longer than 8 bits, or whose hash, the bits of its fixed prefix aside, is not the wallet's address, is invalid, since TON deploys no wallet from one; on x402/exact/eip155/gateway-batched, also a now below 600, from which no validAfter 600 seconds before it is written, and a minValiditySeconds, the served minimum validity, that is absent or is not a positive safe integer; on the EVM batch pairing, also an invalid payer authorizer, authorization salt or H, or a payer that is the zero address, which the channel contract's deposit refuses in a channel configuration, as it refuses an option whose payTo or asset is; on NEAR, a payer that is not a NEAR account id, as near/option-malformed defines one, or a public key that nearcore's PublicKey::from_str does not read as an Ed25519 or secp256k1 key, where it reads a key type before the first :, ed25519 or secp256k1 in ASCII letters of either case, or no key type, which is Ed25519, then the base58 of exactly that type's key size, 32 bytes or 64), the EVM batch pairing's build is given an option whose amount is "0" (a zero price opens no channel: on the channel a deposit opens, the scheme's server requires the opening voucher to claim 0 and its facilitator requires it to claim more than 0; read, buildWithin, bound and reference take that option), unplaced is given an option that carries a refused member, or advertise or advertiseBeforeCarrier is given a document, or an option in its accepts, that carries one.
x402/option-not-in-documentThe option given to advertise or chosen in build or buildWithin is not one of the document's accepts, compared by identity or RFC 8785 form.
x402/option-not-this-pairingThe option offered, chosen or presented (as the payment's accepted) is not one this pairing serves: its scheme, network, asset transfer method, payment flow or fields belong to another pairing or to none. On Aptos, Cardano, Casper, Concordium and Sui this is also the code for an exact option on the pairing's network whose other members the pairing cannot pay, an amount that is not the canonical decimal string of a positive integer and a maxTimeoutSeconds that is not a positive safe integer included. Every x402 pairing's bound holds the presented accepted to the option filter its read applies: an option the filter does not name is this code, and one it refuses is refused with the filter's code, the one advertise gives that option.
x402/payload-malformedThe presented EIP-3009 payment carries a refused member, the presented payment's accepted or payload is not an object or lacks a member the pairing reads (authorization, Permit2 authorization, delegation fields, transaction, channel config, voucher or deposit), a member does not decode to a valid address, amount, deadline or digest, the EVM batch opening's deposit amount is not a positive decimal below 2^128 (the uint128 the channel contract's deposit takes, which refuses 0), its ERC-3009 validBefore or Permit2 deadline is not a decimal below 2^256 (the uint256 the deposit collectors decode), an EVM batch payment's channel configuration, or the one given to its buildWithin, is one that deposit refuses (a payer, receiver, receiver authorizer or token that is the zero address, or a withdrawal delay outside 900 to 2,592,000 seconds), an EVM batch refund's amount is present and is not a positive decimal below 2^128 (the uint128 the channel contract's refund takes, which refuses 0), a Solana batch payment's channel configuration, or the one given to its buildWithin, has a withdrawDelay that is not a positive integer below 2^32 (the payment-channels program's grace_period, a u32 its open refuses as 0) or a payerAuthorizer that is not a point on the Ed25519 curve (open refuses such an authorized signer), the delegation given to the ERC-7710 complete is not an object whose delegationManager and delegator are addresses, or H given to build is not a valid ATR hash. The EVM batch pairing's build refuses such an H as x402/option-malformed, the Cloudflare batch pairing's as x402/legal-context-conflict, and the Concordium and Casper pairings' as ccd/memo-not-lcp and casper/payload-malformed. Every other x402 build checks H first, before the choice and its document, so such an H gets its code whatever else the choice holds, with or without the rail's optional peer.
x402/permission-context-malformedThe ERC-7710 permissionContext given to complete is not hex of at most 32 KiB, or at the salt level it does not decode as a list of delegations.
x402/request-header-invalidrequestCommitment refuses header field names that are not a list of distinct field names (RFC 9110 tokens, compared lower-cased), header fields that are not a record of strings or lists of strings, two keys of that record that name one named field, or a named field's value holding a character outside visible ASCII, the space and the tab.
x402/request-target-invalidrequestCommitment refuses a request that is not an object, or whose method or target is not a string, whose method is not an RFC 9110 token, whose body is not a Uint8Array, or whose target does not start with / or contains a character outside visible ASCII.
x402/request-too-largerequestCommitment refuses a request target longer than 8192 characters, a body larger than 1 MiB, or a named header field whose value, its lines joined, is longer than 1 MiB, or toolCallCommitment a tool call whose arguments are larger than 1 MiB in RFC 8785 form.
x402/salt-malformedA presented auth-capture payment's salt, or its saltNonce when the option binds a receiver authorizer or policy, is not 0x followed by 64 hex digits.
x402/salt-not-boundA presented auth-capture payment's salt is not the commitment of its saltNonce to the option's receiver authorizer and policy, or the payment carries a saltNonce under an option that binds neither, whose payload carries none and whose salt is H.
x402/signature-malformedA signature given to complete or carried in the presented payload is missing, not hex (or bytes) of the length the pairing requires (on Sui, the presented signature is checked only as a non-empty string), or not the number of signatures the request asked for. On x402/exact/eip155/gateway-batched, whose payer is an externally owned account, complete takes a 65-byte signature alone, and authorizer refuses a presented signature that is not 65 bytes with a low s and a v of 27, 28, 0 or 1, from which no account is recovered; it refuses no signature for the account it recovers. On NEAR, an Ed25519 signature given to complete whose last byte is 0x20 or more is refused this way: nearcore reads none, and a valid signature never has one. A Solana pairing's complete answers these as svm/input-malformed.
x402/signed-not-boundcomplete refuses a signed transaction from which the pairing cannot read H back (or its read keys), or which carries a hash other than H. x402/exact/eip155/gateway-batched's bound and authorizer refuse a payment whose echoed extensions.legalContext decodes to an H other than the authorization's nonce. The x402/exact/aptos complete gives a transaction reference refuses the code reference gives it instead.
x402/spender-not-proxyA presented Permit2 payment's spender is not the x402 Permit2 proxy for its scheme (exact or upto).
x402/splits-not-carriedAn exact option on an eip155 network whose extra.splits is present and not an empty list: exact pays one payee, and no EVM exact pairing splits a payment.
x402/tool-call-malformedtoolCallCommitment is given a call that is not an object, or carries a refused member, a name that is not a well-formed string of 1 to 8192 characters, or arguments that are present and are not a JSON object.

mpp

MPP challenges and credentials, and the checks every MPP pairing shares (@integraledger/lcp/mpp, and the MPP Lightning pairings of @integraledger/lcp/lightning).

CodeMeaning
mpp/access-key-malformedA Tempo subscription challenge's methodDetails.accessKey is not an object with an address accessKeyAddress and a keyType of p256, secp256k1 or webAuthn.
mpp/attribution-malformedcheckAttribution is given a memo that is not 32 bytes of hex.
mpp/attribution-mismatchAn attribution memo's tag, version, server id for the realm, or nonce for the challenge id is not the expected value.
mpp/carrier-not-challengeThe hash a carrier holds (the Lightning invoice's description hash; the Solana Memo of a charge, a session opening or a subscription's activation; the XRPL charge's InvoiceID or a session opening's memo; or the NEAR Intents challenge's externalId) is not the hash the echoed challenge's id, or the id of the challenge given to an MPP Lightning build, derives from; or the MPP Lightning advertise finds that the invoice's description hash is not the H it is given. On the MPP Lightning pairings an invoice whose h field is absent or repeated is refused this way, by pairingsOf too.
mpp/carrier-occupiedadvertise for a card or Stripe charge, the Stripe subscription or a usdc Solana charge finds the carrier member already holding a value other than H's LCP string.
mpp/carrier-takenA challenge as issued already carries an LCP member (legalContext, legalContextUrl or legalContextAgreementUrl) in its opaque, or a Tempo charge challenge whose amount is not 0 already has a methodDetails.memo.
mpp/chain-id-requiredAn EVM session, Tempo charge or Tempo subscription challenge has no positive integer chainId, a Tempo session challenge's chainId is present but not a positive integer, or a Tempo session using sessionProtocol v2 lacks chainId or escrowContract.
mpp/challenge-malformedA challenge is not challenge-shaped: parseChallenges finds one of the parameters MPP defines repeated, or a required one (id, realm, method, intent, request) missing or empty; place or read is given a document that is not an array or holds more than 32 challenges, or place one holding a challenge without string realm, method, intent and request; issuedDigest, pairingsOf or network is given a challenge without those members; challengeId is given an invalid H or a position outside 0 to 31; a challenge's realm is not a well-formed string (one holding a lone surrogate has no UTF-8 form to hash); H or a value to hash cannot be written in its canonical form; unplaced is given a challenge that carries a refused member; place, and so each pairing's advertise and advertiseBeforeCarrier, is given a list holding a challenge that carries one; or encodeChallenge is given a challenge that is not an object, carries a refused member, lacks a string id, realm, method, intent or request or holds one empty, has another member that is not a string, has a header other than Payment-Authorization, holds a character no quoted-string carries (a control character other than tab, DEL, or one above U+00FF), or whose field value would be over 8192 characters. read skips an entry that is not challenge-shaped, and parseChallenges drops a parameter MPP does not define, with its repeats.
mpp/challenge-not-optionA pairing's reference is given an option that is not the challenge the presented credential echoes: another id, or other members fixed at issue (issuedDigest), so the presented payment does not answer the option it is read against (the MPP charges on EVM chains and the Tempo split-memo charges; the payee the read tests is the one of the challenge the payment answers); or a credential whose echoed challenge is not the challenge it is given, so the payment answers another challenge, whose payee the read's party tests would not take: compared by RFC 8785 form (the Solana charges, sessions and subscription), member by member, request and opaque by their decoded members (the NEAR Intents charge and the usdc Stacks charge), or by the members fixed at issue (issuedDigest, mpp/session/hedera/stock); or, on the NEAR Intents charge, is given an option that is not a challenge.
mpp/channel-namedA session challenge as issued already names a channel (channelId, or an EVM or Tempo sessionSnapshot), so it is not a challenge to open one.
mpp/channel-not-boundAn EVM session opening's channelId is not the channel id computed from the payer, payee, token, H as salt, signer, escrow and chain, or a Tempo v1 session opening's channelId is not the channel id its open transaction opens, computed the same way from the transaction's sender and the payee, token and signer of its open call; that transaction is checked before the channelId, so a fault in the transaction gives that fault's code. The mpp/session/tempo build's voucher and complete give it for a v1 signed transaction whose sender is not the build's from, or whose open call names another payee, token or authorizedSigner than the build's, so that it opens a channel other than the one the credential complete would give names, as bound refuses that credential.
mpp/credential-malformeddecodeCredential is given a field value that is not Payment, in any case, one or more spaces and base64url without padding in its canonical form of at most 65,536 bytes of well-formed UTF-8 JSON, or whose JSON is not a credential as this row states; or encodeCredential is given a credential that is not one as this row states, that is not then JSON (an undefined inside the payload, a function, a bigint, a non-finite number, a lone surrogate or an instance of a class), or whose field value decodeCredential refuses; or a credential is not an object with an echoed challenge carrying an id, an optional string source and a payload object, carries a refused member, exceeds the credential size bound, nests more than 16 arrays and objects (the outermost counting 1, whatever the innermost holds), or lacks a payload member the pairing reads (signature, nonce, hash, transaction, salt, channel id or authorization fields) in the required form; or an MPP Solana session opening lacks authentication where its challenge's voucherSigner is operator, or carries one where it is client or absent; or an MPP Solana session close, given to channel.kind, channel.ref or channel.boundWithin, lacks voucher or carries authentication where its echoed challenge's voucherSigner is client or absent, or carries voucher or lacks authentication where it is operator; or a signature or hash given to complete is not the required hex, the EVM or Tempo session buildWithin's complete is given other than one signature, the EVM transaction charge complete is given a signed transaction that is not an EIP-1559 transaction (0x02 and the RLP list of its twelve fields), the usdc Stacks complete is given a value that is not a Uint8Array, or the usdc Gateway complete is given a burn intent that is not an object or an empty source, network or maxFee; or the Solana session build's complete is given an opening that is not an object, as bound refuses a credential carrying it; or the EVM session build's voucher is given a funding complete refuses: a value that is not hex bytes, a hash funding that is not 32 bytes, a signature funding of no bytes or over 8,192 bytes, or a funding whose credential, with a one-byte voucher signature, the shortest complete takes, is over the credential size bound; or the credential an MPP build's complete would return, its echoed challenge included, is over the credential size bound, as bound refuses that credential (every MPP complete that makes a credential measures it so, whatever the challenge's size or the input's, and before it reads the payment the credential carries, as bound does, so a payment fault in such a credential is this code too), or a payment given to an MPP session pairing's channel.kind, channel.ref or channel.boundWithin, or the in-channel credential a buildWithin's complete would return, is over it, as one rule measures every credential, in the channel or opening it (except the Stripe subscription's channel members, which read only the activation receipt), or the mpp/session/tempo build's voucher is given a signed transaction whose credential, with a one-byte voucher signature, the shortest complete takes, would be so; or the challenge given to a session pairing's closeRef is not challenge-shaped (none among them), or the challenge given to it, to an MPP build or to an MPP session's buildWithin puts the least credential echoing it, { challenge, payload: {} }, over the credential size bound, as bound refuses a credential echoing it, or the channel given to closeRef is not a channel id in its rail's form; or the chosen challenge given to an MPP build, or the within challenge given to an MPP session's buildWithin, is not an object, is not challenge-shaped or has no string id, as bound and the channel members refuse a credential carrying it; or the Lightning build is given a choice that is not an object; or the MPP Solana session's buildWithin is given a close under a within challenge whose voucherSigner is operator, over an opening whose challenge's is client or absent, as channel.kind refuses the close it would build, which carries voucher.
mpp/credential-typeThe credential's payload type is not one the pairing accepts (such as transaction, hash, authorization, permit2, transfer, bundle or signature).
mpp/credential-typesThe challenge's credentialTypes is not a non-empty array of types the method defines, or leaves no pairing (EVM splits allow only Permit2), or the credential type the buyer asks a session build for is not one the challenge lists.
mpp/escrow-malformedAn EVM or Tempo session challenge's methodDetails.escrowContract is not an address.
mpp/expires-requiredThe challenge's expires is not a valid RFC 3339 date-time where the function reads it, or the challenge has no expires where it is needed: in the challenge's checks, when every pairing the challenge offers needs it (each one whose build writes it into what the payer signs, and the NEAR Intents and XRP Ledger charges, whose drafts require it), and in the lcp method's filter, whose challenges all state it; in place, for an agreement challenge; and in toX402, whose two forms both need it. bound, reference, fetchPresented and a session's channel.ref given an opening hold the echoed challenge to those checks, and a session's closeRef the issued one.
mpp/fee-payer-unnamedadvertise of a Tempo split-memo charge is given an offer whose methodDetails.feePayer is not true or false: the challenge as issued names who pays the fee, since the payer signs with the fee payer's slot open.
mpp/gateway-unreadThe usdc Gateway credential's authorization is not a single circle-gateway-v1 signed burn intent whose spec carries a bytes32 salt, a decimal value and readable signer and recipient accounts, and whose burn intent carries a decimal maxFee.
mpp/header-malformedparseChallenges refuses field values that are not an array of strings of at most 8192 characters each, that do not parse by RFC 9110's challenge grammar, or that carry more than 32 Payment challenges.
mpp/id-not-oursA challenge id is not the base64url of an ATR hash in the form this package writes it (with a position 0 to 31, or bare for a Tempo subscription), or the id does not derive from H given to build, or H given to an MPP session's buildWithin is not a valid ATR hash, which it checks before the cumulative amount, the action and the opening, or a held session opening is bound to a hash other than H, or a challenge of the issue mpp/charge/evm/permit2's reference is given beside the chosen one has an id that is not of the chosen one's H, or the id of the challenge a credential echoes is not, whole, the id the resource server recorded when it issued that challenge (challengeBound).
mpp/input-malformedThe buyer's input to build or buildWithin is not what the pairing needs: a choice or within input that is not an object, or an invalid payer address, token domain, spender, Gateway sourceNetwork (absent or empty, or, given to complete, not the build's), burnIntentExpirationHeight or withdrawalDelay (each a decimal string below 2^256, whose ceiling is at most 2^256 − 1), client id (a Tempo client id that is not a well-formed string included), deposit, signer, cumulative amount, fee, key or other value the pairing reads; or an EVM charge challenge's amount less its splits is not above zero, which permit2 cannot pay, where permit2 is the only pairing it offers (pairingsOf leaves permit2 out where another stays offered), or a Tempo charge challenge's is not, which leaves its primary transfer nothing (pairingsOf included); or the account given to mpp/subscription/tempo's closeRef is not an address; or evmChannelId is given a payer, payee, token, signer or escrow that is not an address, a salt that is not a 32-byte hash or a chain id that is not a positive safe integer, or usdcGatewaySalt an input that is not an object whose salt inputs are strings; or xrplChannelId or xrplClaim is given a malformed address, sequence, channel id or amount, as the XRPL session's build gives them the payer; or the H given to mpp/subscription/tempo's keySearch is not a 32-byte hash; or the recorded id given to challengeBound is not an id in the form this package writes; or place is given an act that is neither payment nor agreement; or toX402 is given an issued that is not a non-negative safe integer before the challenge's expires.
mpp/legal-context-conflictplace finds LCP members already in the challenge's opaque with other values, or read finds challenges that carry different hashes, links or agreement URLs.
mpp/legal-context-malformedThe link or agreement URL given to place is an https link over 2048 characters, or read finds a challenge whose legalContextUrl or legalContextAgreementUrl is not a usable https URL of at most 2048 characters (and, for the link, no challenge reads).
mpp/link-not-httpsThe link or agreement URL given to place is not an https link, or the legalContextAgreementUrl that read finds beside a link that reads, or a legalContextUrl that read finds when no challenge reads, is an absolute URL of at most 2048 characters whose scheme is not https.
mpp/machine-token-enabledA Tempo charge challenge sets methodDetails.machineTokenEnabled to anything but false: the stock client's machine-token route can move the split's memo out of the payer's transfer, so no split-memo pairing takes it.
mpp/max-block-height-changedThe complete function returned by build of mpp/charge/usdc/gateway is given a burn intent whose maxBlockHeight, read as a decimal string or a safe integer, is absent or is not the one the build wrote into its request.
mpp/metadata-malformedA Stripe challenge's methodDetails.metadata is not an object within Stripe's bounds (key count including the one advertise adds, key length and characters, string values of bounded length).
mpp/modes-not-pulladvertise of mpp/charge/tempo/split-memo is given an offer whose methodDetails.supportedModes is not exactly ["pull"], or a challenge of the lcp method has a methodDetails.supportedModes that is absent or not exactly ["pull"], which its filter refuses wherever it holds a challenge.
mpp/network-unnamednetwork gives no CAIP-2 network for a Lightning, card or Stripe challenge (a Lightning charge whose methodDetails.network names one included), or for a usdc Gateway challenge.
mpp/no-legal-contextread finds no challenge whose opaque carries an LCP hash and a link and whose id derives from that hash.
mpp/no-signed-placebound of the EVM transaction and hash charge pairings, and build and bound of the card and Stripe pairings, refuse every payment, because nothing the buyer signs carries H; bound first holds the echoed challenge to the pairing's filter, whose refusal it gives, and on the EVM transaction and hash charges then refuses a payload type other than transaction and hash as mpp/credential-type. bound of mpp/session/xrpl/stock refuses every voucher and close so, nothing the payer signs carrying H at coverage none, once it has read the channel the credential names, whose fault it gives. bound of mpp/session/hedera/stock and of mpp/session/solana/stock refuses every opening so, nothing the payer signs carrying H at coverage none, once the echoed challenge is the pairing's, whose refusal it gives; a credential that is no opening is mpp/session-action on Hedera and mpp/not-an-opening on Solana.
mpp/nonce-not-challenge-hashThe EVM authorization credential's nonce, or the EVM permit2 credential's permit.nonce, is not keccak256 of the challenge's id and realm.
mpp/nonce-not-channelAn EVM session opening of type authorization carries a nonce other than the one derived from the payer, recipient, currency, H and signer.
mpp/nonce-not-usdc-derivationThe usdc EVM credential's nonce is not the usdcNonce derived from the challenge's id, realm and request hash.
mpp/not-an-openingThe session credential presented as the opening is not one: its action is not open (EVM, where a voucher carrying a deposit whose action is open also counts, and Tempo), or its payload type is not the opening's (transaction on Tempo, keyAuthorization on a Tempo subscription).
mpp/not-bound-withinchannel.boundWithin refuses a payment within the channel that carries no hash: an EVM session, a Tempo session under sessionProtocol v1, a Tempo subscription, a Hedera or XRPL session, a Solana payment other than use, a Lightning bearer or top-up, or a Stripe renewal. The mpp/session/tempo buildWithin gives it for a within challenge under sessionProtocol v1 over a v2 opening, as channel.boundWithin refuses the payment it would build.
mpp/no-x402-twintoX402 is given a credential that is not an evm authorization credential or a usdc EVM credential, or whose challenge offers neither (a challenge with splits among them): only those two have an x402 twin.
mpp/not-this-pairingThe challenge's intent and method name no pairing this package defines, the challenge (offered, chosen, held or echoed in a credential) does not offer the pairing whose function was called, an echoed challenge's intent and method (on usdc, the profile methodDetails.type names), or those of the challenge given to a session pairing's closeRef, are not the pairing's, or place finds no challenge in the document whose bound members equal the option.
mpp/opaque-malformedThe challenge's opaque does not decode as a base64url JSON object of strings, or the opaque that place would write is larger than 8 KiB.
mpp/opaque-not-this-hashThe echoed challenge, or the challenge given to an MPP build, which holds it as bound holds an echoed one (an opaque it inherits counts as absent, as its JSON form has none), has no opaque, or its opaque does not carry a legalContext equal to the hash its id derives from.
mpp/position-takenplace is given a position whose id another challenge of the document already carries: each challenge of a sale takes its own position.
mpp/receipt-malformedThe Stripe subscription's activation receipt is not a successful stripe receipt with a Stripe subscription ID of 1 to 255 visible ASCII characters; or encodeReceipt is given a receipt whose status is not success, whose method is not lowercase ASCII letters, whose timestamp is not an RFC 3339 date-time or whose reference is not a string, that carries a refused member or an enumerable symbol-keyed member, or that, its undefined members left out, is not a JSON object; or decodeReceipt is given a field value that is not base64url without padding in its canonical form of at most 65,536 bytes (MAX_HEADER_BYTES) of well-formed UTF-8 of a JSON object nested at most 64 levels deep, or whose receipt encodeReceipt refuses.
mpp/receipt-missingThe Stripe subscription's channel.ref is given no activation receipt.
mpp/request-malformedA challenge's request does not decode as a base64url JSON object of at most 8 KiB, the base64url without padding in its canonical form (RFC 4648 §3.5), its methodDetails is not an object, a member its intent and method require (amount, currency, recipient, addresses, the NEAR Intents origin network, period, channel id or profile fields; on the card charge only externalId, and on the Stripe charge none) is missing or malformed, or the request re-encoded with the carrier placed would exceed 8 KiB; an XRPL session's recipient is not a classic address whose checksum holds, or a Tempo subscription's period is 2^64 seconds or more or its subscriptionExpires is before 1970. bound, reference and fetchPresented hold the echoed challenge to these checks, the pairing's filter, except a fetchPresented given a signed transaction, which returns it as given.
mpp/request-not-jcsA usdc EVM or Gateway challenge's decoded request bytes are not the RFC 8785 form of their own parse, which its derivations hash, wherever the challenge is checked (pairingsOf included), or usdcRequestHash is given such bytes.
mpp/salt-not-this-hashAn EVM session opening's salt, or its Permit2 witness salt, is not the hash the echoed challenge's id derives from.
mpp/salt-not-usdc-derivationThe usdc Gateway credential's TransferSpec salt is not the usdcGatewaySalt derived from the challenge and the credential's own values.
mpp/session-actionA session credential's or buildWithin input's action is not one the pairing's draft defines: open, topUp, voucher and close on the EVM, Tempo and Hedera sessions, those and use on the Solana session, open, voucher and close on the in-band XRPL session, voucher and close on the stock XRPL session, mpp/session/xrpl/stock, which refuses an open too, since the stock client opens its channel itself, out of band, and open, bearer, topUp and close on the Lightning session; or buildWithin is given open; a Hedera, Solana or XRPL credential presented as an opening, or the opening given to the Solana session build's complete, does not have action open; or an MPP Solana session voucher whose echoed challenge's voucherSigner is operator, or use whose echoed challenge's voucherSigner is client or absent, is given to channel.kind, channel.ref or channel.boundWithin, or the MPP Solana session's buildWithin is given a voucher under a within challenge whose voucherSigner is operator, over an opening whose challenge's is client or absent, as channel.kind refuses the voucher it would build; or the Tempo subscription's channel.kind is given a payload whose type is not keyAuthorization. Each session pairing's channel.ref refuses a payment its channel.kind refuses, with that code.
mpp/session-protocolA Tempo session challenge's sessionProtocol is neither v1 nor v2.
mpp/source-requiredThe credential's source is not a did:pkh:eip155 DID, whose address the EVM Permit2 reference and authorizer, the EVM transaction and hash reference, and a hash-type EVM session opening take as the payer; or a voucher or close of mpp/session/xrpl/stock has no source, the did:pkh:xrpl DID whose address its reference takes as the payer.
mpp/split-not-placedA Tempo charge challenge as placed, or echoed, has no split whose memo is the H its id carries, or more than one, or one that is not {recipient, amount: "1", memo: H} with the request's own recipient.
mpp/splits-malformedAn EVM charge challenge's methodDetails.splits is not an array of 1 to 10 entries, each with an address recipient and a decimal amount; or a Tempo charge challenge's is not an array of 1 to 10 entries, each with an address recipient, a decimal amount above zero and, when present, a 32-byte hex memo, wherever the challenge is checked (pairingsOf included).
mpp/stacks-memo-not-hThe usdc Stacks transaction is not a contract call to transfer whose fourth argument is (some H).
mpp/stacks-tx-malformedThe usdc Stacks credential's transactionFormat is not the one read, or its transaction is not base64 of a Stacks transaction of 1 to 16,384 bytes that a Stacks node decodes and serializes back to the same bytes, as stacks-core 4.0.5's StacksTransaction::consensus_deserialize reads it: each field of a form that deserializer reads, such as a principal as a token transfer's or coinbase's recipient (a Nakamoto coinbase's none or (some <principal>)), contract and Clarity names, a multisig authorization's signatures exactly as many as it requires (an order-independent one's at least as many), a VRF proof that parses, and Clarity values nested at most 16 levels, the outermost counting 1, whose type is at most 1,048,576 bytes, with no empty tuple, a tuple's members in name order as bytes and a list's items of a common type; or the bytes given to the usdc Stacks build's complete are not such a transaction. The 16,384 bytes are this package's own bound for the pairing, not a Stacks node's: a node's MAX_TRANSACTION_LEN is 2 MiB (stacks-core 4.0.5, stacks-codec/src/transaction.rs:55-56).
mpp/usdc-not-nativeA usdc EVM challenge's request.currency is not the native USDC token contract Circle publishes for its methodDetails.evm.chainId, as the draft requires servers to verify, or Circle publishes none for that chain in the table lcp holds (Circle's USDC Contract Addresses, read on 2026-11-17): pairingsOf names no pairing for it.
mpp/usdc-profileA usdc charge challenge's methodDetails.type does not name one of evm, solana, stacks or gateway, the named profile's details are not an object, or methodDetails also holds another profile's details.
mpp/within-action-not-builtbuildWithin is asked for an action the pairing's draft defines within a channel and it does not build (topUp on the EVM, Tempo, Hedera and Solana sessions, and use on the Solana session), or for a voucher or a close on a Solana channel whose vouchers the operator signs.
mpp/witness-not-challenge-hashThe EVM permit2 credential's witness.challengeHash is not keccak256 of the challenge's id and realm.
mpp/witness-takenplace refuses a Tempo subscription challenge in a document that holds another Tempo subscription challenge, because both would take the same id derived from H.
mpp/zones-not-servedA Tempo charge challenge carries methodDetails.zones: no pairing defines where a Tempo Zone payment's H rides, so none is issued or taken.

ack

ACK Payment Requests and receipts (@integraledger/lcp/ack).

CodeMeaning
ack/id-not-lcpread finds that the Payment Request token's id is not an ATR hash in LCP's string form (lcp:sha256:H).
ack/legal-context-conflictread finds that the hash in the body's legalContext differs from the hash in the Payment Request token's id.
ack/legal-context-malformedadvertise refuses an invalid ATR hash, or a link or agreement URL that is an https link over 2048 characters; read refuses a body legalContext that does not decode (a link that is not https included), whose link exceeds 2048 characters, or whose agreement URL is not an https link of at most 2048 characters or is given twice with different values.
ack/link-not-httpsThe link or agreement URL given to advertise is not an https link.
ack/no-legal-contextread finds no legalContext in the 402 body.
ack/no-signed-placeACK defines no payer signature, so build and bound of ack/payment-request always return this refusal.
ack/option-malformedadvertise refuses a payment option that is not an object with a non-empty string id, and unplaced refuses an option that carries a refused member.
ack/receipt-malformedfromReceipt refuses a credentialSubject that is not a serialisable JSON object or whose embedded paymentRequestToken is not a token read takes or does not carry an id in LCP's string form.
ack/token-malformedread refuses a 402 body that is not a serialisable JSON object, a paymentRequestToken that is not a compact JWS, each segment base64url without padding in its canonical form (RFC 4648 §3.5), with a JSON object payload, or a token payload whose paymentOptions is not an array.
ack/too-largeread refuses a 402 body over 64 KiB, a token over 16384 characters or more than 16 payment options, and fromReceipt refuses a credentialSubject over 64 KiB; a body or credentialSubject nested more than 64 levels deep is refused the same way.

acp

ACP checkout sessions and delegated payments (@integraledger/lcp/acp).

CodeMeaning
acp/allowance-changedThe complete function returned by build refuses a delegate_payment request that is not an object or whose allowance differs from the one built.
acp/allowance-malformedbound refuses a presented request that is not an object or whose allowance is not exactly ACP's six members with reason one_time.
acp/charge-reference-malformedreference of acp/checkout/undelegated is given a value that is not an object whose charge, the seller's own reference for the charge, is 1 to 255 visible ASCII characters.
acp/choice-malformedbuild refuses a choice that is not an object, or whose max_amount, currency, merchant_id or expires_at is not a non-negative safe integer, a three-letter lowercase code, a non-empty string and an RFC 3339 date-time respectively, or whose allowance has no RFC 8785 form (a merchant_id holding an unpaired surrogate).
acp/hash-not-sessionbuild refuses when H is not a valid ATR hash or the chosen session's id is not H.
acp/id-conflictadvertise finds that the session already has an id other than H.
acp/id-not-hashread finds that the session's id is not an ATR hash, or bound finds that the allowance's checkout_session_id is not one.
acp/legal-context-conflictadvertise finds a different metadata.legal_context already in the session, or read finds that the hash in metadata.legal_context differs from the session's id.
acp/legal-context-malformedadvertise refuses an invalid ATR hash, or an agreement URL that is an https link over 2048 characters; read refuses a metadata.legal_context that does not decode, or whose agreement URL is malformed or given in both spellings with different values.
acp/link-not-httpsThe link or agreement URL given to advertise is not an https link, or one found in metadata.legal_context by read is an absolute URL whose scheme is not https.
acp/no-legal-contextread finds no metadata.legal_context in the session.
acp/not-buyer-signedbound of acp/checkout/undelegated always refuses, because nothing the buyer signs names the hash.
acp/nothing-to-signbuild of acp/checkout/undelegated always refuses, because a handler that does not require delegate_payment gives the buyer nothing to sign.
acp/option-malformedadvertise refuses a handler option that is not an object with a boolean requires_delegate_payment, reference of acp/checkout/undelegated one whose requires_delegate_payment is not false, and unplaced refuses an option that carries a refused member.
acp/session-malformedadvertise or read refuses a checkout session that is not a serialisable JSON object, or (in advertise) one that carries a refused member or whose metadata is present but not an object.
acp/too-largeThe checkout session, or the session advertise would return, exceeds 1 MiB or is nested more than 64 levels deep, an https link given to advertise or read from metadata.legal_context exceeds 2048 characters, or (in read) its id is longer than a hash, or the buyer's choice given to build has a merchant_id over 256 characters or an expires_at over 64 characters.

ap2

AP2 checkouts, Checkout Mandates and the SD-JWT reader under them (@integraledger/lcp/ap2, and the AP2 Mandate pairings of @integraledger/lcp/ucp).

CodeMeaning
ap2/checkout-hash-mismatchbound finds that the mandate discloses a checkout_jwt different from the presented one.
ap2/checkout-id-missingadvertise, read or build finds that the checkout payload has no id, or that its id is not a non-empty string; bound does not read the id.
ap2/checkout-not-latestbound finds that the mandate's checkout_hash is not the SHA-256 of the presented checkout_jwt.
ap2/disclosure-unreferencedAn SD-JWT of the Checkout Mandate presentation (either hop of a chain) carries a disclosure that no digest in its payload references.
ap2/hash-not-in-checkoutbuild finds that the hash in the offer's checkout JWT is not H.
ap2/jws-malformedA checkout JWT (given to jwsPayload, read, build or bound, or as a payload to advertise) is not a compact JWS, each segment base64url without padding in its canonical form (RFC 4648 §3.5), whose payload is one JSON object, advertise is given a payload that is not a serialisable JSON object or that carries a refused member, or build is given an offer that is not an object.
ap2/legal-context-conflictadvertise finds a different legalContext already in the checkout payload.
ap2/legal-context-malformedThe agreement URL given to advertise is an https link over 2048 characters, or H is invalid, or the checkout payload's legalContext, as read, build or bound finds it, does not decode (a link that is not https included), or, as read finds it, has an agreement URL that is not an https link of at most 2048 characters or is given in both spellings with different values.
ap2/link-not-httpsThe link or agreement URL given to advertise is not an https link.
ap2/mandate-ambiguousThe resolved SD-JWT (the last hop of a chain) contains more than one object whose vct is mandate.checkout.1.
ap2/mandate-malformedThe Checkout Mandate is not a well-formed SD-JWT presentation (bad segments or disclosures, base64url not in its canonical form (RFC 4648 §3.5) included, a digest referenced twice, or a digest that names no three-element disclosure listed twice in _sd), or is a chain joined by ~~ with more than two hops or a hop that is not one, its checkout_hash is not 43 base64url characters, its checkout_jwt is present but not a string, the presentation given to bound is not an object, or checkoutJwtOf finds no disclosed checkout_jwt.
ap2/no-checkout-mandateThe resolved SD-JWT (the last hop of a chain) contains no object whose vct is mandate.checkout.1.
ap2/no-legal-contextThe checkout payload read by read, build or bound has no legalContext member.
ap2/option-malformedadvertise refuses an option that is not an object with exactly one member, checkout, a string of 1 to 256 characters; unplaced refuses an option that carries a refused member; and ap2/checkout-mandate/x402's reference refuses a payment method that is not {type: "x402", address, network}, the address 20 bytes in hex and the network 1 to 128 characters.
ap2/payment-malformedap2/checkout-mandate/x402's bound or reference finds that the x402 credential is not AP2's bundle: an object with a non-empty string payment_mandate_chain, a string payment_nonce, and an eip_3009_payload whose signature is a hex string of at most 8192 characters and whose authorization has exactly from and to (20-byte hex addresses), value, validAfter and validBefore (decimal integers) and nonce (64 hex digits, with or without 0x), each a string.
ap2/payment-not-boundap2/checkout-mandate/x402's bound finds that the x402 authorization's nonce is not keccak-256 of the UTF-8 text of the bundle's payment_mandate_chain, the check AP2's payment processor makes.
ap2/option-not-this-checkoutadvertise finds that the option's checkout is not the payload's id.
ap2/receipt-malformedA presentation carries a payment_receipt, the confirmation of funds sent in AP2's push funding, that is not a JSON object.
ap2/sd-alg-unsupportedThe _sd_alg of an SD-JWT of the Checkout Mandate presentation names a digest algorithm other than sha-256.
ap2/too-largeA checkout JWT, Checkout Mandate, checkout payload or x402 payment mandate chain exceeds 1 MiB or nests deeper than 64 levels, an SD-JWT of a mandate carries too many disclosures or nests them too deeply, a checkout id is longer than 256 characters, or an https link given to advertise or read from the checkout payload's legalContext is longer than 2048 characters.

ucp

UCP checkouts and bookings (@integraledger/lcp/ucp).

CodeMeaning
ucp/already-signedadvertise refuses a checkout that already carries ap2.merchant_authorization, because the link must be placed before the business signs.
ucp/ap2-not-activeAn AP2 Mandate pairing's read or build finds no ap2.merchant_authorization in the checkout in detached JWS form.
ucp/charge-reference-malformedreference of ucp/checkout/unsigned is given a value that is not an object whose charge, the seller's own reference for the charge, is 1 to 255 visible ASCII characters.
ucp/checkout-malformedThe checkout (or booking) is not a serialisable JSON object with a non-empty string id, its links is present but not an array, the checkout given to advertise carries a refused member, or the offer given to build is not an object.
ucp/content-digest-mismatchucp/checkout/agent-signed's bound finds that the Content-Digest value is not exactly sha-256=:, the standard base64 of the SHA-256 of the request body's UTF-8 bytes, and :, the comparison UCP's request verification makes.
ucp/hash-not-in-checkoutThe AP2 Mandate or agent-signed pairing's build finds that the checkout's legal_context link carries a hash other than H.
ucp/legal-context-conflictThe checkout has more than one legal_context link, read finds more than one legal_context_agreement link, or advertise finds an existing legal_context link whose values differ from the ones it would write, or, given an agreement URL, finds more than one legal_context_agreement link, one whose url differs from it, or an existing legal_context link with no agreement link.
ucp/legal-context-malformedThe legal_context link's title is not an ATR hash in LCP's string form or its url is not a usable https URL, read finds a legal_context_agreement link whose url is not a usable https URL of at most 2048 characters, or the agreement URL given to advertise is an https link over 2048 characters or the H given to it is invalid; or ucp/checkout/agent-signed's bound finds a request legal_context member that is not exactly {type: "sha256", value} with an ATR hash as value.
ucp/link-not-httpsThe link or agreement URL given to advertise is not an https link, or the url of the checkout's legal_context link, or the url of its legal_context_agreement link read by read, is an absolute URL whose scheme is not https.
ucp/no-legal-contextThe checkout has no links or no link whose type is legal_context, or the platform's request given to ucp/checkout/agent-signed's bound has no legal_context member.
ucp/not-buyer-signedbound of the unsigned checkout and booking pairings always refuses, because nothing the buyer signs carries the hash.
ucp/nothing-to-signbuild of the unsigned checkout and booking pairings always refuses, because the buyer signs nothing.
ucp/option-malformedadvertise, and reference of ucp/checkout/unsigned, refuse an option that is not an object with exactly one member, checkout or booking as the pairing requires, a string of 1 to 256 characters, and unplaced refuses an option that carries a refused member.
ucp/option-not-this-checkoutadvertise finds that the option names a checkout or booking other than the document's id.
ucp/request-malformeducp/checkout/agent-signed's bound is given a value that is not an object with a string body and a string contentDigest, or a body that is not one JSON object nesting at most 64 levels.
ucp/too-largeThe checkout exceeds 1 MiB as JSON or is nested more than 64 levels deep, its id exceeds 256 characters, its links holds, or after advertise would hold, more than 64 entries, or the legal_context link's url, or the link given to advertise, is an https URL over 2048 characters; or the request given to ucp/checkout/agent-signed's bound has a body over 1 MiB or a Content-Digest value over 2048 characters.

card

Visa TAP, Mastercard Agent Pay, Visa Intelligent Commerce, Mastercard Verifiable Intent and the plain card checkout (@integraledger/lcp/card).

CodeMeaning
card/charge-reference-malformedreference of card/seller-reference is given a value that is not an object whose charge, the seller's own reference for the charge, is 1 to 255 visible ASCII characters.
card/legal-context-malformedThe link or agreement URL given to advertise is an https link over 2048 characters, or H given to advertise or to the build of Visa TAP, Mastercard Agent Pay or Visa Intelligent Commerce is invalid, or a legalContext read from the shown JSON or a checkout_jwt does not decode (a link that is not https included), has a link over 2048 characters, or has an agreement URL that is not an https link of at most 2048 characters or is given in both spellings with different values.
card/link-not-httpsThe link or agreement URL given to advertise is not an https link.
card/no-legal-contextThe JSON the seller showed (for card/visa-tap, card/mastercard-agent-pay, card/visa-vic, card/seller-reference, and Verifiable Intent Immediate where the agent creates the checkout_jwt) or the payload of a checkout_jwt (for Verifiable Intent) has no legalContext member.
card/no-signed-placebuild and bound of card/seller-reference always refuse, because nothing the buyer signs carries the hash.
card/option-malformedadvertise refuses a card option that is not an object with a known scheme and a checkout of 1 to 128 visible ASCII characters, reference of card/seller-reference one whose scheme is not seller-reference, and unplaced refuses an option that carries a refused member.
card/tap-hash-conflictIn a TAP or Agent Pay request, two payment signatures carry different hashes, each read from the request's path where the signature covers a path ending in a hash, and otherwise from its nonce.
card/tap-hash-not-coveredA payment signature input in a TAP or Agent Pay request carries no hash: its nonce is not the base64 of 64 bytes, and it does not list @path without parameters on a path whose last segment is a hash.
card/tap-no-payer-signatureNo signature input in the request has a payment tag: agent-payer-auth for Visa TAP, Agent-pay-auth or agent-pay-auth for Mastercard Agent Pay.
card/tap-nonce-malformedA payment signature input's nonce parameter is not a String.
card/tap-path-malformedThe request path given to the TAP or Agent Pay bound is not a string of visible ASCII starting with /.
card/tap-signature-input-malformedThe TAP or Agent Pay bound refuses a presentation that is not an object, or a signatureInput that is not a string parsing as an RFC 9651 dictionary of signature inputs, a signature input naming both keyid and keyId among them.
card/tap-signature-malformedThe TAP or Agent Pay bound refuses a signature that is not a string parsing as an RFC 9651 dictionary of byte-sequence signatures.
card/tap-signature-missingNo payment signature input has a matching member in the Signature field.
card/too-largeA checkout_jwt exceeds 16384 characters, a checkout payload the Verifiable Intent build writes exceeds 11520 bytes of JSON, a Verifiable Intent layer exceeds 65536 characters or 32 disclosures, a decoded payload nests too deeply, a TAP or Agent Pay Signature-Input or Signature field exceeds 8192 characters, 16 members or 32 components, or its request path exceeds 2048 characters.
card/vi-checkout-hash-mismatchThe checkout mandate's checkout_hash is not the digest of its checkout_jwt.
card/vi-disclosure-unreferencedA Verifiable Intent layer carries a disclosure that no digest in its payload references.
card/vi-key-malformedIn autonomous mode, L2 does not delegate exactly one open checkout mandate whose cnf.jwk is an EC P-256 key with a string kid, L1's cnf.jwk is not an EC P-256 key, a key's x or y is not base64url without padding of 32 bytes in its canonical form (RFC 4648 §3.5), or a key cannot be imported for verification.
card/vi-kid-mismatchIn autonomous mode, the kid in L3b's header is not the kid of the agent key that L2 delegates.
card/vi-legal-context-conflictThe Verifiable Intent build finds that the hash in the checkout_jwt, or in the legal context the seller showed, is not H, or that the checkout payload it is given already holds another legalContext.
card/vic-reference-malformedThe Visa Intelligent Commerce bound refuses a presentation that is not an object, or a transactionReferenceId that is not 43 characters of base64url without padding of 32 bytes, in its canonical form (RFC 4648 §3.5).
card/vi-malformedA Verifiable Intent input is not what it must be: the presentation is not an object, a checkout choice given to the Immediate build has no object checkout, a layer or checkout_jwt is not a string, not a well-formed compact JWS or SD-JWT, each segment and disclosure base64url without padding in its canonical form (RFC 4648 §3.5), with a JSON object payload, has no disclosures or trailing ~, has an _sd_alg other than sha-256, or lacks a delegate_payload array of {"...": digest} entries.
card/vi-no-checkout-mandateA Verifiable Intent layer's delegate_payload does not reference exactly one mandate.checkout.1 mandate.
card/vi-sd-hash-mismatchIn autonomous mode, L3b's sd_hash is not the digest of L2, or L2's sd_hash is not the digest of L1.
card/vi-signature-invalidIn autonomous mode, L3b's ES256 signature does not verify under the key L2 delegates, or L2's under L1's cnf.jwk, or a signature is not 64 bytes of base64url.
card/vi-transaction-id-mismatchA mandate.payment.1 mandate in the same layer has no transaction_id, or one other than the digest of the checkout mandate's checkout_jwt.
card/vi-typA Verifiable Intent layer's header does not have alg ES256 and the expected typ, or (in autonomous mode) L3b's header has no string kid.

a2a

The A2A extension (@integraledger/lcp/a2a).

CodeMeaning
a2a/legal-context-conflictplace finds a different legal context already under the extension URI in the task's metadata.
a2a/legal-context-malformedplace refuses a task or metadata that is not an object, a task that carries a refused member, an invalid ATR hash, or an https link over 2048 characters; read refuses a value under the extension URI that does not decode as a legal context or whose link exceeds 2048 characters.
a2a/link-not-httpsThe link to the seller's copy given to place is not an https link, or the one found by read is an absolute URL whose scheme is not https.
a2a/no-legal-contextread finds no legal context under any extension URI in the task's metadata.
a2a/no-signed-placeThe exported binding value: A2A signs nothing per transaction, so it has no pairing; a caller asked for one can answer with this refusal.
a2a/too-largeThe legal context value written by place or found by read under the extension URI is larger than 4096 bytes of JSON, or is nested more than 64 levels deep.

evm

EVM chains: typed data, logs and the settlement read (@integraledger/lcp/evm, the EVM pairings of @integraledger/lcp/x402, @integraledger/lcp/x402-batch-settlement and @integraledger/lcp/mpp, and @integraledger/lcp/spend-permissions).

CodeMeaning
evm/ambiguousAn EVM recover finds more than one candidate hash in a transaction whose block is at or below the reader's finalized mark: several distinct AuthorizationUsed nonces, several distinct leaf salts, several ChannelCreated logs, in the batch pairing's refund-authorizer mode several deposit calls of the channel that differ in collector or value, several distinct PaymentInfo.salt words in the auth-capture escrow's events through the scheme's collector, or, on the Permit2 pairings, several calls of the scheme's x402 proxy, each with its token's Transfer from its owner in the receipt, that differ in nonce or owner.
evm/amount-malformedAn amount given to an EVM typed-data, digest or payment-hash helper is not an unsigned integer within its type's width (uint256, or uint120 for an escrow maxAmount).
evm/chain-mismatchThe signed EIP-1559 transaction given to the mpp/charge/evm/transaction build's complete is for a chain other than the challenge's methodDetails.chainId, which draft-evm-charge-00's transaction verification holds it to before it broadcasts.
evm/channel-id-mismatchbatchChannelCreated finds that the channel id computed from a ChannelCreated log's data is not the id in its topic. The x402/batch-settlement/eip155 recover answers such a log, read from the chain, evm/unreadable.
evm/field-malformedA value given to an EVM helper is not what the ABI or EIP-712 type requires: an address, uint256, bytes32, time bound or fee outside its width, a chain id given to paymentHash that is not a positive safe integer, an empty or oversized Permit2 batch, a Permit2 batch with no witness, a Permit2 witness that is not an object or whose type is not a valid type name, whose fields is not an array of objects with a string name and type, or whose value is not an object, a permission context or ChannelCreated log that does not decode strictly, a malformed channel config, or an argument to transferDigest or paymentHash that is not an object; or authorizationUsed is given a ref that is not an object or has no well-formed authorization, an authorizer that is not an address, or a block that is not a non-negative bigint.
evm/network-malformedA network is not an eip155:<chain id> CAIP-2 name, or a chain id given to permit2TypedData or batchChannelId is not a positive safe integer, or the argument to eip3009TypedData or permit2TypedData is not an object.
evm/no-authorization-useeip3009Recover finds no AuthorizationUsed log from the asset in a transaction whose block is at or below the reader's finalized mark; or the EVM batch pairing's recover, in the refund-authorizer mode, finds no AuthorizationUsed log from the channel's token for the payer and the nonce of its deposit call's ERC-3009 salt there.
evm/no-channel-createdThe EVM batch pairing's recover finds no ChannelCreated log from the batch-settlement contract in a transaction whose block is at or below the reader's finalized mark.
evm/no-deposit-callThe EVM batch pairing's recover, given an option in the scheme's refund-authorizer mode, finds that the channel's salt does not end in the option's refund authorizer, or no call of the channel contract's deposit with the channel's config through one of the scheme's two deposit collectors in the transaction's input, in a transaction whose block is at or below the reader's finalized mark.
evm/no-escrow-paymentThe auth-capture pairings' recover finds no PaymentAuthorized or PaymentCharged log from the escrow of the deployment the option names whose token collector is that deployment's collector for the pairing's scheme, in a transaction whose block is at or below the reader's finalized mark.
evm/no-leafx402/exact/eip155/erc7710-salt's recover finds no RedeemedDelegation log from the DelegationManager whose delegate is the redeemer or the wildcard, in a transaction whose block is at or below the reader's finalized mark.
evm/no-open-callThe mpp/session/evm recover finds that the transaction's own call is not an escrow open call (open, openWithAuthorization or openWithPermit2, with a recipient and the leading argument words), or that the receipt, in a block at or below the reader's finalized mark, holds no Transfer of the call's token from its payer into the called contract. An opening sent through an ERC-4337 EntryPoint, or whose calldata is longer than 131,072 bytes (go-ethereum's transaction pool maximum, the most the read decodes), is refused so: the calldata is the transaction's own, so every read gives the same.
evm/no-payer-depositThe EVM batch pairing's recover finds no transfer of the channel's deposit from its payer in a transaction whose block is at or below the reader's finalized mark: no Deposited of the channel, or no Transfer of its amount emitted by the channel's token from the channel's payer to the ERC-3009 deposit collector or to the channel contract.
evm/no-permit2-settleThe Permit2 pairings' recover, reading a transaction whose block is at or below the reader's finalized mark, finds no call of the scheme's x402 proxy (settle or settleWithPermit, with an address in the permit's token word and in the owner word) at any offset of the transaction's input with a Transfer in the receipt that the call's token emits from the call's owner. A transaction whose input carries the call but whose receipt holds no such Transfer is refused so, whether the owner's nonce was spent elsewhere in the block or cancelled by the owner.
evm/nonce-not-usedThe Permit2 pairings' recover, or the EVM batch pairing's in the refund-authorizer mode for its deposit call's permit nonce, finds that Permit2 did not mark the nonce used for its owner in the receipt's block, at or below the reader's finalized mark: the bit is unset at that block, or already set at the block before.
evm/not-finalRead to repeat. A transaction an EVM recover reads reverted, or its receipt, its calldata's settle call or Permit2's nonce bitmap does not show the one use the recovery reads, in a block above the reader's finalized mark or with a reader that cannot give that mark: a read to repeat, since that block can be replaced.
evm/not-foundRead to repeat. The reader found no receipt for the transaction the reference names, or, where an EVM recover reads the transaction itself, no transaction, or none for the transaction approvedIn of @integraledger/lcp/spend-permissions reads.
evm/revertedThe transaction an EVM recover reads reverted, in a block at or below the reader's finalized mark.
evm/unreadableRead to repeat. The reader threw, or returned a receipt, log, transaction or eth_call answer that is not well formed, when an EVM recover read the transaction or when authorizationUsed made its eth_call (an answer that is not one 32-byte word, or for eip3009 a word other than 0 or 1). For the auth-capture pairings' recover, a PaymentAuthorized or PaymentCharged log from the escrow whose data holds fewer than fourteen words is such a log. For the x402/batch-settlement/eip155 recover, a ChannelCreated log from the batch-settlement contract that batchChannelCreated refuses is such a log. approvedIn of @integraledger/lcp/spend-permissions gives it where the reader threw or answered a receipt or an isRevoked call out of its form.
evm/wrong-readerThe reader passed to an EVM recover, to authorizationUsed or to approvedIn of @integraledger/lcp/spend-permissions is missing or declares a different network than the reference or the return names, or the ref given to an EVM recover is not an object or names a transaction that is not a 32-byte hash, or, on the auth-capture pairings, an option that names no deployment of the escrow. An EVM status answers such a reader unreadable instead, chain-mismatch for a reader of another network and transport for one that is not an object, with nothing read.

tempo

Tempo: transactions, memos, channels and key authorizations (@integraledger/lcp/tempo, and the MPP Tempo pairings and keySearch in @integraledger/lcp/mpp).

CodeMeaning
tempo/ambiguousMore than one candidate carries the binding: several transferWithMemo calls to the challenge's currency whose memo is H in a Tempo split-memo payment, several KeyAuthorizationWitness logs, several accounts whose key authorization carried H, or ChannelOpened logs of the TIP-20 channel reserve giving more than one salt. A Tempo recover gives it only for a receipt in a block at or below the reader's finalized mark, and fetchPresented lands such logs only from one.
tempo/descriptor-mismatchA Tempo v2 session descriptor is missing or malformed (a non-address party, an invalid salt, nonce hash or chain), its channel id is not the payload's channelId, its operator is not the echoed challenge's methodDetails.operator (the zero address where the challenge names none), or its salt is not H, or, on an opening, its payee, operator, token or authorizedSigner is not that argument of the open call in the opening's transaction, its payer is not the address that signed the opening's transaction or its expiringNonceHash is not the expiring nonce hash of that transaction under that address. The opening's transaction is checked before its channelId and its descriptor, so a fault in the transaction gives that fault's code. The mpp/session/tempo build's voucher and complete give it for a v2 signed transaction whose sender is not the build's from, or whose open call names another payee, operator, token or authorizedSigner than the build's, which the descriptor of the credential complete would give names, as bound refuses that credential. Its buildWithin gives it for a within challenge under sessionProtocol v2 whose escrow, chain or operator, with the opening's descriptor, does not give the opening's channel id, or that is over a v1 opening, whose payments carry no descriptor, as channel.boundWithin refuses the payment it would build.
tempo/key-authorization-malformedA Tempo key authorization does not encode or decode as the bounded RLP structure (items, limits, scopes, witness and signature), or the subscription credential's signature is not a string, or, for the mpp/subscription/tempo reference, the authorization does not name exactly one token, as its limit and its allowed-call target, and exactly one recipient.
tempo/key-not-authorizedThe Tempo subscription's key authorization authorizes a key other than the echoed challenge's methodDetails.accessKey, by its key id or its key type, or names a chain id other than the challenge's methodDetails.chainId (bound, reference and channel.ref), or keySearch finds that the receipt has no KeyAuthorized log registering the reference's access key for the account whose key authorization carried H.
tempo/memo-not-boundThe Tempo split-memo payment's signed transaction has no transferWithMemo call to the challenge's currency whose memo is H.
tempo/no-access-keykeySearch is given a reference with no well-formed access key (key id, token and recipient digest).
tempo/no-witnessThe Tempo subscription's key authorization carries no witness, or a receipt holds no KeyAuthorizationWitness log (for witnessRecover, in a block at or below the reader's finalized mark, or naming H for keySearch).
tempo/not-finalRead to repeat. The transaction an MPP Tempo push hash credential names, or that a Tempo recover reads, reverted, or its receipt holds no single log the read takes H from (for the credential, a TransferWithMemo with the challenge's attribution memo; for a recover, a ChannelOpened salt or a KeyAuthorizationWitness log), in a block above the reader's finalized mark or with a reader that cannot give that mark: a read to repeat, since that block can be replaced.
tempo/not-foundRead to repeat. The reader found no receipt for the transaction.
tempo/open-ambiguousThe signed Tempo session opening has more than one open call to the challenge's escrow contract; the mpp/session/tempo build's voucher and complete refuse such a transaction so.
tempo/open-not-foundThe signed Tempo session opening has no open call to the challenge's escrow contract (and the mpp/session/tempo build's voucher and complete refuse such a transaction so), or the receipt the mpp/session/tempo recover reads, in a block at or below the reader's finalized mark, holds no ChannelOpened of the TIP-20 channel reserve, whose data carries the salt (a v1 escrow's ChannelOpened carries none).
tempo/read-firstbound or reference of mpp/charge/tempo/split-memo/push is given a credential fetchPresented has not read: it carries no landed transaction and signed bytes for the hash it names.
tempo/revertedThe transaction an MPP Tempo push hash credential names, or that a Tempo recover reads, reverted, in a block at or below the reader's finalized mark.
tempo/salt-not-boundThe salt word of the Tempo session opening's open call is not H; the mpp/session/tempo build's voucher and complete refuse such a transaction so.
tempo/source-not-senderA Tempo split-memo credential's source is present and does not name the transaction's sender as a did:pkh address.
tempo/tx-malformedA Tempo transaction does not decode as a type-0x76 RLP envelope with the expected fields and at most the allowed calls, the signed transaction of an mpp/session/tempo opening is for a chain other than the echoed challenge's methodDetails.chainId (where the challenge names none, 4217 on a v1 session), or the mpp/session/tempo build's voucher or complete is given a signed transaction whose credential, as complete would give it, bound refuses so (such as one that does not decode, an empty one among them, or is for a chain other than the chosen challenge's), memoCalldata is given an invalid recipient, amount or memo, expiringNonceHash is given a sender that is not an address, or a Tempo session opening's open call input has the wrong length or a payee, operator, token or signer word that is not an address, or its transaction's signature gives no sender (a keychain signature of type 0x03, which Tempo's transaction specification rejects from T1C onward ("Keychain"; "Transaction Validation", step 1) and Tempo's node refuses once T1C is active, as it is on chains 4217 and 42431 (tempoxyz/tempo 7d4fd03, crates/revm/src/handler.rs validate_version and crates/hardfork/src/constants.rs), a form other than the secp256k1, P256, WebAuthn and keychain signatures that specification lists, such as a 0x05 type byte, or a secp256k1 signature that does not recover with its s in the lower half of the order), or an entry of its transaction's aa_authorization_list is not a list of four items whose fourth, its signature, is a byte string, or is signed with a keychain signature of type 0x03, which Tempo's node refuses there as in the sender's signature once T1C is active (tempoxyz/tempo 7d4fd03, crates/primitives/src/transaction/tt_authorization.rs and crates/revm/src/handler.rs validate_version).
tempo/tx-too-largeA Tempo transaction's wire bytes exceed the size bound.
tempo/unreadableRead to repeat. The Tempo reader threw, the receipt or its logs are not well formed, or keySearch is given an invalid receipt, or finds a KeyAuthorizationWitness log naming H whose account topic is not a padded address.
tempo/witness-not-boundThe Tempo subscription's key authorization witness is not the hash the echoed challenge's id derives from.
tempo/wrong-readerThe Tempo reader is missing or answers for a different network than the challenge or reference names, or the ref given to a Tempo recover is not an object or names a transaction that is not a 32-byte hash.

svm

Solana (@integraledger/lcp/svm and the Solana pairings).

CodeMeaning
svm/bundle-emptyAn MPP Solana bundle credential's transactions is empty.
svm/carrier-mismatchThe option's extra.memo or the challenge's externalId is not H's LCP string when build is called, or the memo in the presented Solana transaction is not the option's extra.memo or the challenge's externalId.
svm/carrier-not-canonicalThe Solana memo carrying the ATR hash is an LCP string in a spelling other than toLcpString(h), lcp:sha256:0x and 64 lowercase hex digits.
svm/carrier-occupiedadvertise finds the option's extra.memo, or the MPP Solana challenge's externalId, already holding a value other than H's LCP string.
svm/channel-id-mismatchIn the SVM batch pairing, the voucher's channelId or the channel instruction's channel account is not the channel PDA derived from the payment's config.
svm/channel-instructionThe Solana transaction has more than one payment-channels instruction, or its one instruction has an unknown discriminator or the wrong accounts.
svm/errThe landed Solana transaction failed with an error, read at finalized: the one a recovery reads, or the one an MPP Solana signature credential names.
svm/input-malformedThe buyer's input to a Solana build, complete or message helper is not valid: a payer, key or blockhash that is not a base58 key (on the x402 batch-settlement pairing, also a payer authorizer that is not a point on the Ed25519 curve), a token program that is not Token or Token-2022 (on the x402 upto and batch-settlement pairings, not the option's own), an out-of-range amount, slot or compute budget, a memo to write that is not a well-formed string, a signature that is not 64 bytes or not for a required signer, or a number of signatures other than the request asked for; or an MPP Solana charge challenge (on usdc, its Solana profile), wherever it is checked (pairingsOf included), carries splits or a confidential transfer, which are not built, a transactionVersions that is present and is not a non-empty array of the integers 0 and 1, which admits neither message version (the draft field of tempoxyz/mpp-specs pull request 355), a recentBlockhash string that is not a key, or, for a mint, a decimals number that is not an integer from 0 to 255 or a tokenProgram string that is not Token or Token-2022; or an x402 Solana option (exact, upto and batch-settlement), wherever its pairing's filter is applied, carries extra.splits, which is not built; or an MPP Solana session challenge, wherever it is checked (place and pairingsOf included), has a malformed channel program, currency, recipient, recent blockhash or slot, or voucher signer.
svm/instruction-not-admittedAn x402/exact/solana payment's transaction holds an instruction the instruction layout of @x402/svm 2.31.0's exact facilitator does not admit under any configuration: a Memo v4 instruction, since every verify path of that facilitator requires exactly one Memo instruction of the program MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr, equal to extra.memo, and the pairing's carrier is one memo of either program, or, in a version-1 message, a Compute Budget instruction, whose budget the header carries. bound and reference refuse it.
svm/memo-countThe Solana transaction has no top-level Memo instruction or more than one (x402 exact and upto), or more than one Memo instruction carrying an LCP string (MPP). An x402 batch-settlement opening has other than exactly one binding memo and exactly one other Memo instruction; a binding memo is a Memo instruction whose data starts with x402's receiver-authorizer prefix x402:batch-settlement:svm:rcvauth:v1:.
svm/memo-not-lcpThe Solana transaction's one Memo instruction, or an x402 batch-settlement opening's Memo instruction beside its binding memo, does not carry an ATR hash in LCP string form.
svm/memo-not-utf8The data of the Solana transaction's one Memo instruction, or of an x402 batch-settlement opening's Memo instruction beside its binding memo, is not UTF-8.
svm/network-malformedA Solana network is not mainnet, devnet or localnet in an MPP challenge, or not a Solana CAIP-2 name in an x402 option.
svm/network-undeclaredThe MPP Solana challenge names localnet, which has no CAIP-2 network to read on.
svm/no-carrierThe Solana transaction presented for an MPP charge has no Memo instruction carrying an ATR hash in LCP string form.
svm/no-channel-instructionThe Solana transaction has no top-level payment-channels instruction.
svm/nonce-account-not-staticThe Solana message's first instruction is AdvanceNonceAccount and names its nonce account through an address lookup table: a durable message names its nonce account as a static key (SIMD-0242), and the message alone cannot show the nonce account a reference records.
svm/not-finalRead to repeat. The Solana transaction is found at confirmed and not at finalized, with an error or none: a recovery reads the carrier at finalized only, and a block that is not finalized can be replaced.
svm/not-foundRead to repeat. The Solana reader answers that the node holds no transaction for the signature (its not-found answer).
svm/open-not-foundThe MPP Solana session transaction has no single open instruction of the challenge's channel program with the required data and accounts, or the program key is invalid, or the open's channel (account 5) is past the keys read: openOf, which reads no table, reads the static keys, and the pairing reads the static keys and the addresses its message's lookups load (tables, which fetchPresented writes). The pairing checks the one open, and a channel index past every key the message can name, before it reads or resolves any address lookup table, so bound, reference and fetchPresented give this code whatever the lookups hold. buildWithin also refuses a client channel whose authorizedSigner (account 4) is past them. On mpp/subscription/solana, the activation holds no single subscribe instruction of the request's subscriptions program, whose accounts name the subscriber and the subscription: reference and channel.ref give it.
svm/open-not-operatorThe open of an MPP Solana session under the challenge that makes the server submit it (mpp/session/solana/memo) does not name the challenge's operator as its fee payer and rent payer, or names it as its payer; build gives it for a payer that is the operator.
svm/operated-voucherAn MPP Solana session challenge sets pullVoucherStrategy operatedVoucher: its stock opening is a token delegation, which deposits nothing and may broadcast nothing, so no opening can be read.
svm/pda-not-foundfindPda is given an invalid program key or too many or too long seeds, or no bump yields an off-curve address.
svm/peer-missingThe optional peer dependency @solana/kit cannot be loaded to build a Solana message. Each build gives it only after every input's form is checked, which needs no kit, so a malformed input gets the code it gets with the kit: mpp/charge/solana's build reads a blockhash the choice gives as a key (base58 of 32 bytes), as the kit's blockhash reads it, for a native SOL request as for a token one.
svm/read-firstAn MPP Solana signature credential carries no transaction under FETCHED, the member fetchPresented writes (its own transaction member is not read); or an MPP Solana session opening whose message has address table lookups carries no tables under FETCHED (a string-keyed tables is not read), or tables there that are not, for each lookup in order, its table's address with as many base58 keys as it names writable and read-only indexes (bound, reference, build's complete and buildWithin), once the opening's checks that read no account pass: the one open, its salt, the channelId and authentication. The seller reads it with fetchPresented before bound.
svm/transfer-hook-unresolvedThe x402/exact/solana build given a reader read a Token-2022 mint whose TransferHook extension names a program, and the hook's accounts do not resolve as the spl-transfer-hook interface states them: the program's validation account (its PDA of extra-account-metas and the mint) does not exist or holds no account list for Execute, an entry or a seed of that list does not decode, names an account index not resolved before it or reads bytes an account or Execute's data does not hold, an account a seed or a key reads does not exist, or an account resolved still signs, which needs a signature beyond the payer's and the fee payer's.
svm/tx-malformedA Solana transaction is not non-empty base64 of a well-formed unversioned or v0 wire transaction (signature count, header, keys, instructions and lookup tables consistent and fully consumed, and each lookup naming at least one index, as the runtime's sanitize requires) or v1 wire transaction (SIMD-0385's layout fully consumed, the signatures after the message, and the counts, indexes, addresses and TransactionConfigMask its sanitization admits, with no mask bit set that SIMD-0385 assigns no field), or an MPP bundle credential's transactions is not an array within the bound, or svmCarrier or channelInstruction is given a transaction that is not a decoded one.
svm/tx-too-largeA Solana transaction, or its base64 text, exceeds the wire size bound: 1,232 bytes for an unversioned or v0 transaction, 4,096 for a v1 transaction.
svm/unreadableRead to repeat. The Solana reader threw, gave an answer of neither documented shape (a landed transaction, or a not-found answer; to an account read, a bigint context slot and no account or an owner string and data bytes), or returned a landed transaction that is not well formed. A rejected account call is this code wherever it is read: fetchPresented gives it, and svmStatus, whose nonce account read or first-available-block read fails or answers out of its shape, answers unreadable, by the rejection's kind where the read fails and unparseable where it answers out of its shape.
svm/version-not-admittedA Solana payment's signed message is of a version its option does not admit: an x402 Solana option's extra.transactionVersions, or an MPP Solana charge challenge's methodDetails.transactionVersions, does not list it, the list absent being [0]. On x402 legacy is admitted where the list holds 0, as @x402/svm 2.31.0's facilitator reads it; on MPP no challenge admits a legacy message, which its server refuses whatever the list holds. A payment the option does not admit is no answer to it. bound and reference refuse it on x402/exact/solana, x402/upto/solana, x402/batch-settlement/solana, mpp/charge/solana, mpp/charge/solana/unsponsored and mpp/charge/usdc/solana.
svm/wrong-readerThe Solana reader answers for a different network than the reference or challenge names, or the reference given to a Solana recover names a transaction that is not a signature, base58 of 64 bytes.

stellar

Stellar (@integraledger/lcp/stellar, the pairing x402/exact/stellar/precondition in @integraledger/lcp/x402-exact-stellar, and the lcp method's Stellar request check in @integraledger/lcp/mpp).

CodeMeaning
stellar/amount-mismatchThe transfer of the buyer's simulated transaction is not for the option's amount exactly (x402/exact/stellar/precondition's build).
stellar/asset-mismatchThe transfer of the buyer's simulated transaction is not on the option's asset (x402/exact/stellar/precondition's build).
stellar/carrier-mismatchA signed-payload precondition does not carry H as the form writes it: its payload is not exactly 40 bytes, its last 8 bytes are not the nonce of the buyer's authorization entry, or its key is not one whose signature that entry carries (x402/exact/stellar/precondition's bound and reference, readSignedPayload, stellarRecover); or signedPayload is given a value outside the int64 range.
stellar/event-malformedtransferEventOf is given topics or data that are not padded standard base64 in its canonical form (RFC 4648 §3.5), that do not decode as a Stellar Asset Contract transfer, burn or mint event with its addresses and an i128 amount, or that nest vectors and maps deeper than SCVAL_MAX_DEPTH.
stellar/network-malformedA Stellar network is not stellar:pubnet or stellar:testnet.
stellar/no-address-authThe payer's authorization entry cannot be identified: the operation does not carry exactly one address-credential authorization entry for the transfer's from (decodeStellarTx, and x402/exact/stellar/precondition's build, bound and reference), or the payer, the transfer's from, is not an Ed25519 account (build, bound and reference). An entry with source-account credentials is not an address entry.
stellar/no-carrierThe transaction's preconditions hold no signed-payload signer, or more than one (x402/exact/stellar/precondition's bound and reference, stellarRecover).
stellar/not-foundRead to repeat. stellarRecover: the reader does not know the transaction.
stellar/not-one-transferThe Stellar envelope does not hold exactly one invokeHostFunction operation calling a SEP-41 transfer(from, to, amount), the payer's signed root invocation is not one such transfer with no sub-invocations, or the operation does not invoke exactly what the payer signed.
stellar/option-malformedAn x402/exact/stellar/precondition option's payTo is a muxed account (the pairing's option filter), muxedFor is given a payee that is not a G… account, or transferEventTopics is given a buyer that is neither an account nor a contract; or a challenge of the lcp method on its stellar rail has a request or methodDetails member its closed schema does not list, an amount that is not a decimal below 2^127, a currency that is not a C… strkey, a recipient that is not a plain G… account strkey, a description or externalId that is not a string, or a feePayer other than false.
stellar/payee-mismatchThe transfer's from is the option's payTo (x402/exact/stellar/precondition's build, bound and reference), or the to of the buyer's simulated transfer is not the option's payTo (build).
stellar/payer-mismatchThe buyer build is given is not an account strkey, or is not the from of the simulated transfer (x402/exact/stellar/precondition's build).
stellar/peer-missingThe optional peer dependency @stellar/stellar-sdk cannot be loaded, and the call reads or writes a Stellar transaction's or event's XDR. Strkeys (G…, C… and M…) are read and written without the SDK, so x402/exact/stellar/precondition's option filter, pairingOf, read, advertise and unplaced, the lcp method's Stellar request check in pairingsOf, and muxedFor never give it. The pairing's build gives it after H, the current ledger, the payer's strkey, the document and the option, and the simulated envelope's size, base64, XDR union tags and expiration ledger are checked; its bound and reference after the payment's version, its option, its payload and the envelope's size, base64 and union tags; decodeStellarTx after the network and the envelope's size, base64 and the XDR union tags read at fixed places (the envelope's, and a fee bump's fee source and inner envelope); transferEventTopics after a buyer that is not an account or contract strkey; transferEventOf after the topics' and the value's form; and stellarRecover after its input, its reader and the read of the transaction: those checks need no SDK and give the codes they give with it. stellarStatus and stellarLocate return no refusal: the search needs the SDK to write its event filter, so without it stellarLocate answers unreadable unparseable before any read, and stellarStatus answers state unreadable, reason unparseable.
stellar/position-malformedA Stellar position is not a decimal string below 2^64 with no sign and no leading zero, its low 12 bits are not zero, or its application order is 0 (parseStellarPosition, muxedFor); or stellarPosition is given a ledger that is not a ledger sequence or an order outside 1 to 2^20 − 1.
stellar/tx-malformedA Stellar transaction envelope is not strict base64 of a v1 envelope XDR, or of a fee bump holding one, that decodes whole; its operation or the payer's authorization entry nests ScVals or invocations deeper than SCVAL_MAX_DEPTH; or x402/exact/stellar/precondition's build is given a current ledger that is not a ledger sequence (an integer from 0 to 2^32 − 1), no simulated transaction, a simulated transaction that is a fee bump or already holds an extra signer, or a current ledger and option timeout that put the expiration ledger past 2^32 − 1, or its complete is given signatures that are not two 64-byte values.
stellar/tx-too-largeA Stellar transaction envelope's base64 text exceeds the size bound, 8192 characters; the complete of x402/exact/stellar/precondition's build refuses the signed envelope it would write when it does, as bound refuses it.
stellar/unreadableRead to repeat. stellarRecover: the read did not complete, or answered out of the reader's form.
stellar/wrong-readerstellarRecover is given an input that is not one, a transaction id that is not 64 hex digits, or a reader whose network passphrase is not the input's network's.

xrpl

The XRP Ledger (@integraledger/lcp/xrpl and the XRPL pairings).

CodeMeaning
xrpl/blob-malformedAn XRPL signed blob is not a string of hex, holds a field deeper than XRPL_MAX_DEPTH (10 levels, as rippled 3.4.1's STVar.cpp L104-108 counts them; checked before it is decoded) or an end marker in an object or array it does not close (as rippled 3.4.1's STObject.cpp L240-244 and STArray.cpp L54-58 refuse it), does not decode, is not the canonical serialization of what it decodes to, lacks TransactionType or Account, or a credential or complete call carries no string blob.
xrpl/blob-too-largeAn XRPL signed blob exceeds 32,768 hex characters (XRPL_MAX_BLOB_BYTES, 16,384 bytes), or the blob of an mpp/charge/xrpl transaction credential exceeds 8,192 hex characters (4,096 bytes), the bound of the stock server's schema, refused before anything moves; that pairing's build's complete refuses such a blob so, as bound refuses it, once the credential is within the credential size bound.
xrpl/carrier-mismatchThe option's extra.invoiceId or the challenge's invoiceId is not the one derived from H when build is called, or the signed Payment's InvoiceID is not the one the option or challenge names.
xrpl/carrier-not-lcpThe x402 XRPL option's extra.invoiceId is not an ATR hash in LCP string form.
xrpl/carrier-occupiedadvertise finds the option's extra.invoiceId, or the MPP challenge's invoiceId, already holding a value other than the one derived from H.
xrpl/currency-not-xrpAn MPP XRPL session challenge names a currency other than XRP, or an x402/upto/xrpl option, upto on an XRPL network, names an asset other than XRP, a payment channel holding XRP alone.
xrpl/memo-countThe XRPL session opening carries more than 8 memos, or more than one memo carrying an LCP string (bound, reference, and channel.ref of the opening).
xrpl/network-malformedThe MPP XRPL challenge's methodDetails.network is not one of the XRPL network names this package maps.
xrpl/network-mismatchThe signed blob of an x402/exact/xrpl payment, an mpp/charge/xrpl credential or an mpp/session/xrpl opening (to channel.ref too), or one given to their build's complete, carries a NetworkID a node of the option's or challenge's network does not take, as rippled 3.4.1's preflight0 reads it (src/libxrpl/tx/Transactor.cpp L73-93): a network whose id is at most 1024, as each network the MPP pairings name is, takes no NetworkID, and one above 1024 takes its own id only.
xrpl/network-missingThe MPP XRPL challenge's methodDetails names no network, which has no default.
xrpl/no-invoice-idThe XRPL Payment carries no InvoiceID, or the validated transaction a recovery reads has no 256-bit InvoiceID.
xrpl/no-memoThe XRPL session opening carries no memo whose MemoData is an ATR hash in LCP string form (bound, reference, and channel.ref of the opening).
xrpl/not-channel-createThe XRPL session opening or the transaction a recovery reads is not a PaymentChannelCreate, or the opening channel.ref or buildWithin reads lacks the source, destination or sequence its channel id is derived from.
xrpl/not-foundRead to repeat. The XRPL reader found no transaction for the reference.
xrpl/not-paymentThe XRPL signed blob presented for a charge is not a Payment.
xrpl/not-successThe validated XRPL transaction a recovery reads has a result other than tesSUCCESS, or is not the Payment a charge's recovery reads; or the one an MPP XRPL hash credential names has a result other than tesSUCCESS.
xrpl/not-validatedRead to repeat. The XRPL transaction the reference, or an MPP XRPL hash credential, names is not yet in a validated ledger.
xrpl/peer-missingThe optional peer dependency ripple-binary-codec cannot be loaded to decode a blob. decodeBlob gives it after the blob's hex and size are checked, x402 bound and reference after the option's invoiceId is read, and the session's buildWithin after H, the cumulative amount and the action are checked: those checks need no codec and give the codes they give with it.
xrpl/read-firstAn MPP XRPL hash credential carries no blob under FETCHED, the member fetchPresented writes (its own blob member is not read); the seller reads it by hash with fetchPresented before bound.
xrpl/unreadableRead to repeat. The XRPL reader threw or returned a response that is not well formed, or, to the MPP XRPL session's recover, returned a signed blob that is not the validated transaction's: one that does not decode, whose hash is not the transaction's, or whose TransactionType is not the one the validated answer gives.
xrpl/wrong-readerThe XRPL reader answers for a different network than the reference or challenge names, or the reference given to recover names a transaction that is not 64 hex digits.

hedera

Hedera (@integraledger/lcp/hedera, and the MPP Hedera pairings and challenges in @integraledger/lcp/mpp).

CodeMeaning
hedera/deprecated-fieldsA Hedera Transaction uses the deprecated fields 2 to 4, or a Transaction inside a TransactionList the deprecated fields 1 to 4, instead of signedTransactionBytes (a top-level field 1 is read as a TransactionList).
hedera/executor-malformedThe transfer-executor payload given to complete or presented is not an object with entity payer and executor and a hex authorization within the bound.
hedera/executor-not-offeredThe transfer-executor payload given to complete names an executor the option does not list; bound and reference do not check it.
hedera/expiredIn validate of mpp/charge/lcp/hedera, the signed body's valid start plus its valid duration is earlier than the clock reading the caller gives: the network no longer takes it.
hedera/list-inconsistentThe bodies of a Hedera TransactionList are not all equal to the first in every field but its node account.
hedera/memo-not-lcpThe Hedera memo is not byte for byte an ATR hash's LCP string, lcp:sha256:0x and 64 lowercase hex digits (a memo with an uppercase digit among them), or the memo of the landed transaction a recovery reads is not UTF-8 (a signed body whose memo is not UTF-8 is hedera/tx-malformed).
hedera/network-malformedA challenge of the lcp method on its hedera rail has a methodDetails.network that is not hedera:mainnet, hedera:testnet, hedera:previewnet or hedera:devnet.
hedera/no-legal-contextThe transfer-executor pairing's bound finds no decodable extensions.legalContext.info echoed in the payment.
hedera/no-memoThe signed Hedera body, or the landed transaction a recovery reads, has an empty memo.
hedera/not-foundRead to repeat. The Hedera reader found no transaction, or the transaction an x402 Hedera recovery or an MPP Hedera hash charge credential names has no counted user entry yet, or the reader found no receipt for the session transaction.
hedera/not-successThe transaction an x402 Hedera recovery reads, or an MPP Hedera hash charge credential names, reached consensus with no SUCCESS among its counted user entries, so its transfers were not made.
hedera/option-malformedA Hedera option names an unknown transfer method or lacks what its pairing needs (an asset and payTo, a feePayer, 1 to the allowed number of executors, or an amount that is the canonical decimal string of a positive integer below 2^63 and a timeout that is a positive safe integer), the buyer's choice is not an object or carries an invalid payer, node, valid start, fee or decimals, or a client id that is not a well-formed string, or a transfer-executor now that is not a non-negative safe integer or whose sum with maxTimeoutSeconds is not one, or a maxTimeoutSeconds whose sum with the time the transfer-executor reference runs is not a safe integer; or a challenge of the lcp method on its hedera rail has a request or methodDetails member its closed schema does not list, an amount that is not a decimal from 1 to 2^63 − 1, a currency or recipient that is not an entity id, a description or externalId that is not a string, a feePayer that is not a boolean, feePayer true without an entity feePayerAccountId, or feePayerAccountId without feePayer true.
hedera/payer-not-buyerThe signed Hedera body presented to the x402/exact/hedera reference debits the account its transaction id names, the fee payer's, which pays the fee and is never the buyer; or, on mpp/charge/lcp/hedera, the body's one debited account does not stand to the account its transaction id names as the challenge's feePayer states, in validate, reference and on what landed for a hash credential: where feePayer is true it is that account, and where it is not it is another; or build is given a payer that is the challenge's feePayerAccountId.
hedera/read-firstbound, validate or reference of mpp/charge/lcp/hedera is given a hash credential that does not carry, under FETCHED, the landed entry fetchPresented writes.
hedera/transaction-id-mismatchIn validate of mpp/charge/lcp/hedera, the challenge's feePayer is true and the transaction id, of the body or of the landed entry, does not name its feePayerAccountId, or the body's TransactionID is scheduled or has a nonce other than 0.
hedera/transfer-mismatchOn mpp/charge/lcp/hedera (validate, reference, and on what landed for a hash credential), the body is no crypto transfer, or its transfer is not exactly one debit and one credit in the challenge's currency, the credit of its recipient and both by its amount, spending no allowance, with a debited account other than the recipient; or build is given a payer that is the recipient.
hedera/tx-malformedA Hedera transaction is not base64 of a wire Transaction or TransactionList whose signed body decodes within the depth bound, with its node account and, where it has one, a crypto transfer of HBAR and token rows alone, a body presented to the x402/exact/hedera reference is no crypto transfer or its rows do not debit exactly one account, a signature pair given to complete has the wrong key or signature length, or a push credential's transactionId is not shard.realm.num@seconds.nanos.
hedera/tx-too-largeA Hedera transaction's wire bytes exceed the size bound.
hedera/unreadableRead to repeat. The Hedera reader failed or returned a response that is not well formed.
hedera/valid-durationA signed Hedera body's transactionValidDuration is above the chain's longest, transaction.maxValidDuration, 180 seconds: the network refuses it.
hedera/valid-start-futureThe valid start the buyer gives the x402/exact/hedera build is later than the time of the call, or a presented body's valid start is later than the time bound or reference checks it: the network takes no valid start later than its consensus time; or, in validate of mpp/charge/lcp/hedera, the body's valid start is later than the clock reading the caller gives.
hedera/wrong-readerThe input or reader cannot be read, with nothing read: the recover of x402/exact/hedera and mpp/charge/lcp/hedera is given an input that is not an object, a reader that is not one or is for another network than the input's, a tx that is not a Mirror Node transaction id (shard.realm.num-seconds-nanos, as reference writes it), or an option that is not an object; or the mpp/charge/lcp/hedera fetchPresented is given, for a hash credential, a reader that is not one or is for another network than the challenge's.

avm

Algorand (@integraledger/lcp/avm).

CodeMeaning
avm/clawbackThe Algorand payment transaction names an asset sender, asnd: a clawback by the asset's clawback address, which is not the payer's signed act.
avm/group-too-largeThe Algorand payment group is empty or larger than the group bound.
avm/index-out-of-rangeThe Algorand paymentIndex does not name a transaction in the payment group.
avm/logic-signatureA logic signature authorises the Algorand payment transaction: no key signs it, so it is not the payer's signed act.
avm/network-malformedAn Algorand option's network starts with algorand: but does not name a genesis hash in CAIP-2 form.
avm/network-mismatchThe suggested parameters' genesis hash given to build is not base64 of 32 bytes or is not the network the option names.
avm/not-axferThe Algorand payment transaction is not an asset transfer.
avm/not-foundRead to repeat. The Algorand reader found no transaction for the id.
avm/note-not-lcpThe Algorand transaction's note is not UTF-8 carrying an ATR hash in LCP string form.
avm/option-malformedAn Algorand option's extra is not an object or names a transfer method or flow this pairing does not pay, its asset, payTo or fee payer is invalid, or its amount is not the canonical decimal string of a positive integer below 2^64 or its timeout is invalid, or the buyer's payer or suggested parameters given to build are invalid, or the payment entry build would write from them is one the carrier refuses, its base64 longer than 8,192 characters included.
avm/peer-missingThe optional peer dependency algosdk, with which the Algorand pairing's build writes the transactions, cannot be loaded. Addresses and payment entries are read without it, so the option filter, pairingOf, read, advertise, bound, reference and avmCarrier never give it. build gives it only for a choice that passes every other check: H, the payer (58 characters of the base32 alphabet and the checksum) and the suggested parameters, the document and the option, and the genesis hash against the option's network. Each of those needs no algosdk and gives the code it gives with it.
avm/signature-malformedThe signature given to the Algorand complete is not 64 bytes.
avm/txn-malformedThe Algorand payload has no paymentGroup array, the payment entry is not base64 of one msgpack value within the caps, algod's decoder or the x402 facilitator's refuses it, algod reads a transaction type it does not know or a member of another type set, the two read different signed transactions, the facilitator can compute no transaction id for it, or its note exceeds the bound.
avm/unreadableRead to repeat. The Algorand reader threw or returned an answer that is not well formed.
avm/wrong-readerThe Algorand reader is missing or answers for a different network than the reference names, or the reference given to recover names a txid that is not the 52 base32 characters of a 32-byte hash.

aptos

Aptos (@integraledger/lcp/aptos). reference and build's complete read a transaction as decodeAptosTx does and give a fault in it the same code.

CodeMeaning
aptos/chain-mismatchThe presented Aptos transaction's chain id, or that of the transaction given to build's complete, is not the chain of the option's network.
aptos/network-malformedAn Aptos option's network starts with aptos: but is not followed by a decimal chain id from 1 to 255 with no leading zero.
aptos/not-an-x402-transferThe transaction given to decodeAptosTx is not a call to the framework primary_fungible_store::transfer or fungible_asset::transfer with one struct type argument and three arguments (two addresses and a u64 amount), or the committed transaction a reader returns is not a user transaction with an entry function payload whose sender, sequence number, expiry, function name, one type argument and three arguments (two addresses and a decimal u64 amount) can be read; committedInstrument does not check which function is called.
aptos/not-entry-functionThe Aptos transaction's payload is not an entry function call.
aptos/tx-malformeddecodeAptosTx is given text that is not base64 of an Aptos RawTransaction prefix (in BCS or x402's reference JSON form) that reads to the end of its fields, or a prefix with a module, function or struct name that is not an ASCII letter or underscore followed by up to 254 ASCII letters, digits and underscores (a leading U+FEFF included), or aptosIdDigest is given an instrument that is not an object whose sequence number is a bigint and whose type arguments and arguments are arrays.
aptos/tx-too-largedecodeAptosTx is given a transaction larger than the size bound.

cardano

Cardano (@integraledger/lcp/cardano).

CodeMeaning
cardano/ambiguousThe Cardano metadata holds label 674 more than once, label 674's map repeats a key, or its msg lines hold more than one line that reads as the LCP marker when case and a leading byte-order mark are ignored.
cardano/amount-below-flooradvertise on the Cardano address method is given a lovelace offer whose amount is below the agreement's floor, the ledger's smallest output to its payTo, evaluated from the coinsPerUtxoByte it is given.
cardano/aux-hash-mismatchThe Blake2b-256 of the Cardano transaction's auxiliary data is not the hash in its body.
cardano/aux-missingThe Cardano transaction's body has no auxiliary data hash (key 7), or it carries no auxiliary data.
cardano/floor-inputcardanoFloor is given an address that is not a Shelley address in Bech32, an asset that is neither lovelace nor <policy id>.<asset name> in hex, or a coinsPerUtxoByte that is not a positive bigint.
cardano/hash-not-carriedThe Cardano auxiliary data's label 674 msg lines carry no line that is exactly the lowercase LCP marker followed by a line of 64 lowercase hex digits.
cardano/network-malformedA Cardano option's network starts with cardano: or cip34: but is not one this package maps.
cardano/nonce-not-inputThe Cardano payment's nonce is not <transaction id>#<index> naming one of the inputs its body spends.
cardano/not-foundRead to repeat. The Cardano reader answers that the indexer does not hold the transaction (its not-found answer).
cardano/not-validThe Cardano transaction the reference names is on chain as invalid (its collateral was taken).
cardano/ttl-missingA Cardano lock's transaction sets no TTL, which x402's Cardano scheme requires of a lock.
cardano/tx-malformedA Cardano transaction, as base64 text or as the CBOR bytes a reader returns to cardanoRecover whose body has the id the reference names, is not one CBOR array [body, witness set, validity, auxiliary data] with a map body of unique unsigned keys, a valid TTL and a 32-byte auxiliary data hash. Or cardanoInputs is given bytes that are not one CBOR array of four items whose body is a map of unique unsigned keys holding at key 0 a set of inputs, each [32-byte id, index].
cardano/tx-too-largedecodeCardanoTx or cardanoInputs is given a transaction larger than the size bound.
cardano/unreadableRead to repeat. The Cardano reader threw, gave an answer of neither documented shape (a transaction, or a not-found answer), or returned a transaction with no CBOR bytes, more bytes than the size bound, or bytes that are not one CBOR array whose first item, the body, has the reference's id as its Blake2b-256, before any decoding refusal.
cardano/wrong-readerThe Cardano reader answers for a different network than the reference names, or the reference given to recover names a txId that is not a 32-byte hash.

casper

Casper (@integraledger/lcp/casper).

CodeMeaning
casper/address-malformedA from or to address given to cep3009TypedData or casperIdDigest, or the payer given to build, is not a valid Casper account or package address.
casper/amount-malformedA Casper amount is not a uint256.
casper/key-tag-mismatchThe public key and signature given to the Casper complete carry different algorithm tags.
casper/network-malformedA Casper network given to cep3009TypedData is not a Casper CAIP-2 name, or its argument is not an object.
casper/no-authorization-callThe executed Casper transaction holds no authorization call on the asset carrying a nonce.
casper/nonce-not-boundGiven the act and H, the presented Casper authorization's nonce is not the value that act carries: H for a payment, its agreement value for an agreement.
casper/not-executedRead to repeat. The Casper transaction the reference names has not executed.
casper/not-foundRead to repeat. The Casper reader found no transaction for the reference.
casper/option-malformedA Casper asset is not a contract package hash, the token name or version is not a valid name, validBefore is out of range, or the now given to build is not a non-negative safe integer.
casper/payload-malformedThe presented Casper payment carries a refused member, or is not x402 version 2, or its payload is not a string CEP-3009 authorization (hex nonce), a tagged public key and signature; or, for reference, its value is not a decimal uint256, its validAfter or validBefore not a decimal below 2^64, or its from or to not a Casper address; or H given to cep3009TypedData, build, bound or reference is not a valid ATR hash, or the act given is not payment or agreement.
casper/revertedThe Casper transaction executed with an error.
casper/signature-malformedThe public key or signature given to the Casper complete is not tagged hex of the allowed length.
casper/unreadableRead to repeat. The Casper reader threw or returned a call that is not well formed.
casper/wrong-readerThe Casper reader answers for a different network than the reference names, or the reference given to recover names a transaction that is not 64 hex digits or an asset that is not a package hash of 64 hex digits.

ccd

Concordium (@integraledger/lcp/ccd).

CodeMeaning
ccd/address-malformedA Concordium account address is missing, is not base58check of the account form, or its bytes are not 32 long.
ccd/memo-not-cbor-textThe Concordium memo is not exactly one CBOR text string within the memo bound.
ccd/memo-not-lcpThe Concordium memo's text is not an ATR hash in LCP string form with lowercase hex under the preferred encoding, or H given to build is not a valid ATR hash.
ccd/no-carrierThe finalized Concordium block item does not hold exactly one transfer whose memo carries an ATR hash as memoCarrier reads it.
ccd/no-memoThe Concordium transaction is a plain transfer with no memo, or its PLT transfer operation has no memo.
ccd/not-finalizedRead to repeat. The Concordium block item is not finalized.
ccd/not-foundRead to repeat. The Concordium reader found no block item for the reference.
ccd/not-v1The Concordium signed transaction's version is not 1.
ccd/operation-countThe Concordium PLT operations are not exactly one transfer operation.
ccd/operations-malformedThe Concordium PLT operations are not a CBOR list whose transfer carries a byte-string memo, a tagged 32-byte recipient account and a decimal-fraction amount.
ccd/option-malformedThe now given to the Concordium build is not a non-negative safe integer.
ccd/payload-kindThe Concordium transaction's payload is neither transferWithMemo nor a PLT tokenUpdate.
ccd/rejectedThe Concordium block item was rejected.
ccd/too-largeThe Concordium signed transaction, its memo or its token operations exceed the size bound.
ccd/transaction-malformedThe presented Concordium signed transaction is not a JSON value (x402's wire form, JSON.parse(Transaction.toJSONString(tx))), or not an object with a header and payload, a valid expiry, a decimal amount below 2^64 and hex memo or operations of the stated length, or an amount given to ccdIdDigest is out of range, or the value given to complete is not an object that serialises as JSON (the SDK's unserialized transaction, whose header holds bigints, is refused).
ccd/unreadableRead to repeat. The Concordium reader threw or returned a block item that is not well formed.
ccd/wrong-readerThe Concordium reader answers for a different network than the reference names, or the reference given to recover names a transaction that is not 64 hex digits.

near

NEAR (@integraledger/lcp/near, and chargeNearIntents in @integraledger/lcp/mpp).

CodeMeaning
near/actionsThe NEAR delegate action's count of actions is not one. The count is read after the sender and the receiver, which must be UTF-8 and NEAR account ids (one that is not is near/sda-malformed), and before the actions.
near/args-malformedThe ft_transfer arguments are over the size bound, not UTF-8 JSON, or not an object, or the token contract refuses them. bound, reference, nearCarrier and recover each read them as near-sdk does, with serde's derived reader over receiver_id: AccountId, amount: U128 and memo: Option<String>, which refuses them when their object names receiver_id, amount or memo more than once, each key read with its escapes decoded, or has a key that decodes to a lone surrogate, or their receiver_id is not a NEAR account id, or their amount is not a string of an optional + and one or more ASCII digits below 2^128, leading zeros allowed (Rust's u128::from_str). Any other key is ignored, however often it repeats. A memo that carries no hash keeps near/memo-missing or near/memo-not-lcp. recover recovers no hash from arguments the contract refuses, since it makes no transfer with them.
near/carrier-occupiedadvertise for the NEAR Intents charge finds the challenge's externalId already holding a value other than H's LCP string.
near/fixed-members-differadvertise for the NEAR Intents charge is given a quoted challenge whose bound members, read as unplaced gives them, differ from those of the challenge the ATR names, or is given no such challenge.
near/memo-missingThe ft_transfer arguments carry no string memo.
near/memo-not-lcpThe ft_transfer memo is not an ATR hash in LCP string form, or the NEAR Intents challenge's externalId is absent or a string that is not one.
near/network-malformedA NEAR option's network starts with near: but is not near:mainnet or near:testnet.
near/not-foundRead to repeat. The NEAR reader answers that it does not know the transaction recover reads.
near/not-ft-transferThe NEAR delegate action's one action is not a function call to ft_transfer (its variant index is any index other than FunctionCall's, or the call names another method), or the transaction a recovery reads carries no delegate action or its delegate calls another method.
near/not-hash-credentialThe NEAR Intents charge credential's payload type is not hash.
near/option-malformedA NEAR option's extra is not an object, its asset or payTo is not a NEAR account id, or its amount or maxTimeoutSeconds is not the canonical decimal string of a positive u128 amount or a positive safe integer timeout; or the payTo given to ftTransferArgs is not a NEAR account id, or its amount is not the u128 amount the option filter serves, the canonical decimal string of a positive integer below 2^128. A NEAR account id is what nearcore reads as an AccountId (near-account-id 3.0.0): 2 to 64 characters, each a lowercase ASCII letter, a digit, -, _ or ., where a separator (-, _ or .) is never first, never last, and never follows another.
near/peer-missingThe optional peer dependency borsh, with which the NEAR pairing reads and writes delegate actions, cannot be loaded. In x402 build, bound and reference it comes after the option filter, which needs no peer, so a choice or payment whose option the pairing does not serve gets the answer it gets with borsh. build checks H, then the choice's payer, key, nonce and height, before the document and before it, and nearCarrier the signed delegate action's type, size and base64: those checks need no peer and give the codes they give with it.
near/sda-malformedThe NEAR signed delegate action is not non-empty base64 of a canonical Borsh SignedDelegate, a string in it is not UTF-8, its signature or its key is neither Ed25519 nor secp256k1, or its signature is Ed25519 with a last byte of 0x20 or more, which nearcore does not read. The sender and the receiver are read first, and one that is not UTF-8, or not a NEAR account id, is refused here; then the count of actions and the action's variant index: a count other than one is near/actions, and any variant index other than FunctionCall's is near/not-ft-transfer, whatever bytes follow.
near/sda-too-largeThe NEAR signed delegate action's base64 text exceeds the size bound.
near/unreadableRead to repeat. The NEAR reader threw or returned an outcome that is not well formed (one whose delegate's sender or receiver, or a receipt's executor, is not a NEAR account id among them), or one whose delegate's arguments are not base64 in its canonical form.
near/wrong-readerThe NEAR reader answers for a different network than the reference names, or the reference given to recover names no transaction string.

polkadot

Polkadot Asset Hub (@integraledger/lcp/polkadot).

CodeMeaning
polkadot/address-malformedA Polkadot address is not an SS58 string of at most 64 characters that decodes to 35 bytes with a simple prefix and a valid checksum.
polkadot/address-not-idThe Polkadot extrinsic's signer is not a MultiAddress::Id of 32 bytes.
polkadot/call-not-profileThe Polkadot call is not exactly the profile's batchAll of transferKeepAlive then remarkWithEvent with a remark of the fixed length, or the presented call is not lowercase hex, or the recovered extrinsic does not end with that call after its signature.
polkadot/call-not-suffixThe signed Polkadot extrinsic does not end, after its signature, with the call it is checked against: the presented call for bound and reference, or the profile call build made for complete.
polkadot/extrinsic-malformedA Polkadot extrinsic is not lowercase hex whose compact length prefix matches its length.
polkadot/extrinsic-too-largeA Polkadot extrinsic, or the raw extrinsic a recovery reads, is longer than 4,096 bytes.
polkadot/network-unsupportedA Polkadot option's network starts with polkadot: but is not one this package supports.
polkadot/no-remarkThe Polkadot extrinsic polkadotRecover reads, in a block the finalized chain holds, did not dispatch successfully with a Remarked event for its remark.
polkadot/not-finalRead to repeat. The extrinsic polkadotRecover reads did not dispatch with the Remarked event for its remark, in a block above the finalized height: a read to repeat, since that block can be replaced.
polkadot/not-foundRead to repeat. The Polkadot reader holds no block for the timepoint given to polkadotRecover, or no record of the extrinsic at its index.
polkadot/not-locatedThe timepoint given to polkadotRecover names no extrinsic: its block holds none at that index, or the finalized chain holds another block at that height without the same extrinsic at that index. polkadotStatus reads the payment by the signer's account nonce, not by a timepoint.
polkadot/not-signed-v4The Polkadot extrinsic is not a signed version 4 extrinsic.
polkadot/option-malformedA Polkadot option does not name the lcp-assets-remark transfer method, names another flow, or has an invalid asset id, amount or timeout (a positive safe integer of at most 3600 seconds), or the choice given to build is not an object.
polkadot/remark-not-lcpThe Polkadot remark is not exactly an ATR hash's LCP string form with lowercase hex, byte for byte.
polkadot/signature-malformedThe Polkadot extrinsic's MultiSignature has an unknown variant or runs past the end.
polkadot/unreadableRead to repeat. The Polkadot reader threw, or answered out of its documented form: to polkadotRecover, block extrinsics that are not an array, an entry there that is not a hex string, a record that is not an extrinsic's, raw bytes whose BLAKE2b-256 is not the hash of the chain's record of them, or a finalized height that is not a bigint.
polkadot/wrong-readerThe Polkadot reader is missing or answers for a different network than the reference names, or the reference given to polkadotLocate has an extrinsicHash that is not 0x and 64 hex digits, or the reference given to polkadotRecover names a transaction that is not a <block hash>-<index> timepoint.

starknet

Starknet (@integraledger/lcp/starknet).

CodeMeaning
starknet/ambiguousThe Starknet transaction starknetLandedNonce or recover reads, accepted on L2 or L1, holds matching transfers with more than one nonce.
starknet/caller-forbiddenThe Starknet option's fee payer is zero or the any-caller value, or the paying account is the fee payer itself.
starknet/caller-not-fee-payerThe presented Starknet outside execution's Caller is not the option's extra.feePayer.
starknet/felt-malformedA Starknet fee payer, asset, payTo, nonce, payer account or from is not a valid felt.
starknet/network-malformedA Starknet network is not one of the Starknet networks this package supports, or the argument to outsideExecution is not an object.
starknet/no-legal-contextThe Starknet payment echoes no decodable extensions.legalContext.info.
starknet/no-transferThe Starknet transaction starknetLandedNonce reads, accepted on L2 or L1, holds no transfer call on the asset with this payment's identity below an execute_from_outside_v2, within 16 levels and 512 invocations; or, for recover, no execute_from_outside_v2 whose calls reach a transfer on the option's asset.
starknet/nonce-not-boundThe Starknet signed Nonce is not the low 250 bits of the echoed hash, or, given the act and H, of the value that act carries: H for a payment, its agreement value for an agreement.
starknet/not-finalRead to repeat. The Starknet transaction starknetLandedNonce or recover reads is PRE_CONFIRMED and reverted or holds no single matching transfer: a read to repeat, since a pre-confirmed block can change.
starknet/not-foundRead to repeat. The Starknet reader found no receipt for the transaction the reference names.
starknet/option-malformedA Starknet option has no extra object, or its amount is not the canonical decimal string of a positive u256 or its timeout is not a positive safe integer, or the buyer's choice given to build is not an object or has an invalid now, or an amount or deadline given to a typed-data helper is out of range.
starknet/revertedThe Starknet transaction starknetLandedNonce or recover reads, accepted on L2 or L1, reverted.
starknet/selector-not-transferA call of the presented Starknet outside execution has a Selector other than transfer's.
starknet/signature-malformedThe signature given to the Starknet complete is not 1 to the allowed number of valid felts.
starknet/typed-data-malformedThe presented Starknet outsideExecution.typedData is not an OutsideExecution under domain Account.execute_from_outside version 2 revision 1 on the option's chain with a felt Nonce and Caller and a Calls array of one or more calls each with a felt Selector, or exceeds 16 KiB as JSON or nests more than 64 levels; or, for reference, a call's To or Calldata is not felts, or its Execute After or Execute Before is not a decimal or a felt below 2^64, Execute Before also a safe integer.
starknet/unreadableRead to repeat. The Starknet reader starknetLandedNonce or recover reads through threw, or returned a receipt or events that are not well formed, or a trace that is missing or holds an invocation that is not well formed.
starknet/wrong-readerThe Starknet reader answers for a different network than the reference or the recover input names, or the reference given to starknetLandedNonce has a transaction or asset that is not a felt or an idDigest that is not a 32-byte hash, or the recover input's tx or option's asset is not a felt.

sui

Sui (@integraledger/lcp/sui).

CodeMeaning
sui/abortedThe Sui transaction the reference names executed with status FAILURE.
sui/ambiguousThe Sui transaction has more than one unused Pure input.
sui/floor-inputsuiFloor is given a gas path that is not buyer, sponsored or gasless, or, on the gasless path, a smallestTransfer that is not a non-negative bigint.
sui/hash-not-carriedThe Sui transaction has no unused Pure input, or its one unused Pure input is not 32 bytes.
sui/network-malformedA Sui option's network starts with sui: but is not sui:mainnet, sui:testnet or sui:devnet.
sui/not-as-sentx402 complete is given, on an option with extra.gasStation, no transaction the client sent to the gas station, or a signed transaction that differs from the one sent in its sender, its kind (inputs and commands) or its expiration; only the gas data may differ.
sui/not-foundRead to repeat. The Sui reader found no transaction for the digest.
sui/not-programmableThe Sui TransactionData V1 given to decodeSuiTx, or read by suiRecover under the reference's digest, has a kind that is not ProgrammableTransaction; a TransactionData of another version does not decode, and is sui/tx-malformed.
sui/peer-missingThe optional peer dependency @mysten/sui, with which the Sui pairing reads and writes transaction bytes, cannot be loaded. x402 build never gives it: it checks H, then the choice's document and option, and writes its request without the peer. Its complete, and x402 bound and reference, give it once they decode a signed transaction, after the option filter, which needs no peer, and the payload's form, so a choice or payment whose option the pairing does not serve gets the answer it gets with @mysten/sui, and complete refuses a transaction whose base64, size or tags fail as x402/signed-not-bound either way. decodeSuiTx gives it after the bytes' base64 and size and their version and kind tags are checked, which need no peer, so bytes that are not V1 are sui/tx-malformed, and a V1 transaction of another kind sui/not-programmable, either way. recover gives it for a transaction it reads whose bytes hash to the digest and that did not abort, after the ref, the reader and the read are checked, which need no peer. status returns no refusal: without @mysten/sui it reads as with it and gives its answers, and the transaction the digest names, whose bytes hash to the digest and that decodeSuiTx reads past its tags, is unreadable, unparseable; each such transaction of the sender's that the search passes is an item it could not decode, at which the search is held.
sui/tx-malformeddecodeSuiTx is given text that is not base64 of a canonical BCS TransactionData, or suiRecover reads, under the reference's digest, bytes that are not one; or either holds a programmable transaction with a type (a call's type argument, a vector's element type, a funds withdrawal's type) nested 16 levels deep, Sui's type depth limit, or a Pure input that is not valid base64 within the bound; or suiCarrier is given a transaction that is not a decoded one.
sui/tx-too-largedecodeSuiTx is given a transaction larger than the size bound.
sui/unreadableRead to repeat. The Sui reader failed, or returned a transaction whose digest is not the reference's.
sui/wrong-readerThe Sui reader answers for a different network than the reference names, or the reference given to recover names a digest that is not base58 of 32 bytes.

tron

Tron (@integraledger/lcp/tron).

CodeMeaning
tron/address-malformedA TRON address is not a base58check address: 34 base58 characters decoding to 25 bytes that begin with 0x41 and end with the first four bytes of SHA-256 twice over the other 21.
tron/contractsThe TRON raw data does not hold exactly one contract.
tron/fee-limitThe fee limit given to the TRON build is not a bigint from 1 to the maximum.
tron/memo-not-lcpThe TRON transaction's memo is not an ATR hash in LCP string form.
tron/network-malformedA TRON option's network is not tron: followed by a chain number.
tron/not-foundRead to repeat. The TRON reader found no transaction for the id.
tron/not-transferThe TRON contract's call data is not a TRC-20 transfer.
tron/not-triggerThe TRON contract is not a TriggerSmartContract.
tron/option-malformedA TRON option's amount is not the canonical decimal string of a positive uint256 or its maxTimeoutSeconds is not a positive safe integer of at most the allowed maximum.
tron/raw-not-canonicalThe TRON raw data does not re-encode to the bytes received.
tron/signature-malformedA TRON transaction carries no signature, too many, or one that is not 65 bytes, or the signature given to complete is not 65 bytes with a recovery byte of 0, 1, 27 or 28.
tron/tx-malformedA TRON transaction is not lowercase hex of a protobuf Transaction whose raw data decodes with in-range fields, or the reference block or time given to build is invalid, or tronCarrier is given a transaction that is not decodeTronTx's { raw, rawBytes }.
tron/tx-too-largeA TRON transaction's hex, or the raw data a recovery reads, exceeds the size bound.
tron/unreadableRead to repeat. The TRON reader threw or returned a transaction whose raw data is not hex, or whose raw bytes do not hash to the transaction id.
tron/wrong-readerThe TRON reader answers for a different network than the reference names, or the reference given to recover names a txid that is not a 32-byte hash.

tvm

TON (@integraledger/lcp/tvm).

CodeMeaning
tvm/actionsThe W5 request's action list is not exactly one send_msg action with no extended actions, or that action's send mode is other than 1 or 3, the two x402's TON scheme admits.
tvm/boc-malformedA TON bag of cells is not non-empty base64 of bytes TON deserializes to exactly one root of level 0 (its header, CRC32C and cell layout, and each cell's references, bits, level mask, stored hashes and depth as TON creates the cell), or the settlement message is not an internal message TON's action phase sends at the configuration lcp holds for the option's network, or for the network tvmCarrier is given, which for tvm:-239 and tvm:-3 alike is mainnet's (its source addr_none or an addr_std with no anycast, and its destination an addr_std, or an addr_var of 256 bits, with no anycast, each on workchain -1 or 0; its value's Grams and its extra_flags each a VarUInteger 16 in its shortest form, whose length's first byte is not zero; no extra currency; extra_flags of at most 3; a state init that is one StateInitWithLibs within 1,024 cell reads, each dictionary label at most as long as its key; a referenced body that is an ordinary cell with nothing after it; at most two Merkle proofs or updates nested under its init and body), or its action list is exotic.
tvm/boc-too-largeA TON bag of cells exceeds the byte, depth or cell-count bound.
tvm/carrier-mismatchThe option's extra.forwardPayload is not H's comment when build is called, or the presented Jetton transfer's forward payload is not the option's.
tvm/carrier-occupiedadvertise finds the option's extra.forwardPayload already holding a payload other than H's comment.
tvm/network-malformedA TON option's network is tvm: and not one of the two networks the pairing serves, tvm:-239 (mainnet) and tvm:-3 (testnet), or the network tvmCarrier is given is not one of them.
tvm/not-foundRead to repeat. The TON reader found no transaction for the reference.
tvm/not-jetton-transferThe W5 request's outgoing message is not an internal message TON's action phase sends, as tvm/boc-malformed reads the settlement message, with its source addr_none or the W5 wallet's own address, or its body is not a Jetton transfer, or the inbound body of the transaction tvmRecover reads is not a Jetton transfer.
tvm/not-w5-signedThe TON settlement message body is not one W5 runs as an internal_signed request: it is under 640 bits, or begins with another op, or its signed part, the body less its last 512 bits (the signature) with all its references, ends before the wallet id, valid_until, seqno, the action list's Maybe ^Cell and has_other_actions. Nothing after has_other_actions 0 is read, as W5 reads nothing there.
tvm/option-malformedA TON option's extra is not an object, or its asset, payTo, response destination or forward TON amount is invalid, or it does not set areFeesSponsored to true, or its amount is not "0" or the canonical decimal string of a positive integer below 2^120, or its timeout is invalid.
tvm/payload-not-lcpThe Jetton transfer carries no forward payload, or its forward payload is not a comment carrying an ATR hash in LCP string form.
tvm/peer-missingThe optional peer dependency @ton/core cannot be loaded, and the call decodes a TON cell or writes one. The x402 option filter reads the asset, payTo and response destination as raw addresses without it, so pairingOf and read never give it, and advertise, which writes H's comment's BoC itself, gives it only for an offer whose extra.forwardPayload holds a BoC whose bytes pass and are not those of H's comment as advertise writes it: only a decode compares that cell. A BoC's bytes are read without the peer: its base64, its size, its bag-of-cells layout (the header, the root index and each cell's span) and its CRC32C; its cells need the peer. So build gives it after H, the choice's members and a state init's bytes, the document and the option, the forward payload's bytes, the wallets' workchains, now with the option's timeout and the attached value; bound and reference after the payment, its option, the settlement BoC's bytes and the forward payload's bytes; tvmCarrier after the network and the BoC's bytes; recover for a transaction it reads whose inbound message body's bytes pass, after the ref, the reader and the read are checked, so an empty body, or one whose CRC32C does not match, is tvm/unreadable and one over 8 KiB tvm/boc-too-large, with the peer and without it; and lcpComment after H, as it returns the peer's cell. status returns no refusal and needs no @ton/core: it decodes the cells it reads itself and compares raw addresses itself, so it gives every answer it gives with it.
tvm/unreadableRead to repeat. The TON reader threw or returned a transaction that is not well formed, or whose inbound message body is not a bag of cells TON deserializes to one root, as tvm/boc-malformed reads one.
tvm/value-too-highThe TON build is asked to attach to the Jetton transfer is more than the option's forward TON amount plus 30,000,000 nanotons, the stock settler's cap (MAX_TVM_ATTACHED_ABOVE_FORWARD).
tvm/value-too-lowThe TON attached to the Jetton transfer is not more than the option's forward TON amount.
tvm/wrong-readerThe TON reader answers for a different network than the reference names, or the reference given to recover names no transaction string.

ln

Lightning: BOLT11 invoices and the Lightning pairings (@integraledger/lcp/lightning, and the Lightning challenge checks of @integraledger/lcp/mpp).

CodeMeaning
ln/amount-mismatchThe x402 Lightning option's invoice has no amount, or its amount in millisatoshis is not the option's amount.
ln/created-in-futureThe x402 Lightning build is given a validation time more than 60 s before the invoice's creation time.
ln/currency-networkThe invoice's currency is not the one the option's or challenge's network names, or the MPP challenge names a network MPP Lightning does not define (pairingsOf included); every Lightning pairing's bound and reference check the echoed option or challenge the same way, and the x402 Lightning pairing's read does not offer such an option.
ln/description-inlineThe MPP challenge's invoice, or the x402 Lightning option's invoice, carries an inline d description.
ln/description-presentThe MPP Lightning challenge's request carries a description.
ln/expires-after-invoiceThe MPP challenge's expires is later than the invoice's own expiry.
ln/expiry-mismatchThe x402 Lightning option's invoice's expiry is not the option's maxTimeoutSeconds.
ln/field-lengthinvoiceH finds that the invoice lists an h or m field whose bytes are absent or not 32 bytes: a decoded invoice's m of another length, or a hand-built Bolt11. A BOLT11 invoice whose h field is not 52 words (32 bytes) does not decode, and is ln/invoice-malformed.
ln/field-repeatedThe invoice carries more than one h field or more than one m field.
ln/invoice-expiredThe x402 Lightning build is given a validation time at or after the invoice's creation time plus its expiry.
ln/invoice-in-offerThe offer the x402 Lightning pairing's advertiseBeforeCarrier places carries extra.invoice, which the seller's node issues only after the agreement.
ln/invoice-malformedA BOLT11 invoice is missing or not a string, mixes case, or does not decode (bech32 checksum, prefix, field lengths, exactly one payment hash, expiry width), or invoiceH is given a decoded invoice that is not an object with a tags array; for the x402 Lightning option also an invoice without exactly one s field, with more than one n field or one that is not 53 words, or whose signature does not verify.
ln/invoice-too-largeA BOLT11 invoice exceeds 8 KiB or carries more tagged fields than the bound.
ln/no-description-hashThe x402 Lightning option's invoice, or a decoded invoice given to invoiceH for its h, has no h (description hash) field; on the MPP Lightning pairings such an invoice is mpp/carrier-not-challenge.
ln/no-metadataA decoded invoice given to invoiceH for its m has no m (metadata) field.
ln/no-payment-in-actionThe MPP Lightning session credential whose payment is being bound is not the open action, the only one that pays the invoice.
ln/payment-hash-mismatchThe invoice's payment hash is not the MPP challenge's paymentHash, or not the x402 Lightning option's extra.paymentHash.
ln/payment-hash-requiredAn MPP Lightning challenge carries no payment hash of 64 lowercase hex digits (in methodDetails.paymentHash for charge, paymentHash for session), the x402 Lightning option no extra.paymentHash of that form, or checkPreimage is given a payment hash not of that form.
ln/preimage-malformedThe preimage given to complete, presented in an x402 Lightning payment, or given to checkPreimage, is not 64 lowercase hex digits.
ln/preimage-mismatchThe preimage given to the x402 Lightning complete, presented in an x402 Lightning payment, or given to checkPreimage, does not hash by SHA-256 to the invoice's payment hash.
ln/request-binding-malformedThe x402 Lightning option's extra.requestBindingProfile is not http:1 or mcp:1, or its extra.requestBindingParams are not that profile's in the scheme's form; or the request given to build cannot be bound by the profile: a method that is not a token, a URL that is not an absolute http or https URL in ASCII without user information or fragment, a body that is not bytes or is over 1 MiB, a header record or a bound field's value outside the scheme's form, an empty tool name, arguments or _meta that are not a JSON object, or a value RFC 8785 cannot write.
ln/request-hash-mismatchThe option's extra.requestHash is not 64 lowercase hex digits, or the invoice's description hash is not that request hash; or the x402 Lightning build's own request hash of the buyer's request is not it, the request is not of the option's profile, its URL is not the document's resource.url (http:1), or its server is not the option's server (mcp:1).
ln/return-invoice-malformedThe MPP Lightning session build is given a return invoice that is not an amountless BOLT11 invoice.
ln/signer-not-payeeThe x402 Lightning option's invoice is signed by a key other than the option's payTo.
ln/time-malformedThe validation time given to the x402 Lightning build, or the time or clock-skew allowance given to validateExactLnbtc, is not a non-negative safe integer.

stacks

Stacks (@integraledger/lcp/stacks, and chargeUsdcStacks in @integraledger/lcp/mpp).

CodeMeaning
stacks/chain-mismatchThe usdc Stacks transaction is one a node of the challenge's network does not take: its chain id is not the challenge's chainId, or its version is not that network's, 0x00 on chain 1, mainnet, and 0x80 on any other, as stacks-core 4.0.5's transaction precheck refuses it (bound, reference, and build's complete). Chain 1 is read as mainnet by the CAIP-2 convention, under which stacks:1 is Stacks mainnet.
stacks/no-memoThe Stacks transaction is not a call to the reference's contract transfer, or its fourth argument is not (some <32 bytes>).
stacks/not-finalRead to repeat. The mined Stacks transaction a recovery reads failed in a block whose tenure is fewer than two below the tip's, or whose tenure cannot be read: a read to repeat, since that block can be replaced.
stacks/not-foundRead to repeat. The Stacks reader answers that the API does not know the transaction (its not-found answer) or that the transaction is unmined.
stacks/not-successThe mined Stacks transaction a recovery reads failed (abort_by_response, abort_by_post_condition or problematic_skipped) in a block whose tenure is at least two below the tip's.
stacks/unreadableRead to repeat. The Stacks reader threw or gave an answer of none of its documented shapes (a mined or unmined transaction, or a not-found answer), or a mined transaction whose status is none of success, abort_by_response, abort_by_post_condition and problematic_skipped.
stacks/wrong-readerThe Stacks reader answers for a different network than the reference names, or the reference or reader given to recover is not an object, or the reference names a transaction that is not a 32-byte hash.

return

The return after an agreement: the Legal-Context header and the charge options an agreement option serves.

CodeMeaning
return/header-malformedfromLegalContextHeader is given a value that is not an RFC 9651 Item whose token is H's LCP string in lowercase hex with no parameter but rv, a byte sequence of 32 bytes, its padding absent or present and bits past its last byte read as RFC 9651 section 4.2.7 reads them, the last rv given counting where it is repeated; or toLegalContextHeader is given an H that is not a 32-byte hash or a return value that is not 32 bytes.
return/serves-malformedservesOf is given a value that is not an object, an x402 option whose extra is not an object or whose extra.legalContextServes is not an array of 1 to 32 distinct names <slot>/<i>, the slot one of x402, mpp, ack, acp, ap2, card and ucp and i from 0 to 31 without a leading zero, or an MPP challenge whose opaque is not a map of strings or whose legalContextServes is not such names joined by one space; or, given the ATR's bytes, a name whose slot is not the ATR's binding slot or whose index is not below the number of charge options that slot holds, or bytes that are not a UTF-8 JSON object of at most 1 MiB.
return/not-this-salecheckLegalContextReturn is given a header whose H is not the H the resource server's record holds for the request, or a record whose H is not a 32-byte hash.
return/value-mismatchcheckLegalContextReturn is given a header whose return value is not the one the record holds, compared in constant time: an rv where the record holds none, none where it holds one, or another value; or a record whose return value is not 32 bytes.

spend-permissions

The Spend Permission exchange (@integraledger/lcp/spend-permissions).

CodeMeaning
spend-permissions/account-is-spenderbuild is given an account, or checkReturn a return whose permission's account, that is the permission's spender, the option's payee, whose approval proves no agreement.
spend-permissions/choice-malformedbuild is given a choice that is not an object or whose account is not an address, or checkReturn a clock that is not a non-negative safe integer.
spend-permissions/endedcheckReturn finds that the permission's end is not later than the clock it is given.
spend-permissions/header-malformedA Spend-Permission header's value, or a return given to encodeSpendPermissionHeader, checkReturn, approvedIn, bound, broadcaster or reference, is not base64url without padding in its canonical form of at most 65,536 bytes of well-formed UTF-8 of one JSON object, at most 64 levels deep, holding network, manager, the whole permission in the exchange's wire form and exactly one of signature and transaction (a 32-byte hash), and no other member, or carries a refused member; or approvedIn is given no transaction to read on the signature route; or permissionHash is given a permission, network or manager not in that form.
spend-permissions/legal-context-malformedadvertise refuses an invalid ATR hash or a link over 2048 characters; read, build, checkReturn, reference and unplaced refuse an offer with no legalContext, or one that is not {type: "sha256", value, legalContextUrl} with a 32-byte hash and an https link of at most 2048 characters.
spend-permissions/link-not-httpsThe link given to advertise is not an https link, or the offer's legalContextUrl is an absolute URL whose scheme is not https.
spend-permissions/not-approvedapprovedIn finds that the transaction it reads, whose receipt it holds, has no status 1 with the SpendPermissionManager's SpendPermissionApproved for the permission's hash and the permission whole, and that the manager does not read the permission revoked in the state after its block.
spend-permissions/not-boundThe permission's salt is not H: an offer whose salt differs from its legalContext.value, an offer given to advertise whose salt is not the H given, a build given an H that is not the offer's, or a bound or reference given an H the return's salt is not; or a return whose network, manager or offered permission members differ from the offer checkReturn or reference holds it to.
spend-permissions/option-malformedAn offer, or the 402 body that holds it, is not in the exchange's form: not an object, a member it does not name, a permission not in the wire form or holding account, accepts not a non-empty array of distinct routes, a body over 65,536 bytes as JSON or a body error that is not one of the exchange's codes; or the SpendPermissionManager refuses the permission: a zero token or spender, a zero period or allowance, or a start not before end; or unplaced is given an offer that carries a refused member; or issuedDigest is given a value that is none of an offer as advertise takes it, an offer as read takes it and a return as the Spend-Permission header carries it.
spend-permissions/revokedapprovedIn finds that the transaction it reads holds no approval of the permission and that the SpendPermissionManager reads the permission revoked in the state after its block.
spend-permissions/route-not-acceptedcheckReturn finds that the return takes a route, signature or transaction, that the offer's accepts does not name.
spend-permissions/signature-invalidA return's signature is not 0x and 1 to 8192 bytes of hex. The SpendPermissionManager verifies the signature itself when approveWithSignature is submitted.
Edit on GitHub

Last updated on

On this page