# Integra Protocol: Reference > The 5 pages of the section Reference of https://lcp.integraledger.com/llms.txt, in its order. They document @integraledger/lcp 0.6.3 and @integraledger/profile-facilitator 0.5.1. # Entry points > Every entry point of @integraledger/lcp and what it exports. Source: https://lcp.integraledger.com/reference/entry-points Updated 2026-11-20. Documents @integraledger/lcp 0.6.3 and @integraledger/profile-facilitator 0.5.1. This page is generated from the package by `node scripts/docs-reference.mjs`, and CI checks that it matches. Import each entry point by its subpath. Every entry point is ESM with its own type declarations. The [API reference](https://lcp.integraledger.com/reference/api.md) gives each export's signature, and its doc comment where it has one. | Entry point | What it holds | |---|---| | [`@integraledger/lcp`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcp) | The package root of `@integraledger/lcp`: the core functions of `@integraledger/lcp/core`, the registry of every pairing (`BINDINGS`, `pairingOf`) and its types, and the return after an agreement. | | [`@integraledger/lcp/a2a`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpa2a) | The LCP extension for A2A: the ATR hash and the link to the seller's copy delivered in a Task's `metadata`, keyed by the extension's URI. A2A signs nothing per transaction, so this is a carrier and exports no pairing. Pure; no I/O. | | [`@integraledger/lcp/ack`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpack) | ACK Payment Requests and receipts, and the pairing `ack/payment-request`: the ATR hash as the `id` of the seller-signed Payment Request, in LCP's string form, with the link beside the request in the 402 body. | | [`@integraledger/lcp/acp`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpacp) | ACP checkout sessions and delegate-payment allowances, and the pairings `acp/checkout/delegated` and `acp/checkout/undelegated`: the ATR hash as the checkout session's `id`. | | [`@integraledger/lcp/ap2`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpap2) | AP2 v0.2 checkouts and closed Checkout Mandates, and the `ap2/checkout-mandate` pairing: the ATR hash as the `legalContext` member of the merchant-signed `checkout_jwt` payload, which the buyer's closed Checkout Mandate commits to through `checkout_hash`. | | [`@integraledger/lcp/aptos`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpaptos) | Aptos, and the `x402/exact/aptos` pairing, served at the seller-tied level: no field of a standard Aptos transfer carries the ATR hash, so the hash is advertised in the challenge and tied to the payment by the seller's claim. | | [`@integraledger/lcp/avm`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpavm) | Algorand: the pairing `x402/exact/algorand`, in which the payer signs an asset transfer whose note is the ATR hash's LCP string, and the settlement read from an Indexer by the transaction id computed from the signed bytes. | | [`@integraledger/lcp/card`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpcard) | The `card` entry point: the ATR hash on a card checkout, on five paths: Visa TAP, Mastercard Agent Pay, Visa Intelligent Commerce, Mastercard Verifiable Intent (Immediate and Autonomous) and the plain card checkout. | | [`@integraledger/lcp/cardano`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpcardano) | Cardano, and its two pairings: `x402/exact/cardano`, x402's address-to-address method, and `x402/exact/cardano/lock`, its two lock methods (`masumi` and `script`). Each carries the ATR hash as a CIP-20 message that the payer's signed body commits to. | | [`@integraledger/lcp/casper`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpcasper) | CEP-3009 on Casper and the `x402/exact/casper` pairing: the ATR hash as the authorization's 32-byte `nonce`, written by the buyer's signer, read back from what the payer signed, and read from the executed call's arguments. | | [`@integraledger/lcp/ccd`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpccd) | Concordium and the `x402/exact/ccd` pairing: the ATR hash in LCP's string form, as a CBOR text string, in the memo of the one transfer the sender signs; read back from the signed transaction, and read from the finalized transfer event. | | [`@integraledger/lcp/core`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpcore) | The core alone: assembling an ATR and hashing its exact bytes, comparing hashes, the hash's forms, the https-link rule, the JSON and base64 forms they read and write, `isRefusal` and `readToRepeat`, with no pairing, rail or optional peer. | | [`@integraledger/lcp/discovery`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpdiscovery) | The discovery document of LCP §2, served at `/.well-known/legal-context.json`: `parse` reads one, and `emit` writes one. | | [`@integraledger/lcp/evm`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpevm) | eip155 rail pieces: EIP-3009 and Permit2 typed data, the settlement read from a token's events, the read of a signed pull authorization's use, ERC-7710 permission contexts, the commerce-payments escrow's pieces, and x402's Permit2 proxy addresses. | | [`@integraledger/lcp/hedera`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcphedera) | Hedera: the x402 pairings `x402/exact/hedera` (the ATR hash as the signed body memo) and `x402/exact/hedera/transfer-executor` (the hash advertised in the challenge only), with the transaction wire form and the Mirror Node settlement read. | | [`@integraledger/lcp/lightning`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcplightning) | BOLT11 invoices and the Lightning pairings: on x402 (`x402/exact/lnbtc/payment-hash`) the ATR commits the option's `extra.paymentHash`, and on MPP the seller's node writes the ATR hash as the invoice's description hash `h`. | | [`@integraledger/lcp/mpp`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpmpp) | The `mpp` entry point: MPP's challenge pieces, its three fields (`encodeChallenge` writes a `WWW-Authenticate` value, `encodeCredential` and `decodeCredential` write and read an `Authorization` value, `encodeReceipt` and `decodeReceipt` write and read a `Payment-Receipt` value) and its pairings: the EVM charges, defined here, and every other MPP charge, session and subscription pairing but Lightning's, re-exported from its module. | | [`@integraledger/lcp/near`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpnear) | NEAR: the pairing `x402/exact/near`. The payer signs a NEP-366 delegate action for one NEP-141 `ft_transfer` whose `memo` argument is the ATR hash's LCP string; a facilitator's relayer submits it. | | [`@integraledger/lcp/polkadot`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcppolkadot) | Polkadot Asset Hub: the profile pairing `x402/exact/polkadot/lcp-assets-remark`, in which the payer signs one extrinsic that transfers an asset and remarks the ATR hash's LCP string. | | [`@integraledger/lcp/spend-permissions`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpspend-permissions) | The Spend Permission exchange and the pairing `spend-permissions/eip155`: an account's approval, on the SpendPermissionManager, of a Spend Permission whose `salt` is the ATR hash, as the sale's agreement. | | [`@integraledger/lcp/stacks`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpstacks) | Stacks rail pieces: the transaction id, the reader a read goes through, the read of a payment by its origin and the nonce the origin signed, and the zero-party recovery of the ATR hash from a mined transaction. | | [`@integraledger/lcp/starknet`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpstarknet) | Starknet: the pairing `x402/exact/starknet`. The payer signs a SNIP-12 `OutsideExecution` (SNIP-9 v2) authorizing one token `transfer`; its `Nonce` is the ATR hash's low 250 bits, or on an agreement the agreement value's. | | [`@integraledger/lcp/stellar`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpstellar) | Stellar rail pieces: the payer-signed Soroban `transfer` and the digest of its authorization entry, the signed-payload precondition over H, the search for a buyer's acts, and the read of the agreement `x402/exact/stellar/precondition`. | | [`@integraledger/lcp/sui`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpsui) | Sui, and the `x402/exact/sui` pairing: the ATR hash as the one `Pure` input of the payer's programmable transaction that no command uses. | | [`@integraledger/lcp/svm`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpsvm) | Solana rail pieces: the wire transaction and its one Memo instruction carrying the ATR hash in LCP string form, the settlement read, and the payment-channels program's pieces. | | [`@integraledger/lcp/tempo`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcptempo) | Tempo rail pieces: the `0x76` transaction's calls, the TIP-20 `transferWithMemo` calldata, the TIP-20 channel reserve's descriptor and ids, and the account keychain's key authorizations. | | [`@integraledger/lcp/tron`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcptron) | Tron: the pairing `x402/exact/tron/lcp-trc20-memo`, whose payer-signed TRC-20 transfer carries the ATR hash as its memo, `raw_data.data`, in LCP string form, and the transaction pieces it uses. | | [`@integraledger/lcp/tvm`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcptvm) | TON: the pairing `x402/exact/tvm`. The ATR hash rides in the scheme's `extra.forwardPayload` as a TEP-74 text comment holding its LCP string. | | [`@integraledger/lcp/ucp`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpucp) | UCP checkouts and bookings, and five pairings, each of which carries the ATR hash and link as one `links[]` entry of type `legal_context` in the checkout response. | | [`@integraledger/lcp/x402`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpx402) | x402 v2 documents, the request commitment, and the x402 pairings on eip155 chains: `exact` over EIP-3009, Permit2 and ERC-7710 (with its salt level), `upto` over Permit2, `auth-capture` over EIP-3009 and Permit2, and `exact` in Circle Gateway's batched domain. | | [`@integraledger/lcp/x402-batch-settlement`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpx402-batch-settlement) | x402 `batch-settlement`: one ATR per channel, its hash the EVM channel configuration's `salt`, the Solana opening transaction's seller Memo instruction, or, on Cloudflare, the echoed `extensions.legalContext` of each request. | | [`@integraledger/lcp/x402-exact-solana`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpx402-exact-solana) | The `x402/exact/solana` pairing: the ATR hash placed as the option's `extra.memo` in LCP string form, written by the payer as the transaction's one Memo instruction, read back from the signed message, and read from the settlement. | | [`@integraledger/lcp/x402-exact-stellar`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpx402-exact-stellar) | Stellar on x402: the pairing `x402/exact/stellar/precondition` (`exactStellarPrecondition`), an agreement in which the buyer signs a Soroban authorization of `transfer(buyer, payTo, amount)` and a 40-byte payload of H and that authorization's nonce. | | [`@integraledger/lcp/x402-exact-xrpl`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpx402-exact-xrpl) | The `x402/exact/xrpl` pairing: the ATR hash's LCP string placed as the option's `extra.invoiceId`, whose SHA-256 the payer signs as the Payment's `InvoiceID`. | | [`@integraledger/lcp/x402-upto-solana`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpx402-upto-solana) | The `x402/upto/solana` pairing: the ATR hash placed as the option's `extra.memo` in LCP string form, written by the payer as the one Memo instruction of the transaction that opens a one-request payment channel. | | [`@integraledger/lcp/x402-upto-xrpl`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpx402-upto-xrpl) | The `x402/upto/xrpl` pairing: x402's `upto` scheme on the XRP Ledger, at coverage `none`, its payment following an agreement on the same network. | | [`@integraledger/lcp/xrpl`](https://lcp.integraledger.com/reference/entry-points.md#integraledgerlcpxrpl) | XRP Ledger rail pieces: the signed blob, its `InvoiceID` or memo carrying the ATR hash in each scheme's form, the transaction hash computed from the blob, the reads of a payment, an opening, a channel and a close through a bounded reader, and the payment channel's id and claim. | ## `@integraledger/lcp` The package root of `@integraledger/lcp`: the core functions of `@integraledger/lcp/core`, the registry of every pairing (`BINDINGS`, `pairingOf`) and its types, and the return after an agreement. ```ts no-check import { agreementValue, assemble, base64Bytes, … } from "@integraledger/lcp"; ``` **Values (52):** `agreementValue`, `assemble`, `base64Bytes`, `base64UrlBytes`, `BINDINGS`, `canonicalJson`, `challengeH`, `challengeHash`, `challengeId`, `checkLegalContextReturn`, `digestJson`, `domainToAscii`, `FETCHED`, `fromBase64`, `fromBase64Url`, `fromLcpString`, `fromLegalContext`, `fromLegalContextHeader`, `fromRawBytes`, `hash`, `hashEquals`, `isHttpsLink`, `isOtherSchemeLink`, `isRefusal`, `LEGAL_CONTEXT_HEADER`, `LEGAL_CONTEXT_META`, `LEGAL_CONTEXT_SERVES`, `MAX_ATR_BYTES`, `MAX_CHALLENGE_DEPTH`, `MAX_CHALLENGES`, `MAX_CREDENTIAL_BYTES`, `MAX_HEADER_BYTES`, `MAX_JSON_DEPTH`, `MAX_LINK_LENGTH`, `MAX_OPTIONS`, `MAX_REQUEST_BYTES`, `MAX_SIGNATURE_BYTES`, `MAX_SLOT_NAME_LENGTH`, `newAtrId`, `pairingOf`, `parseHost`, `parseJson`, `readToRepeat`, `readUrl`, `RETURN_VALUE_BYTES`, `servesOf`, `toBase64`, `toBase64Url`, `toLcpString`, `toLegalContext`, `toLegalContextHeader`, `toRawBytes`. **Types (74):** `Act`, `AgreementData`, `AptosPaymentPayload`, `AtrHash`, `Authorizer`, `AvmPaymentPayload`, `BatchPaymentPayload`, `Binding`, `Broadcaster`, `CardanoPaymentPayload`, `Carrier`, `CarrierAfterH`, `CasperPaymentPayload`, `CcdPaymentPayload`, `ChannelKind`, `CloudflarePaymentPayload`, `Codec`, `CoreRefusal`, `Coverage`, `DataMembers`, `EndpointKind`, `Entry`, `ExecutorPayload`, `ExecutorPaymentPayload`, `FailedReason`, `Family`, `FeeParty`, `FeePayer`, `ForeignItem`, `ForeignReason`, `HederaPayload`, `HederaPaymentPayload`, `IsNever`, `Json`, `LcpPattern`, `LegalContextRecord`, `LegalContextReturn`, `Life`, `Moved`, `MppBinding`, `Named`, `NearPayment`, `NoneWhereNever`, `NonZeroDigit`, `OptionData`, `OtherAct`, `PairingData`, `PairingId`, `PairingOn`, `PendingReason`, `PolkadotPayload`, `PolkadotPaymentPayload`, `Presented`, `PresentedOn`, `PushMode`, `ReadData`, `RecoverInput`, `Refusal`, `StarknetPayment`, `StatusAnswer`, `StatusQuery`, `StellarPaymentPayload`, `SuiPaymentPayload`, `Surface`, `SurfaceOf`, `SvmPaymentPayload`, `TronPayment`, `TvmPayment`, `UnreadableReason`, `UptoSvmPaymentPayload`, `UrlAuthority`, `X402Binding`, `X402Payment`, `XrplPaymentPayload`. ## `@integraledger/lcp/a2a` The LCP extension for A2A: the ATR hash and the link to the seller's copy delivered in a Task's `metadata`, keyed by the extension's URI. A2A signs nothing per transaction, so this is a carrier and exports no pairing. Pure; no I/O. ```ts no-check import { A2A_EXTENSION_URIS, agentExtension, binding, … } from "@integraledger/lcp/a2a"; ``` **Values (7):** `A2A_EXTENSION_URIS`, `agentExtension`, `binding`, `delivery`, `place`, `read`, `requested`. **Types (2):** `A2aAgentExtension`, `A2aTask`. ## `@integraledger/lcp/ack` ACK Payment Requests and receipts, and the pairing `ack/payment-request`: the ATR hash as the `id` of the seller-signed Payment Request, in LCP's string form, with the link beside the request in the 402 body. ```ts no-check import { fromReceipt, issuedDigest, paymentRequest, … } from "@integraledger/lcp/ack"; ``` **Pairings:** `ack/payment-request`. **Values (4):** `fromReceipt`, `issuedDigest`, `paymentRequest`, `tie`. **Types (4):** `AckBody`, `AckPaymentOption`, `AckValues`, `Broadcaster`. ## `@integraledger/lcp/acp` ACP checkout sessions and delegate-payment allowances, and the pairings `acp/checkout/delegated` and `acp/checkout/undelegated`: the ATR hash as the checkout session's `id`. ```ts no-check import { delegated, issuedDigest, METADATA_KEY, … } from "@integraledger/lcp/acp"; ``` **Pairings:** `acp/checkout/delegated`, `acp/checkout/undelegated`. **Values (5):** `delegated`, `issuedDigest`, `METADATA_KEY`, `tie`, `undelegated`. **Types (10):** `AcpBinding`, `AcpChoice`, `Allowance`, `Broadcaster`, `ChargePresented`, `ChargeRef`, `HandlerOption`, `Presented`, `Session`, `Unsigned`. ## `@integraledger/lcp/ap2` AP2 v0.2 checkouts and closed Checkout Mandates, and the `ap2/checkout-mandate` pairing: the ATR hash as the `legalContext` member of the merchant-signed `checkout_jwt` payload, which the buyer's closed Checkout Mandate commits to through `checkout_hash`. ```ts no-check import { CHECKOUT_VCT, checkoutBinding, checkoutJwtOf, … } from "@integraledger/lcp/ap2"; ``` **Pairings:** `ap2/checkout-mandate`, `ap2/checkout-mandate/x402`. **Values (10):** `CHECKOUT_VCT`, `checkoutBinding`, `checkoutJwtOf`, `checkoutMandate`, `checkoutMandateX402`, `issuedDigest`, `jwsPayload`, `readMandate`, `tie`, `x402MethodNetwork`. **Types (15):** `Ap2Offer`, `Broadcaster`, `CheckoutOption`, `EvmMark`, `EvmQuery`, `Jws`, `MandateContent`, `Payload`, `Presented`, `Unsigned`, `X402Authorization`, `X402Bundle`, `X402Method`, `X402Presented`, `X402Ref`. ## `@integraledger/lcp/aptos` Aptos, and the `x402/exact/aptos` pairing, served at the seller-tied level: no field of a standard Aptos transfer carries the ATR hash, so the hash is advertised in the challenge and tied to the payment by the seller's claim. ```ts no-check import { aptosIdDigest, aptosStatus, committedInstrument, … } from "@integraledger/lcp/aptos"; ``` **Pairings:** `x402/exact/aptos`. **Values (7):** `aptosIdDigest`, `aptosStatus`, `committedInstrument`, `decodeAptosTx`, `exactAptos`, `MAX_APTOS_READ_ITEMS`, `MAX_APTOS_TX_BYTES`. **Types (11):** `AptosAccount`, `AptosCommitted`, `AptosInstrument`, `AptosNetwork`, `AptosPaymentPayload`, `AptosReader`, `AptosRef`, `AptosStatus`, `AptosUnsigned`, `Broadcaster`, `X402Read`. ## `@integraledger/lcp/avm` Algorand: the pairing `x402/exact/algorand`, in which the payer signs an asset transfer whose note is the ATR hash's LCP string, and the settlement read from an Indexer by the transaction id computed from the signed bytes. ```ts no-check import { AVM_MAX_ENTRY, AVM_MAX_GROUP, AVM_MAX_LIFE, … } from "@integraledger/lcp/avm"; ``` **Pairings:** `x402/exact/algorand`. **Values (10):** `AVM_MAX_ENTRY`, `AVM_MAX_GROUP`, `AVM_MAX_LIFE`, `AVM_MAX_NOTE`, `AVM_SEARCH_PAGES`, `avmCarrier`, `avmRecover`, `avmStatus`, `exactAvm`, `MSGPACK_MAX_DEPTH`. **Types (15):** `AlgorandNetwork`, `AvmAssetTransfer`, `AvmIndexed`, `AvmPage`, `AvmParams`, `AvmPaymentPayload`, `AvmPresented`, `AvmReader`, `AvmRef`, `AvmSearch`, `AvmStatus`, `AvmUnsigned`, `Broadcaster`, `X402Payment`, `X402Read`. ## `@integraledger/lcp/card` The `card` entry point: the ATR hash on a card checkout, on five paths: Visa TAP, Mastercard Agent Pay, Visa Intelligent Commerce, Mastercard Verifiable Intent (Immediate and Autonomous) and the plain card checkout. ```ts no-check import { agentPay, disclosureDigest, issuedDigest, … } from "@integraledger/lcp/card"; ``` **Pairings:** `card/mastercard-agent-pay`, `card/mastercard-vi/autonomous`, `card/mastercard-vi/immediate`, `card/seller-reference`, `card/visa-tap`, `card/visa-vic`. **Values (18):** `agentPay`, `disclosureDigest`, `issuedDigest`, `MAX_CHARGE_REFERENCE`, `MAX_CHECKOUT_ID`, `MAX_CHECKOUT_JWT`, `MAX_TAP_COMPONENTS`, `MAX_TAP_FIELD`, `MAX_TAP_MEMBERS`, `MAX_TAP_PATH`, `MAX_VI_DISCLOSURES`, `MAX_VI_LAYER`, `sellerReference`, `tie`, `viAutonomous`, `viImmediate`, `visaTap`, `visaVic`. **Types (17):** `Broadcaster`, `CardOption`, `CardPairing`, `CardPairingId`, `CardScheme`, `CardValues`, `ChargePresented`, `ChargeRef`, `TapPresented`, `TapUnsigned`, `ViAutonomous`, `ViCheckoutChoice`, `ViCheckoutUnsigned`, `VicPresented`, `VicUnsigned`, `ViImmediate`, `ViUnsigned`. ## `@integraledger/lcp/cardano` Cardano, and its two pairings: `x402/exact/cardano`, x402's address-to-address method, and `x402/exact/cardano/lock`, its two lock methods (`masumi` and `script`). Each carries the ATR hash as a CIP-20 message that the payer's signed body commits to. ```ts no-check import { auxiliaryData, CARDANO_MAX_TX_BYTES, CARDANO_SEARCH_BOUND, … } from "@integraledger/lcp/cardano"; ``` **Pairings:** `x402/exact/cardano`, `x402/exact/cardano/lock`. **Values (11):** `auxiliaryData`, `CARDANO_MAX_TX_BYTES`, `CARDANO_SEARCH_BOUND`, `cardanoFloor`, `cardanoInputs`, `cardanoRecover`, `cardanoStatus`, `decodeCardanoTx`, `exactCardano`, `exactCardanoLock`, `LCP_MARKER`. **Types (15):** `Broadcaster`, `CardanoMethod`, `CardanoNetwork`, `CardanoOnChain`, `CardanoOutput`, `CardanoPage`, `CardanoPayload`, `CardanoPaymentPayload`, `CardanoQuery`, `CardanoReader`, `CardanoRef`, `CardanoStatus`, `CardanoTx`, `CardanoUnsigned`, `X402Read`. ## `@integraledger/lcp/casper` CEP-3009 on Casper and the `x402/exact/casper` pairing: the ATR hash as the authorization's 32-byte `nonce`, written by the buyer's signer, read back from what the payer signed, and read from the executed call's arguments. ```ts no-check import { CASPER_DOMAIN_TYPEHASH, CASPER_MAX_NAME_LENGTH, CASPER_MAX_PAGE_CALLS, … } from "@integraledger/lcp/casper"; ``` **Pairings:** `x402/exact/casper`. **Values (12):** `CASPER_DOMAIN_TYPEHASH`, `CASPER_MAX_NAME_LENGTH`, `CASPER_MAX_PAGE_CALLS`, `CASPER_MAX_PAGES`, `CASPER_MAX_PROBES`, `CASPER_MAX_PUBLIC_KEY_HEX`, `CASPER_MAX_SIGNATURE_HEX`, `casperIdDigest`, `casperRecover`, `casperStatus`, `cep3009TypedData`, `exactCasper`. **Types (20):** `Broadcaster`, `CasperAddress`, `CasperAuthorization`, `CasperBlockCall`, `CasperBlockPage`, `CasperCall`, `CasperChoice`, `CasperCursor`, `CasperHead`, `CasperNetwork`, `CasperPaymentPayload`, `CasperReader`, `CasperRef`, `CasperRefRead`, `CasperStatus`, `CasperUnsigned`, `Cep3009TypedData`, `PackageHash`, `X402Advertise`, `X402Read`. ## `@integraledger/lcp/ccd` Concordium and the `x402/exact/ccd` pairing: the ATR hash in LCP's string form, as a CBOR text string, in the memo of the one transfer the sender signs; read back from the signed transaction, and read from the finalized transfer event. ```ts no-check import { accountBytes, CCD_EXPIRY_MARGIN, CCD_MAX_ADDRESS, … } from "@integraledger/lcp/ccd"; ``` **Pairings:** `x402/exact/ccd`. **Values (13):** `accountBytes`, `CCD_EXPIRY_MARGIN`, `CCD_MAX_ADDRESS`, `CCD_MAX_MEMO`, `CCD_MAX_OPERATIONS`, `CCD_MAX_TRANSACTION`, `CCD_SEARCH_NUMBERS`, `ccdMemo`, `ccdRecover`, `ccdStatus`, `exactCcd`, `memoCarrier`, `pltMemo`. **Types (15):** `Broadcaster`, `CcdBlockItem`, `CcdChoice`, `CcdItem`, `CcdMark`, `CcdNetwork`, `CcdPaymentPayload`, `CcdReader`, `CcdRef`, `CcdSearch`, `CcdStatus`, `CcdTransfer`, `CcdUnsigned`, `X402Advertise`, `X402Read`. ## `@integraledger/lcp/core` The core alone: assembling an ATR and hashing its exact bytes, comparing hashes, the hash's forms, the https-link rule, the JSON and base64 forms they read and write, `isRefusal` and `readToRepeat`, with no pairing, rail or optional peer. ```ts no-check import { agreementValue, assemble, base64Bytes, … } from "@integraledger/lcp/core"; ``` **Values (27):** `agreementValue`, `assemble`, `base64Bytes`, `base64UrlBytes`, `canonicalJson`, `digestJson`, `domainToAscii`, `fromBase64`, `fromBase64Url`, `fromLcpString`, `fromLegalContext`, `fromRawBytes`, `hash`, `hashEquals`, `isHttpsLink`, `isOtherSchemeLink`, `isRefusal`, `newAtrId`, `parseHost`, `parseJson`, `readToRepeat`, `readUrl`, `toBase64`, `toBase64Url`, `toLcpString`, `toLegalContext`, `toRawBytes`. **Types (5):** `AtrHash`, `CoreRefusal`, `Json`, `Refusal`, `UrlAuthority`. ## `@integraledger/lcp/discovery` The discovery document of LCP §2, served at `/.well-known/legal-context.json`: `parse` reads one, and `emit` writes one. ```ts no-check import { emit, MAX_DOCUMENT_BYTES, parse, … } from "@integraledger/lcp/discovery"; ``` **Values (4):** `emit`, `MAX_DOCUMENT_BYTES`, `parse`, `WELL_KNOWN_PATH`. **Types (1):** `LegalContextDocument`. ## `@integraledger/lcp/evm` eip155 rail pieces: EIP-3009 and Permit2 typed data, the settlement read from a token's events, the read of a signed pull authorization's use, ERC-7710 permission contexts, the commerce-payments escrow's pieces, and x402's Permit2 proxy addresses. ```ts no-check import { AUTHORIZATION_CANCELED_TOPIC, AUTHORIZATION_STATE_SELECTOR, AUTHORIZATION_USED_TOPIC, … } from "@integraledger/lcp/evm"; ``` **Values (31):** `AUTHORIZATION_CANCELED_TOPIC`, `AUTHORIZATION_STATE_SELECTOR`, `AUTHORIZATION_USED_TOPIC`, `authorizationIdDigest`, `authorizationUsed`, `bindSalt`, `decodePermissionContext`, `DELEGATION_MANAGER`, `DELEGATION_MANAGER_CHAINS`, `eip3009Recover`, `eip3009Status`, `eip3009TypedData`, `ESCROW`, `evmStatus`, `EXACT_PERMIT2_PROXY`, `MAX_SEARCH_PAGES`, `NONCE_BITMAP_SELECTOR`, `PAYMENT_AUTHORIZED_TOPIC`, `PAYMENT_INFO_TYPEHASH`, `paymentHash`, `PERMIT2`, `permit2TypedData`, `ReaderError`, `REDEEMED_DELEGATION_TOPIC`, `SALT_BINDING_TYPEHASH`, `SEARCH_PAGE_BLOCKS`, `TRANSFER_TOPIC`, `TRANSFER_WITH_AUTHORIZATION_TYPEHASH`, `transferDigest`, `UNORDERED_NONCE_INVALIDATION_TOPIC`, `UPTO_PERMIT2_PROXY`. **Types (30):** `AuthCaptureRef`, `BatchEvmRef`, `Delegation`, `Eip155`, `Eip3009Ref`, `Eip3009TypedData`, `Erc7710Ref`, `EvmBreadthStatus`, `EvmLog`, `EvmLogEntry`, `EvmMark`, `EvmQuery`, `EvmReader`, `EvmReadRefBase`, `EvmReceipt`, `EvmRef`, `EvmStatus`, `EvmTransaction`, `EvmTxRef`, `Field`, `HederaNetwork`, `Hex`, `PaymentInfo`, `Permit2Ref`, `Permit2TypedData`, `PullAuthorization`, `Signed`, `TransferIdentity`, `TransferLog`, `X402EvmRefBase`. ## `@integraledger/lcp/hedera` Hedera: the x402 pairings `x402/exact/hedera` (the ATR hash as the signed body memo) and `x402/exact/hedera/transfer-executor` (the hash advertised in the challenge only), with the transaction wire form and the Mirror Node settlement read. ```ts no-check import { CHANNEL_CLOSED_TOPIC, CHANNEL_OPENED_TOPIC, decodeHederaTx, … } from "@integraledger/lcp/hedera"; ``` **Pairings:** `x402/exact/hedera`, `x402/exact/hedera/transfer-executor`. **Values (13):** `CHANNEL_CLOSED_TOPIC`, `CHANNEL_OPENED_TOPIC`, `decodeHederaTx`, `exactHedera`, `exactHederaExecutor`, `executorStatus`, `FETCHED`, `hederaChannelId`, `hederaIdDigest`, `hederaStatus`, `hederaVoucher`, `txIdMirror`, `txIdText`. **Types (23):** `Broadcaster`, `ExecutorPayload`, `ExecutorPaymentPayload`, `ExecutorRef`, `HederaBody`, `HederaChannelConfig`, `HederaCloseRef`, `HederaNetwork`, `HederaPresented`, `HederaQuery`, `HederaReader`, `HederaRef`, `HederaRow`, `HederaStatus`, `HederaTransfer`, `HederaTxId`, `HederaUnsigned`, `HederaVoucherTypedData`, `MirrorEntry`, `MirrorPage`, `MirrorRow`, `X402Payment`, `X402Read`. ## `@integraledger/lcp/lightning` BOLT11 invoices and the Lightning pairings: on x402 (`x402/exact/lnbtc/payment-hash`) the ATR commits the option's `extra.paymentHash`, and on MPP the seller's node writes the ATR hash as the invoice's description hash `h`. ```ts no-check import { chargeLightning, checkPreimage, decodeBolt11, … } from "@integraledger/lcp/lightning"; ``` **Pairings:** `mpp/charge/lightning`, `mpp/session/lightning`, `x402/exact/lnbtc/payment-hash`. **Values (8):** `chargeLightning`, `checkPreimage`, `decodeBolt11`, `exactLnbtcPaymentHash`, `invoiceH`, `requestHash`, `sessionLightning`, `validateExactLnbtc`. **Types (15):** `Bolt11`, `Broadcaster`, `ExactLnbtcReason`, `ExactLnbtcValidation`, `LnbtcRequest`, `LnChoice`, `LnHeaderFields`, `LnMppChoice`, `LnMppUnsigned`, `LnNetwork`, `LnPaymentPayload`, `LnRef`, `LnUnsigned`, `X402Advertise`, `X402Read`. ## `@integraledger/lcp/mpp` The `mpp` entry point: MPP's challenge pieces, its three fields (`encodeChallenge` writes a `WWW-Authenticate` value, `encodeCredential` and `decodeCredential` write and read an `Authorization` value, `encodeReceipt` and `decodeReceipt` write and read a `Payment-Receipt` value) and its pairings: the EVM charges, defined here, and every other MPP charge, session and subscription pairing but Lightning's, re-exported from its module. ```ts no-check import { attributionMemo, CARRIER, challengeBound, … } from "@integraledger/lcp/mpp"; ``` **Pairings:** `mpp/charge/card`, `mpp/charge/evm/authorization`, `mpp/charge/evm/hash`, `mpp/charge/evm/permit2`, `mpp/charge/evm/transaction`, `mpp/charge/lcp/hedera`, `mpp/charge/nearintents`, `mpp/charge/solana`, `mpp/charge/solana/unsponsored`, `mpp/charge/stripe`, `mpp/charge/tempo/split-memo`, `mpp/charge/tempo/split-memo/push`, `mpp/charge/usdc/evm`, `mpp/charge/usdc/gateway`, `mpp/charge/usdc/solana`, `mpp/charge/usdc/stacks`, `mpp/charge/xrpl`, `mpp/session/evm`, `mpp/session/hedera/stock`, `mpp/session/solana/memo`, `mpp/session/solana/stock`, `mpp/session/tempo`, `mpp/session/xrpl`, `mpp/session/xrpl/stock`, `mpp/subscription/solana`, `mpp/subscription/stripe`, `mpp/subscription/tempo`. **Values (62):** `attributionMemo`, `CARRIER`, `challengeBound`, `challengeH`, `challengeHash`, `challengeId`, `chargeCard`, `chargeLcpHedera`, `chargeNearIntents`, `chargeSolana`, `chargeSolanaUnsponsored`, `chargeStripe`, `chargeUsdcEvm`, `chargeUsdcGateway`, `chargeUsdcSolana`, `chargeUsdcStacks`, `chargeXrpl`, `checkAttribution`, `decodeCredential`, `decodeReceipt`, `encodeChallenge`, `encodeCredential`, `encodeReceipt`, `evmAuthorization`, `evmChannelId`, `evmHash`, `evmPermit2`, `evmSessionAuthorizationNonce`, `evmTransaction`, `FETCHED`, `hederaStockStatus`, `issuedDigest`, `keySearch`, `LEGAL_CONTEXT_METADATA_KEY`, `MPP_BINDINGS`, `network`, `pairingsOf`, `pairingsOfPlaced`, `parseChallenges`, `place`, `problem`, `read`, `sessionEvm`, `sessionHederaStock`, `sessionResume`, `sessionSolanaMemo`, `sessionSolanaStock`, `sessionStatus`, `sessionTempo`, `sessionXrpl`, `sessionXrplStock`, `subscriptionSolana`, `subscriptionStripe`, `subscriptionTempo`, `tempoSplitMemo`, `tempoSplitMemoPush`, `tie`, `toX402`, `transferPresent`, `usdcGatewaySalt`, `usdcNonce`, `usdcRequestHash`. **Types (74):** `Broadcaster`, `ChannelKind`, `ChargeRefBase`, `EvmLogEntry`, `EvmMark`, `EvmMoved`, `EvmQuery`, `EvmSearchReader`, `GatewayChargeChoice`, `GatewayPreimage`, `GatewaySaltInput`, `HederaNetwork`, `HederaQuery`, `HederaSessionUnsigned`, `HederaStockReader`, `HederaStockRef`, `HederaStockStatus`, `HederaVoucherTypedData`, `LandedCredential`, `LcpHederaChoice`, `LcpHederaLanded`, `LcpHederaRef`, `LcpHederaUnsigned`, `LcpRail`, `LcpValidation`, `MppChallenge`, `MppChoice`, `MppCredential`, `MppEip3009Ref`, `MppEvmReader`, `MppEvmStatus`, `MppIntent`, `MppMethod`, `MppNamedRef`, `MppPairingId`, `MppPermit2Ref`, `MppReceipt`, `MppSessionOpeningRef`, `MppUnsigned`, `NearIntentsRef`, `Presentation`, `RailSessionChoice`, `RailSessionUnsigned`, `ReceiveTypedData`, `Seen`, `SessionChoice`, `SessionRef`, `SessionStatus`, `SessionUnsigned`, `SessionWithin`, `SessionWithinUnsigned`, `Signed`, `SolanaChargeChoice`, `SolanaChargeUnsigned`, `SolanaSessionChoice`, `SolanaSessionUnsigned`, `SolanaTablesCredential`, `StacksChargeChoice`, `StockQuery`, `StripeSubscriptionReceipt`, `TempoLandedCredential`, `TempoSplitLanded`, `TempoSplitQuery`, `TempoSplitRef`, `TempoSplitStatus`, `TokenDomain`, `UsdcUnsigned`, `VoucherTypedData`, `WithinSigningRequest`, `X402Mapped`, `XrplChargeChoice`, `XrplChargeUnsigned`, `XrplQuery`, `XrplSessionUnsigned`. ## `@integraledger/lcp/near` NEAR: the pairing `x402/exact/near`. The payer signs a NEP-366 delegate action for one NEP-141 `ft_transfer` whose `memo` argument is the ATR hash's LCP string; a facilitator's relayer submits it. ```ts no-check import { exactNear, FT_TRANSFER_GAS, ftTransferArgs, … } from "@integraledger/lcp/near"; ``` **Pairings:** `x402/exact/near`. **Values (10):** `exactNear`, `FT_TRANSFER_GAS`, `ftTransferArgs`, `MAX_FT_TRANSFER_ARGS_BYTES`, `MAX_SIGNED_DELEGATE_BASE64`, `nearCarrier`, `nearRecover`, `nearRequest`, `nearStatus`, `NEP461_DELEGATE`. **Types (17):** `Answer`, `Broadcaster`, `NearChoice`, `NearFunctionCall`, `NearKeyChange`, `NearKeyChanges`, `NearMark`, `NearNetwork`, `NearOutcome`, `NearPayment`, `NearQuery`, `NearReader`, `NearRef`, `NearStatus`, `NearUnsigned`, `X402Payment`, `X402Read`. ## `@integraledger/lcp/polkadot` Polkadot Asset Hub: the profile pairing `x402/exact/polkadot/lcp-assets-remark`, in which the payer signs one extrinsic that transfers an asset and remarks the ATR hash's LCP string. ```ts no-check import { CALL, decodeProfileCall, encodeProfileCall, … } from "@integraledger/lcp/polkadot"; ``` **Pairings:** `x402/exact/polkadot/lcp-assets-remark`. **Values (11):** `CALL`, `decodeProfileCall`, `encodeProfileCall`, `exactPolkadotRemark`, `extrinsicHash`, `LCP_ASSETS_REMARK`, `POLKADOT_BOUNDS`, `polkadotRecover`, `polkadotStatus`, `splitSigned`, `ss58Decode`. **Types (17):** `Broadcaster`, `PolkadotCursor`, `PolkadotEra`, `PolkadotExtrinsic`, `PolkadotLanded`, `PolkadotMark`, `PolkadotNetwork`, `PolkadotPayload`, `PolkadotPaymentPayload`, `PolkadotQuery`, `PolkadotReader`, `PolkadotRef`, `PolkadotStatus`, `PolkadotUnsigned`, `ProfileCall`, `X402Payment`, `X402Read`. ## `@integraledger/lcp/spend-permissions` The Spend Permission exchange and the pairing `spend-permissions/eip155`: an account's approval, on the SpendPermissionManager, of a Spend Permission whose `salt` is the ATR hash, as the sale's agreement. ```ts no-check import { APPROVE_SELECTOR, APPROVE_WITH_SIGNATURE_SELECTOR, approvedIn, … } from "@integraledger/lcp/spend-permissions"; ``` **Pairings:** `spend-permissions/eip155`. **Values (17):** `APPROVE_SELECTOR`, `APPROVE_WITH_SIGNATURE_SELECTOR`, `approvedIn`, `checkReturn`, `decodeSpendPermissionHeader`, `encodeSpendPermissionHeader`, `IS_APPROVED_SELECTOR`, `IS_REVOKED_SELECTOR`, `issuedDigest`, `permissionHash`, `SPEND_PERMISSION_APPROVED_TOPIC`, `SPEND_PERMISSION_DOMAIN`, `SPEND_PERMISSION_HEADER`, `SPEND_PERMISSION_REVOKED_TOPIC`, `SPEND_PERMISSION_TYPEHASH`, `spendPermissionsEip155`, `tie`. **Types (16):** `Broadcaster`, `EvmMark`, `EvmQuery`, `EvmReadRefBase`, `OfferedPermission`, `SpendPermission`, `SpendPermissionBody`, `SpendPermissionChoice`, `SpendPermissionError`, `SpendPermissionOffer`, `SpendPermissionOfferInput`, `SpendPermissionRef`, `SpendPermissionReturn`, `SpendPermissionRoute`, `SpendPermissionTypedData`, `SpendPermissionUnsigned`. ## `@integraledger/lcp/stacks` Stacks rail pieces: the transaction id, the reader a read goes through, the read of a payment by its origin and the nonce the origin signed, and the zero-party recovery of the ATR hash from a mined transaction. ```ts no-check import { MAX_SEARCH_NONCES, MAX_STACKS_TX_BYTES, stacksRecover, … } from "@integraledger/lcp/stacks"; ``` **Values (5):** `MAX_SEARCH_NONCES`, `MAX_STACKS_TX_BYTES`, `stacksRecover`, `stacksStatus`, `stacksTxid`. **Types (11):** `StacksAssetEvent`, `StacksLanded`, `StacksListed`, `StacksMark`, `StacksMempool`, `StacksNetwork`, `StacksPage`, `StacksQuery`, `StacksReader`, `StacksRef`, `StacksStatus`. ## `@integraledger/lcp/starknet` Starknet: the pairing `x402/exact/starknet`. The payer signs a SNIP-12 `OutsideExecution` (SNIP-9 v2) authorizing one token `transfer`; its `Nonce` is the ATR hash's low 250 bits, or on an agreement the agreement value's. ```ts no-check import { ANY_CALLER, chainIdFelt, EVENT_TRANSFER, … } from "@integraledger/lcp/starknet"; ``` **Pairings:** `x402/exact/starknet`. **Values (23):** `ANY_CALLER`, `chainIdFelt`, `EVENT_TRANSFER`, `exactStarknet`, `FELT_P`, `MASK_250`, `outsideExecution`, `SELECTOR_EXECUTE_FROM_OUTSIDE_V2`, `SELECTOR_TRANSFER`, `snNonce`, `STARKNET_MAX_CANDIDATES`, `STARKNET_MAX_CONTINUATION`, `STARKNET_MAX_EVENT_PAGES`, `STARKNET_MAX_EVENTS`, `STARKNET_MAX_SIGNATURE_FELTS`, `STARKNET_MAX_TRACE_DEPTH`, `STARKNET_MAX_TRACE_INVOCATIONS`, `STARKNET_MAX_TYPED_DATA_BYTES`, `starknetFloor`, `starknetIdDigest`, `starknetLandedNonce`, `starknetRecover`, `starknetStatus`. **Types (24):** `Broadcaster`, `Felt`, `Field`, `OutsideExecutionTypedData`, `StarknetCall`, `StarknetCursor`, `StarknetEmittedEvent`, `StarknetEvent`, `StarknetEventPage`, `StarknetEventQuery`, `StarknetHead`, `StarknetInvocation`, `StarknetMark`, `StarknetNetwork`, `StarknetOutsideExecution`, `StarknetPayment`, `StarknetReader`, `StarknetReceipt`, `StarknetRef`, `StarknetRefRead`, `StarknetStatus`, `StarknetUnsigned`, `X402Payment`, `X402Read`. ## `@integraledger/lcp/stellar` Stellar rail pieces: the payer-signed Soroban `transfer` and the digest of its authorization entry, the signed-payload precondition over H, the search for a buyer's acts, and the read of the agreement `x402/exact/stellar/precondition`. ```ts no-check import { decodeStellarTx, MAX_CANDIDATES, MAX_ORDER, … } from "@integraledger/lcp/stellar"; ``` **Values (17):** `decodeStellarTx`, `MAX_CANDIDATES`, `MAX_ORDER`, `MAX_PAGES`, `muxedFor`, `parseStellarPosition`, `PASSPHRASE`, `PAYLOAD_BYTES`, `readSignedPayload`, `SCVAL_MAX_DEPTH`, `signedPayload`, `stellarLocate`, `stellarPosition`, `stellarRecover`, `stellarStatus`, `transferEventOf`, `transferEventTopics`. **Types (15):** `PayloadSigner`, `StellarCandidate`, `StellarEvent`, `StellarEventRow`, `StellarLanded`, `StellarMark`, `StellarNetwork`, `StellarPayment`, `StellarPaymentPayload`, `StellarQuery`, `StellarReader`, `StellarRef`, `StellarSearch`, `StellarStatus`, `StellarUnsigned`. ## `@integraledger/lcp/sui` Sui, and the `x402/exact/sui` pairing: the ATR hash as the one `Pure` input of the payer's programmable transaction that no command uses. ```ts no-check import { decodeSuiTx, exactSui, MAX_SUI_BALANCE_CHANGES, … } from "@integraledger/lcp/sui"; ``` **Pairings:** `x402/exact/sui`. **Values (9):** `decodeSuiTx`, `exactSui`, `MAX_SUI_BALANCE_CHANGES`, `MAX_SUI_COIN_TYPE_LENGTH`, `MAX_SUI_SEARCH_PAGES`, `suiCarrier`, `suiFloor`, `suiRecover`, `suiStatus`. **Types (17):** `Broadcaster`, `SuiBalanceChange`, `SuiExecuted`, `SuiFound`, `SuiMark`, `SuiNetwork`, `SuiPage`, `SuiPayload`, `SuiPaymentPayload`, `SuiReader`, `SuiRef`, `SuiSearchRange`, `SuiStatus`, `SuiTransfer`, `SuiTx`, `SuiUnsigned`, `X402Read`. ## `@integraledger/lcp/svm` Solana rail pieces: the wire transaction and its one Memo instruction carrying the ATR hash in LCP string form, the settlement read, and the payment-channels program's pieces. ```ts no-check import { ATA_PROGRAM, buildChannelMessage, buildSvmMessage, … } from "@integraledger/lcp/svm"; ``` **Values (32):** `ATA_PROGRAM`, `buildChannelMessage`, `buildSvmMessage`, `channelInstruction`, `channelPda`, `channelVoucherMessage`, `COMPUTE_BUDGET`, `decodeSvmTx`, `findPda`, `isKey`, `MEMO_V3`, `MEMO_V4`, `OPEN_DISCRIMINATOR`, `openInstructionData`, `openOf`, `PAYMENT_CHANNELS`, `RENT_SYSVAR`, `SEAL_DISCRIMINATOR`, `sessionProof`, `SETTLE_AND_SEAL_DISCRIMINATOR`, `solanaVoucher`, `SVM_MAX_CANDIDATES`, `SVM_SEARCH_SHOWN`, `svmCarrier`, `svmChannelStatus`, `svmDigest`, `svmOpeningStatus`, `svmRecover`, `svmStatus`, `SYSTEM`, `TOKEN`, `TOKEN_2022`. **Types (22):** `ChannelBuildInput`, `ChannelIx`, `ChannelStatus`, `SolanaNetwork`, `SvmBuildInput`, `SvmCloseRef`, `SvmCloseStatus`, `SvmCommitment`, `SvmCursor`, `SvmInner`, `SvmInstruction`, `SvmLanded`, `SvmMark`, `SvmNonce`, `SvmQuery`, `SvmReader`, `SvmRef`, `SvmSignature`, `SvmStatus`, `SvmTokenBalance`, `SvmTx`, `SvmV1Header`. ## `@integraledger/lcp/tempo` Tempo rail pieces: the `0x76` transaction's calls, the TIP-20 `transferWithMemo` calldata, the TIP-20 channel reserve's descriptor and ids, and the account keychain's key authorizations. ```ts no-check import { ACCESS_KEY_SPEND_TOPIC, ACCOUNT_KEYCHAIN, CHANNEL_CLOSED_V1_TOPIC, … } from "@integraledger/lcp/tempo"; ``` **Values (22):** `ACCESS_KEY_SPEND_TOPIC`, `ACCOUNT_KEYCHAIN`, `CHANNEL_CLOSED_V1_TOPIC`, `CHANNEL_CLOSED_V2_TOPIC`, `CHANNEL_OPENED_V1_TOPIC`, `CHANNEL_OPENED_V2_TOPIC`, `decodeKeyAuthorization`, `decodeTempoTx`, `encodeKeyAuthorization`, `expiringNonceHash`, `KEY_AUTHORIZATION_WITNESS_TOPIC`, `KEY_REVOKED_TOPIC`, `keyAuthorizationDigest`, `memoCalldata`, `OPEN_V1_SELECTOR`, `OPEN_V2_SELECTOR`, `RECEIVE_POLICY_GUARD`, `tempoChannelId`, `TIP20_CHANNEL_RESERVE`, `TRANSFER_WITH_MEMO_SELECTOR`, `TRANSFER_WITH_MEMO_TOPIC`, `witnessRecover`. **Types (5):** `KeyAuthorizationUnsigned`, `TempoCall`, `TempoDescriptor`, `TempoKeyAuthorization`, `TempoSearchReader`. ## `@integraledger/lcp/tron` Tron: the pairing `x402/exact/tron/lcp-trc20-memo`, whose payer-signed TRC-20 transfer carries the ATR hash as its memo, `raw_data.data`, in LCP string form, and the transaction pieces it uses. ```ts no-check import { decodeTronTx, encodeTronRaw, exactTronMemo, … } from "@integraledger/lcp/tron"; ``` **Pairings:** `x402/exact/tron/lcp-trc20-memo`. **Values (14):** `decodeTronTx`, `encodeTronRaw`, `exactTronMemo`, `LCP_TRC20_MEMO`, `TRANSFER_SELECTOR`, `TRANSFER_TOPIC`, `TRIGGER_SMART_CONTRACT`, `TRIGGER_URL`, `TRON_BOUNDS`, `tronAddress`, `tronCarrier`, `tronRecover`, `tronRequest`, `tronStatus`. **Types (18):** `Broadcaster`, `TronBlock`, `TronChoice`, `TronCursor`, `TronInfo`, `TronLevel`, `TronMark`, `TronNetwork`, `TronNow`, `TronPayment`, `TronQuery`, `TronRaw`, `TronReader`, `TronRef`, `TronStatus`, `TronUnsigned`, `X402Payment`, `X402Read`. ## `@integraledger/lcp/tvm` TON: the pairing `x402/exact/tvm`. The ATR hash rides in the scheme's `extra.forwardPayload` as a TEP-74 text comment holding its LCP string. ```ts no-check import { exactTvm, lcpComment, MAX_TVM_ATTACHED_ABOVE_FORWARD, … } from "@integraledger/lcp/tvm"; ``` **Pairings:** `x402/exact/tvm`. **Values (14):** `exactTvm`, `lcpComment`, `MAX_TVM_ATTACHED_ABOVE_FORWARD`, `MAX_TVM_BOC_BYTES`, `MAX_TVM_CELLS`, `MAX_TVM_DEPTH`, `MAX_TVM_LISTED`, `OP`, `TVM_EXPIRY_MARGIN`, `tvmCarrier`, `tvmRecover`, `tvmRequest`, `tvmStatus`, `W5R1_CODE_HASH`. **Types (20):** `Broadcaster`, `TonAccountState`, `TonAccountStatus`, `TonCell`, `TonIndexed`, `TonLink`, `TonOutMsg`, `TonTx`, `TonWalletState`, `TvmChoice`, `TvmMark`, `TvmNetwork`, `TvmPayment`, `TvmReader`, `TvmRef`, `TvmSearch`, `TvmStatus`, `TvmUnsigned`, `X402Payment`, `X402Read`. ## `@integraledger/lcp/ucp` UCP checkouts and bookings, and five pairings, each of which carries the ATR hash and link as one `links[]` entry of type `legal_context` in the checkout response. ```ts no-check import { agentSigned, ap2Mandate, bookingAp2Mandate, … } from "@integraledger/lcp/ucp"; ``` **Pairings:** `ucp/booking/ap2-mandate`, `ucp/booking/unsigned`, `ucp/checkout/agent-signed`, `ucp/checkout/ap2-mandate`, `ucp/checkout/unsigned`. **Values (10):** `agentSigned`, `ap2Mandate`, `bookingAp2Mandate`, `bookingUnsigned`, `checkoutJwt`, `issuedDigest`, `legalContextLink`, `LINK_TYPE`, `tie`, `unsigned`. **Types (13):** `AgentSignedPresented`, `AgentSignedUnsigned`, `BookingOption`, `Broadcaster`, `ChargePresented`, `ChargeRef`, `Checkout`, `CheckoutOption`, `Link`, `Option`, `UcpBinding`, `UcpOffer`, `Unsigned`. ## `@integraledger/lcp/x402` x402 v2 documents, the request commitment, and the x402 pairings on eip155 chains: `exact` over EIP-3009, Permit2 and ERC-7710 (with its salt level), `upto` over Permit2, `auth-capture` over EIP-3009 and Permit2, and `exact` in Circle Gateway's batched domain. ```ts no-check import { authCaptureEip3009, authCapturePermit2, decodePaymentRequired, … } from "@integraledger/lcp/x402"; ``` **Pairings:** `x402/auth-capture/eip155/eip3009`, `x402/auth-capture/eip155/permit2`, `x402/exact/eip155/eip3009`, `x402/exact/eip155/erc7710`, `x402/exact/eip155/erc7710-salt`, `x402/exact/eip155/gateway-batched`, `x402/exact/eip155/permit2`, `x402/upto/eip155/permit2`. **Values (22):** `authCaptureEip3009`, `authCapturePermit2`, `decodePaymentRequired`, `decodePaymentResponse`, `decodePaymentSignature`, `encodeHeader`, `exactEip3009`, `exactErc7710`, `exactErc7710Salt`, `exactGatewayBatched`, `exactPermit2`, `issuedDigest`, `LEGAL_CONTEXT`, `LEGAL_CONTEXT_SCHEMA`, `pairingOfPayment`, `PAYMENT_REQUIRED`, `PAYMENT_RESPONSE`, `PAYMENT_SIGNATURE`, `requestCommitment`, `tie`, `toolCallCommitment`, `uptoPermit2`. **Types (34):** `BatchedAuthorization`, `BreadthBase`, `BreadthId`, `Broadcaster`, `Eip3009Authorization`, `Eip3009Payment`, `Eip3009TypedData`, `EvmMark`, `EvmQuery`, `GatewayBatchedChoice`, `GatewayBatchedPayment`, `GatewayBatchedTypedData`, `GatewayBatchedUnsigned`, `HeaderDigest`, `HeaderFields`, `HttpRequest`, `LcpPattern`, `Pairings`, `PaymentPayload`, `PaymentRequired`, `PaymentRequirements`, `Permit2Authorization`, `RequestCommitment`, `SettlementResponse`, `ToolCall`, `ToolCallCommitment`, `Unsigned`, `X402Advertise`, `X402Choice`, `X402Offer`, `X402PairingId`, `X402Read`, `X402SchemePayload`, `X402Unsigned`. ## `@integraledger/lcp/x402-batch-settlement` x402 `batch-settlement`: one ATR per channel, its hash the EVM channel configuration's `salt`, the Solana opening transaction's seller Memo instruction, or, on Cloudflare, the echoed `extensions.legalContext` of each request. ```ts no-check import { BATCH_SETTLEMENT, batchChannelCreated, batchChannelId, … } from "@integraledger/lcp/x402-batch-settlement"; ``` **Pairings:** `x402/batch-settlement/cloudflare`, `x402/batch-settlement/eip155`, `x402/batch-settlement/solana`. **Values (13):** `BATCH_SETTLEMENT`, `batchChannelCreated`, `batchChannelId`, `batchCloudflare`, `batchEvm`, `batchSvm`, `CHANNEL_CONFIG_TYPEHASH`, `CHANNEL_CREATED_TOPIC`, `DEPOSITED_TOPIC`, `ERC3009_DEPOSIT_COLLECTOR`, `erc3009DepositNonce`, `PERMIT2_DEPOSIT_COLLECTOR`, `VOUCHER_TYPEHASH`. **Types (15):** `BatchEvmOpen`, `BatchPaymentPayload`, `BatchSvmOpen`, `BatchUnsigned`, `BatchWithin`, `Broadcaster`, `ChannelConfig`, `ChannelMembers`, `CloudflarePaymentPayload`, `Eip712Request`, `EvmMark`, `EvmQuery`, `SigningRequest`, `X402Advertise`, `X402Read`. ## `@integraledger/lcp/x402-exact-solana` The `x402/exact/solana` pairing: the ATR hash placed as the option's `extra.memo` in LCP string form, written by the payer as the transaction's one Memo instruction, read back from the signed message, and read from the settlement. ```ts no-check import { exactSvm } from "@integraledger/lcp/x402-exact-solana"; ``` **Pairings:** `x402/exact/solana`. **Values (1):** `exactSvm`. **Types (5):** `Broadcaster`, `SvmChoice`, `SvmPaymentPayload`, `SvmUnsigned`, `X402Read`. ## `@integraledger/lcp/x402-exact-stellar` Stellar on x402: the pairing `x402/exact/stellar/precondition` (`exactStellarPrecondition`), an agreement in which the buyer signs a Soroban authorization of `transfer(buyer, payTo, amount)` and a 40-byte payload of H and that authorization's nonce. ```ts no-check import { exactStellarPrecondition, LCP_PRECONDITION } from "@integraledger/lcp/x402-exact-stellar"; ``` **Pairings:** `x402/exact/stellar/precondition`. **Values (2):** `exactStellarPrecondition`, `LCP_PRECONDITION`. **Types (3):** `Broadcaster`, `StellarPreconditionChoice`, `X402Read`. ## `@integraledger/lcp/x402-exact-xrpl` The `x402/exact/xrpl` pairing: the ATR hash's LCP string placed as the option's `extra.invoiceId`, whose SHA-256 the payer signs as the Payment's `InvoiceID`. ```ts no-check import { exactXrpl } from "@integraledger/lcp/x402-exact-xrpl"; ``` **Pairings:** `x402/exact/xrpl`. **Values (1):** `exactXrpl`. **Types (5):** `Broadcaster`, `X402Read`, `XrplChoice`, `XrplPaymentPayload`, `XrplQuery`. ## `@integraledger/lcp/x402-upto-solana` The `x402/upto/solana` pairing: the ATR hash placed as the option's `extra.memo` in LCP string form, written by the payer as the one Memo instruction of the transaction that opens a one-request payment channel. ```ts no-check import { uptoSvm } from "@integraledger/lcp/x402-upto-solana"; ``` **Pairings:** `x402/upto/solana`. **Values (1):** `uptoSvm`. **Types (5):** `Broadcaster`, `UptoSvmChoice`, `UptoSvmPayload`, `UptoSvmPaymentPayload`, `X402Read`. ## `@integraledger/lcp/x402-upto-xrpl` The `x402/upto/xrpl` pairing: x402's `upto` scheme on the XRP Ledger, at coverage `none`, its payment following an agreement on the same network. ```ts no-check import { uptoXrpl } from "@integraledger/lcp/x402-upto-xrpl"; ``` **Pairings:** `x402/upto/xrpl`. **Values (1):** `uptoXrpl`. **Types (4):** `Broadcaster`, `UptoXrplPayload`, `UptoXrplPaymentPayload`, `X402Read`. ## `@integraledger/lcp/xrpl` XRP Ledger rail pieces: the signed blob, its `InvoiceID` or memo carrying the ATR hash in each scheme's form, the transaction hash computed from the blob, the reads of a payment, an opening, a channel and a close through a bounded reader, and the payment channel's id and claim. ```ts no-check import { decodeBlob, mppInvoiceId, x402InvoiceId, … } from "@integraledger/lcp/xrpl"; ``` **Values (12):** `decodeBlob`, `mppInvoiceId`, `x402InvoiceId`, `XRPL_MAX_BLOB_BYTES`, `XRPL_MAX_DEPTH`, `XRPL_MAX_PAGES`, `xrplChannelId`, `xrplChannelStatus`, `xrplChargeStatus`, `xrplClaim`, `xrplOpenStatus`, `xrplStatus`. **Types (19):** `XrplAmount`, `XrplChannelEntry`, `XrplChannelRef`, `XrplCloseRef`, `XrplCloseStatus`, `XrplLanded`, `XrplLedgerName`, `XrplMark`, `XrplNetwork`, `XrplPage`, `XrplQuery`, `XrplReached`, `XrplReader`, `XrplRef`, `XrplServer`, `XrplSigned`, `XrplStatus`, `XrplTxJson`, `XrplUnsigned`. --- # Pairing registry > Every pairing @integraledger/lcp implements, generated from its registry. Source: https://lcp.integraledger.com/reference/pairings Updated 2026-11-20. Documents @integraledger/lcp 0.6.3 and @integraledger/profile-facilitator 0.5.1. This page is generated from the package by `node scripts/docs-reference.mjs`, and CI checks that it matches. `BINDINGS` holds 77 pairings on 8 surfaces (`ack`, `acp`, `ap2`, `card`, `mpp`, `spend-permissions`, `ucp`, `x402`). Each row gives the pairing's id, the export that implements it, its data's `coverage` (`full` where the payer's own signed act on a public ledger binds H, `none` where no public payer-signed act carries it) and `confirmed` (`yes` where something outside this package has shown the form as its profile defines it, `no` where nothing has yet), and these members of its `pattern` record: the binding pattern, where it names one, whether the binding is visible on a public ledger, whether the hash can be recovered from the chain alone, and the LCP profile that defines the binding, where one does. [Binding](https://lcp.integraledger.com/concepts/binding.md) explains each member, `forwardIndexable` included. Each pairing's id links to [where H rides in it and what its binding proves](https://lcp.integraledger.com/reference/pairings.md#what-each-binding-proves). ## `ack` | Pairing | Export | Coverage | Confirmed | Pattern | Binding on chain | Recoverable from chain | Profile | |---|---|---|---|---|---|---|---| | [`ack/payment-request`](https://lcp.integraledger.com/reference/pairings.md#ackpayment-request) | `paymentRequest` from `@integraledger/lcp/ack` | `none` | no | `native-field` | no | no | [`ack/payment-request`](https://lcp.integraledger.com/profiles/ack-payment-request.md) | ## `acp` | Pairing | Export | Coverage | Confirmed | Pattern | Binding on chain | Recoverable from chain | Profile | |---|---|---|---|---|---|---|---| | [`acp/checkout/delegated`](https://lcp.integraledger.com/reference/pairings.md#acpcheckoutdelegated) | `delegated` from `@integraledger/lcp/acp` | `none` | no | `native-field` | no | no | [`acp/checkout/session-id`](https://lcp.integraledger.com/profiles/acp-checkout-session-id.md) | | [`acp/checkout/undelegated`](https://lcp.integraledger.com/reference/pairings.md#acpcheckoutundelegated) | `undelegated` from `@integraledger/lcp/acp` | `none` | no | `http-advisory` | no | no | [`acp/checkout/session-id`](https://lcp.integraledger.com/profiles/acp-checkout-session-id.md) | ## `ap2` | Pairing | Export | Coverage | Confirmed | Pattern | Binding on chain | Recoverable from chain | Profile | |---|---|---|---|---|---|---|---| | [`ap2/checkout-mandate`](https://lcp.integraledger.com/reference/pairings.md#ap2checkout-mandate) | `checkoutMandate` from `@integraledger/lcp/ap2` | `none` | no | `opaque-challenge` | no | no | [`ap2/checkout-mandate`](https://lcp.integraledger.com/profiles/ap2-checkout-mandate.md) | | [`ap2/checkout-mandate/x402`](https://lcp.integraledger.com/reference/pairings.md#ap2checkout-mandatex402) | `checkoutMandateX402` from `@integraledger/lcp/ap2` | `none` | no | `opaque-challenge` | no | no | [`ap2/checkout-mandate/x402`](https://lcp.integraledger.com/profiles/ap2-checkout-mandate-x402.md) | ## `card` | Pairing | Export | Coverage | Confirmed | Pattern | Binding on chain | Recoverable from chain | Profile | |---|---|---|---|---|---|---|---| | [`card/mastercard-agent-pay`](https://lcp.integraledger.com/reference/pairings.md#cardmastercard-agent-pay) | `agentPay` from `@integraledger/lcp/card` | `none` | no | `protocol-extension` | no | no | [`card/mastercard-agent-pay`](https://lcp.integraledger.com/profiles/card-mastercard-agent-pay.md) | | [`card/mastercard-vi/autonomous`](https://lcp.integraledger.com/reference/pairings.md#cardmastercard-viautonomous) | `viAutonomous` from `@integraledger/lcp/card` | `none` | no | `id-reuse` | no | no | [`card/mastercard-vi`](https://lcp.integraledger.com/profiles/card-mastercard-vi.md) | | [`card/mastercard-vi/immediate`](https://lcp.integraledger.com/reference/pairings.md#cardmastercard-viimmediate) | `viImmediate` from `@integraledger/lcp/card` | `none` | no | `id-reuse` | no | no | [`card/mastercard-vi`](https://lcp.integraledger.com/profiles/card-mastercard-vi.md) | | [`card/seller-reference`](https://lcp.integraledger.com/reference/pairings.md#cardseller-reference) | `sellerReference` from `@integraledger/lcp/card` | `none` | no | `http-advisory` | no | no | [`card/seller-reference`](https://lcp.integraledger.com/profiles/card-seller-reference.md) | | [`card/visa-tap`](https://lcp.integraledger.com/reference/pairings.md#cardvisa-tap) | `visaTap` from `@integraledger/lcp/card` | `none` | no | `protocol-extension` | no | no | [`card/visa-tap`](https://lcp.integraledger.com/profiles/card-visa-tap.md) | | [`card/visa-vic`](https://lcp.integraledger.com/reference/pairings.md#cardvisa-vic) | `visaVic` from `@integraledger/lcp/card` | `none` | no | `protocol-extension` | no | no | [`card/visa-vic`](https://lcp.integraledger.com/profiles/card-visa-vic.md) | ## `mpp` | Pairing | Export | Coverage | Confirmed | Pattern | Binding on chain | Recoverable from chain | Profile | |---|---|---|---|---|---|---|---| | [`mpp/charge/card`](https://lcp.integraledger.com/reference/pairings.md#mppchargecard) | `chargeCard` from `@integraledger/lcp/mpp` | `none` | no | `opaque-challenge` | no | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/evm/authorization`](https://lcp.integraledger.com/reference/pairings.md#mppchargeevmauthorization) | `evmAuthorization` from `@integraledger/lcp/mpp` | `full` | yes | `id-reuse` | yes | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/evm/hash`](https://lcp.integraledger.com/reference/pairings.md#mppchargeevmhash) | `evmHash` from `@integraledger/lcp/mpp` | `none` | yes | `opaque-challenge` | no | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/evm/permit2`](https://lcp.integraledger.com/reference/pairings.md#mppchargeevmpermit2) | `evmPermit2` from `@integraledger/lcp/mpp` | `full` | no | `id-reuse` | yes | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/evm/transaction`](https://lcp.integraledger.com/reference/pairings.md#mppchargeevmtransaction) | `evmTransaction` from `@integraledger/lcp/mpp` | `none` | yes | `opaque-challenge` | no | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/lcp/hedera`](https://lcp.integraledger.com/reference/pairings.md#mppchargelcphedera) | `chargeLcpHedera` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | yes | [`mpp/method/lcp`](https://lcp.integraledger.com/profiles/mpp-method-lcp.md) | | [`mpp/charge/lightning`](https://lcp.integraledger.com/reference/pairings.md#mppchargelightning) | `chargeLightning` from `@integraledger/lcp/lightning` | `none` | no | `native-field` | no | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/nearintents`](https://lcp.integraledger.com/reference/pairings.md#mppchargenearintents) | `chargeNearIntents` from `@integraledger/lcp/mpp` | `none` | no | `opaque-challenge` | no | no | [`mpp/charge/nearintents`](https://lcp.integraledger.com/profiles/mpp-charge-nearintents.md) | | [`mpp/charge/solana`](https://lcp.integraledger.com/reference/pairings.md#mppchargesolana) | `chargeSolana` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | yes | [`mpp/charge/solana`](https://lcp.integraledger.com/profiles/mpp-charge-solana.md) | | [`mpp/charge/solana/unsponsored`](https://lcp.integraledger.com/reference/pairings.md#mppchargesolanaunsponsored) | `chargeSolanaUnsponsored` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | yes | [`mpp/charge/solana`](https://lcp.integraledger.com/profiles/mpp-charge-solana.md) | | [`mpp/charge/stripe`](https://lcp.integraledger.com/reference/pairings.md#mppchargestripe) | `chargeStripe` from `@integraledger/lcp/mpp` | `none` | no | `opaque-challenge` | no | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/tempo/split-memo`](https://lcp.integraledger.com/reference/pairings.md#mppchargetemposplit-memo) | `tempoSplitMemo` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | no | [`mpp/charge/tempo/split-memo`](https://lcp.integraledger.com/profiles/mpp-charge-tempo-split-memo.md) | | [`mpp/charge/tempo/split-memo/push`](https://lcp.integraledger.com/reference/pairings.md#mppchargetemposplit-memopush) | `tempoSplitMemoPush` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | no | [`mpp/charge/tempo/split-memo`](https://lcp.integraledger.com/profiles/mpp-charge-tempo-split-memo.md) | | [`mpp/charge/usdc/evm`](https://lcp.integraledger.com/reference/pairings.md#mppchargeusdcevm) | `chargeUsdcEvm` from `@integraledger/lcp/mpp` | `full` | yes | `id-reuse` | yes | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/usdc/gateway`](https://lcp.integraledger.com/reference/pairings.md#mppchargeusdcgateway) | `chargeUsdcGateway` from `@integraledger/lcp/mpp` | `none` | no | `id-reuse` | yes | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/charge/usdc/solana`](https://lcp.integraledger.com/reference/pairings.md#mppchargeusdcsolana) | `chargeUsdcSolana` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | yes | [`mpp/charge/usdc/solana`](https://lcp.integraledger.com/profiles/mpp-charge-usdc-solana.md) | | [`mpp/charge/usdc/stacks`](https://lcp.integraledger.com/reference/pairings.md#mppchargeusdcstacks) | `chargeUsdcStacks` from `@integraledger/lcp/mpp` | `full` | no | `native-field` | yes | yes | [`mpp/charge/usdc/stacks`](https://lcp.integraledger.com/profiles/mpp-charge-usdc-stacks.md) | | [`mpp/charge/xrpl`](https://lcp.integraledger.com/reference/pairings.md#mppchargexrpl) | `chargeXrpl` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | yes | [`mpp/charge/xrpl`](https://lcp.integraledger.com/profiles/mpp-charge-xrpl.md) | | [`mpp/session/evm`](https://lcp.integraledger.com/reference/pairings.md#mppsessionevm) | `sessionEvm` from `@integraledger/lcp/mpp` | `full` | no | `native-field` | yes | yes | [`mpp/session/evm-tempo`](https://lcp.integraledger.com/profiles/mpp-session-evm-tempo.md) | | [`mpp/session/hedera/stock`](https://lcp.integraledger.com/reference/pairings.md#mppsessionhederastock) | `sessionHederaStock` from `@integraledger/lcp/mpp` | `none` | no | `opaque-challenge` | no | no | [`mpp/session/hedera-solana-xrpl`](https://lcp.integraledger.com/profiles/mpp-session-hedera-solana-xrpl.md) | | [`mpp/session/lightning`](https://lcp.integraledger.com/reference/pairings.md#mppsessionlightning) | `sessionLightning` from `@integraledger/lcp/lightning` | `none` | no | `native-field` | no | no | [`mpp/charge`](https://lcp.integraledger.com/profiles/mpp-charge.md) | | [`mpp/session/solana/memo`](https://lcp.integraledger.com/reference/pairings.md#mppsessionsolanamemo) | `sessionSolanaMemo` from `@integraledger/lcp/mpp` | `full` | no | `native-field` | yes | yes | [`mpp/session/hedera-solana-xrpl`](https://lcp.integraledger.com/profiles/mpp-session-hedera-solana-xrpl.md) | | [`mpp/session/solana/stock`](https://lcp.integraledger.com/reference/pairings.md#mppsessionsolanastock) | `sessionSolanaStock` from `@integraledger/lcp/mpp` | `none` | yes | `native-field` | no | no | [`mpp/session/hedera-solana-xrpl`](https://lcp.integraledger.com/profiles/mpp-session-hedera-solana-xrpl.md) | | [`mpp/session/tempo`](https://lcp.integraledger.com/reference/pairings.md#mppsessiontempo) | `sessionTempo` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | yes | [`mpp/session/evm-tempo`](https://lcp.integraledger.com/profiles/mpp-session-evm-tempo.md) | | [`mpp/session/xrpl`](https://lcp.integraledger.com/reference/pairings.md#mppsessionxrpl) | `sessionXrpl` from `@integraledger/lcp/mpp` | `full` | no | `native-field` | yes | yes | [`mpp/session/hedera-solana-xrpl`](https://lcp.integraledger.com/profiles/mpp-session-hedera-solana-xrpl.md) | | [`mpp/session/xrpl/stock`](https://lcp.integraledger.com/reference/pairings.md#mppsessionxrplstock) | `sessionXrplStock` from `@integraledger/lcp/mpp` | `none` | no | `opaque-challenge` | no | no | [`mpp/session/hedera-solana-xrpl`](https://lcp.integraledger.com/profiles/mpp-session-hedera-solana-xrpl.md) | | [`mpp/subscription/solana`](https://lcp.integraledger.com/reference/pairings.md#mppsubscriptionsolana) | `subscriptionSolana` from `@integraledger/lcp/mpp` | `full` | no | `native-field` | yes | yes | [`mpp/subscription/solana`](https://lcp.integraledger.com/profiles/mpp-subscription-solana.md) | | [`mpp/subscription/stripe`](https://lcp.integraledger.com/reference/pairings.md#mppsubscriptionstripe) | `subscriptionStripe` from `@integraledger/lcp/mpp` | `none` | no | `opaque-challenge` | no | no | [`mpp/subscription/stripe`](https://lcp.integraledger.com/profiles/mpp-subscription-stripe.md) | | [`mpp/subscription/tempo`](https://lcp.integraledger.com/reference/pairings.md#mppsubscriptiontempo) | `subscriptionTempo` from `@integraledger/lcp/mpp` | `full` | yes | `native-field` | yes | yes | [`mpp/session/evm-tempo`](https://lcp.integraledger.com/profiles/mpp-session-evm-tempo.md) | ## `spend-permissions` | Pairing | Export | Coverage | Confirmed | Pattern | Binding on chain | Recoverable from chain | Profile | |---|---|---|---|---|---|---|---| | [`spend-permissions/eip155`](https://lcp.integraledger.com/reference/pairings.md#spend-permissionseip155) | `spendPermissionsEip155` from `@integraledger/lcp/spend-permissions` | `full` | yes | `native-field` | yes | no | [`spend-permissions/eip155`](https://lcp.integraledger.com/profiles/spend-permissions-eip155.md) | ## `ucp` | Pairing | Export | Coverage | Confirmed | Pattern | Binding on chain | Recoverable from chain | Profile | |---|---|---|---|---|---|---|---| | [`ucp/booking/ap2-mandate`](https://lcp.integraledger.com/reference/pairings.md#ucpbookingap2-mandate) | `bookingAp2Mandate` from `@integraledger/lcp/ucp` | `none` | no | `opaque-challenge` | no | no | [`ucp/checkout/legal-context`](https://lcp.integraledger.com/profiles/ucp-checkout-legal-context.md) | | [`ucp/booking/unsigned`](https://lcp.integraledger.com/reference/pairings.md#ucpbookingunsigned) | `bookingUnsigned` from `@integraledger/lcp/ucp` | `none` | no | `http-advisory` | no | no | [`ucp/checkout/legal-context`](https://lcp.integraledger.com/profiles/ucp-checkout-legal-context.md) | | [`ucp/checkout/agent-signed`](https://lcp.integraledger.com/reference/pairings.md#ucpcheckoutagent-signed) | `agentSigned` from `@integraledger/lcp/ucp` | `none` | no | `protocol-extension` | no | no | [`ucp/checkout/agent-signed`](https://lcp.integraledger.com/profiles/ucp-checkout-agent-signed.md) | | [`ucp/checkout/ap2-mandate`](https://lcp.integraledger.com/reference/pairings.md#ucpcheckoutap2-mandate) | `ap2Mandate` from `@integraledger/lcp/ucp` | `none` | no | `opaque-challenge` | no | no | [`ucp/checkout/legal-context`](https://lcp.integraledger.com/profiles/ucp-checkout-legal-context.md) | | [`ucp/checkout/unsigned`](https://lcp.integraledger.com/reference/pairings.md#ucpcheckoutunsigned) | `unsigned` from `@integraledger/lcp/ucp` | `none` | no | `http-advisory` | no | no | [`ucp/checkout/legal-context`](https://lcp.integraledger.com/profiles/ucp-checkout-legal-context.md) | ## `x402` | Pairing | Export | Coverage | Confirmed | Pattern | Binding on chain | Recoverable from chain | Profile | |---|---|---|---|---|---|---|---| | [`x402/auth-capture/eip155/eip3009`](https://lcp.integraledger.com/reference/pairings.md#x402auth-captureeip155eip3009) | `authCaptureEip3009` from `@integraledger/lcp/x402` | `full` | yes | `id-reuse` | yes | no | [`x402/auth-capture/eip155`](https://lcp.integraledger.com/profiles/x402-auth-capture-eip155.md) | | [`x402/auth-capture/eip155/permit2`](https://lcp.integraledger.com/reference/pairings.md#x402auth-captureeip155permit2) | `authCapturePermit2` from `@integraledger/lcp/x402` | `full` | yes | `id-reuse` | yes | no | [`x402/auth-capture/eip155`](https://lcp.integraledger.com/profiles/x402-auth-capture-eip155.md) | | [`x402/batch-settlement/cloudflare`](https://lcp.integraledger.com/reference/pairings.md#x402batch-settlementcloudflare) | `batchCloudflare` from `@integraledger/lcp/x402-batch-settlement` | `none` | no | `protocol-extension` | no | no | [`x402/batch-settlement/cloudflare`](https://lcp.integraledger.com/profiles/x402-batch-settlement-cloudflare.md) | | [`x402/batch-settlement/eip155`](https://lcp.integraledger.com/reference/pairings.md#x402batch-settlementeip155) | `batchEvm` from `@integraledger/lcp/x402-batch-settlement` | `full` | yes | `native-field` | yes | yes | [`x402/batch-settlement/eip155`](https://lcp.integraledger.com/profiles/x402-batch-settlement-eip155.md) | | [`x402/batch-settlement/solana`](https://lcp.integraledger.com/reference/pairings.md#x402batch-settlementsolana) | `batchSvm` from `@integraledger/lcp/x402-batch-settlement` | `full` | no | `native-field` | yes | yes | [`x402/batch-settlement/solana`](https://lcp.integraledger.com/profiles/x402-batch-settlement-solana.md) | | [`x402/exact/algorand`](https://lcp.integraledger.com/reference/pairings.md#x402exactalgorand) | `exactAvm` from `@integraledger/lcp/avm` | `full` | yes | `native-field` | yes | yes | [`x402/exact/algorand/note`](https://lcp.integraledger.com/profiles/x402-exact-algorand-note.md) | | [`x402/exact/aptos`](https://lcp.integraledger.com/reference/pairings.md#x402exactaptos) | `exactAptos` from `@integraledger/lcp/aptos` | `none` | yes | `http-advisory` | no | no | [`x402/exact/aptos`](https://lcp.integraledger.com/profiles/x402-exact-aptos.md) | | [`x402/exact/cardano`](https://lcp.integraledger.com/reference/pairings.md#x402exactcardano) | `exactCardano` from `@integraledger/lcp/cardano` | `full` | yes | `native-field` | yes | yes | [`x402/exact/cardano`](https://lcp.integraledger.com/profiles/x402-exact-cardano.md) | | [`x402/exact/cardano/lock`](https://lcp.integraledger.com/reference/pairings.md#x402exactcardanolock) | `exactCardanoLock` from `@integraledger/lcp/cardano` | `full` | yes | `native-field` | yes | yes | [`x402/exact/cardano`](https://lcp.integraledger.com/profiles/x402-exact-cardano.md) | | [`x402/exact/casper`](https://lcp.integraledger.com/reference/pairings.md#x402exactcasper) | `exactCasper` from `@integraledger/lcp/casper` | `full` | no | `native-field` | yes | yes | [`x402/exact/casper`](https://lcp.integraledger.com/profiles/x402-exact-casper.md) | | [`x402/exact/ccd`](https://lcp.integraledger.com/reference/pairings.md#x402exactccd) | `exactCcd` from `@integraledger/lcp/ccd` | `full` | no | `native-field` | yes | yes | [`x402/exact/ccd`](https://lcp.integraledger.com/profiles/x402-exact-ccd.md) | | [`x402/exact/eip155/eip3009`](https://lcp.integraledger.com/reference/pairings.md#x402exacteip155eip3009) | `exactEip3009` from `@integraledger/lcp/x402` | `full` | yes | `native-field` | yes | yes | [`x402/exact/eip155/eip3009`](https://lcp.integraledger.com/profiles/x402-exact-eip155-eip3009.md) | | [`x402/exact/eip155/erc7710`](https://lcp.integraledger.com/reference/pairings.md#x402exacteip155erc7710) | `exactErc7710` from `@integraledger/lcp/x402` | `none` | yes | `http-advisory` | no | no | [`x402/exact/eip155/erc7710`](https://lcp.integraledger.com/profiles/x402-exact-eip155-erc7710.md) | | [`x402/exact/eip155/erc7710-salt`](https://lcp.integraledger.com/reference/pairings.md#x402exacteip155erc7710-salt) | `exactErc7710Salt` from `@integraledger/lcp/x402` | `full` | yes | `native-field` | yes | yes | [`x402/exact/eip155/erc7710-salt`](https://lcp.integraledger.com/profiles/x402-exact-eip155-erc7710-salt.md) | | [`x402/exact/eip155/gateway-batched`](https://lcp.integraledger.com/reference/pairings.md#x402exacteip155gateway-batched) | `exactGatewayBatched` from `@integraledger/lcp/x402` | `none` | yes | `native-field` | no | no | [`x402/exact/eip155/gateway-batched`](https://lcp.integraledger.com/profiles/x402-exact-eip155-gateway-batched.md) | | [`x402/exact/eip155/permit2`](https://lcp.integraledger.com/reference/pairings.md#x402exacteip155permit2) | `exactPermit2` from `@integraledger/lcp/x402` | `full` | yes | `native-field` | yes | yes | [`x402/exact/eip155/permit2`](https://lcp.integraledger.com/profiles/x402-exact-eip155-permit2.md) | | [`x402/exact/hedera`](https://lcp.integraledger.com/reference/pairings.md#x402exacthedera) | `exactHedera` from `@integraledger/lcp/hedera` | `full` | yes | `native-field` | yes | yes | [`x402/exact/hedera`](https://lcp.integraledger.com/profiles/x402-exact-hedera.md) | | [`x402/exact/hedera/transfer-executor`](https://lcp.integraledger.com/reference/pairings.md#x402exacthederatransfer-executor) | `exactHederaExecutor` from `@integraledger/lcp/hedera` | `none` | no | `http-advisory` | no | no | [`x402/exact/hedera`](https://lcp.integraledger.com/profiles/x402-exact-hedera.md) | | [`x402/exact/lnbtc/payment-hash`](https://lcp.integraledger.com/reference/pairings.md#x402exactlnbtcpayment-hash) | `exactLnbtcPaymentHash` from `@integraledger/lcp/lightning` | `none` | yes | `native-field` | no | no | [`x402/exact/lnbtc/payment-hash`](https://lcp.integraledger.com/profiles/x402-exact-lnbtc-payment-hash.md) | | [`x402/exact/near`](https://lcp.integraledger.com/reference/pairings.md#x402exactnear) | `exactNear` from `@integraledger/lcp/near` | `full` | yes | `native-field` | yes | yes | [`x402/exact/near/memo`](https://lcp.integraledger.com/profiles/x402-exact-near-memo.md) | | [`x402/exact/polkadot/lcp-assets-remark`](https://lcp.integraledger.com/reference/pairings.md#x402exactpolkadotlcp-assets-remark) | `exactPolkadotRemark` from `@integraledger/lcp/polkadot` | `full` | yes | `native-field` | yes | yes | [`x402/exact/polkadot/lcp-assets-remark`](https://lcp.integraledger.com/profiles/x402-exact-polkadot-lcp-assets-remark.md) | | [`x402/exact/solana`](https://lcp.integraledger.com/reference/pairings.md#x402exactsolana) | `exactSvm` from `@integraledger/lcp/x402-exact-solana` | `full` | yes | `native-field` | yes | yes | [`x402/exact/solana`](https://lcp.integraledger.com/profiles/x402-exact-solana.md) | | [`x402/exact/starknet`](https://lcp.integraledger.com/reference/pairings.md#x402exactstarknet) | `exactStarknet` from `@integraledger/lcp/starknet` | `full` | yes | | yes | no | [`x402/exact/starknet`](https://lcp.integraledger.com/profiles/x402-exact-starknet.md) | | [`x402/exact/stellar/precondition`](https://lcp.integraledger.com/reference/pairings.md#x402exactstellarprecondition) | `exactStellarPrecondition` from `@integraledger/lcp/x402-exact-stellar` | `full` | yes | `native-field` | yes | yes | [`x402/exact/stellar/precondition`](https://lcp.integraledger.com/profiles/x402-exact-stellar-precondition.md) | | [`x402/exact/sui`](https://lcp.integraledger.com/reference/pairings.md#x402exactsui) | `exactSui` from `@integraledger/lcp/sui` | `full` | yes | `native-field` | yes | yes | [`x402/exact/sui`](https://lcp.integraledger.com/profiles/x402-exact-sui.md) | | [`x402/exact/tron/lcp-trc20-memo`](https://lcp.integraledger.com/reference/pairings.md#x402exacttronlcp-trc20-memo) | `exactTronMemo` from `@integraledger/lcp/tron` | `full` | yes | `native-field` | yes | yes | [`x402/exact/tron/lcp-trc20-memo`](https://lcp.integraledger.com/profiles/x402-exact-tron-lcp-trc20-memo.md) | | [`x402/exact/tvm`](https://lcp.integraledger.com/reference/pairings.md#x402exacttvm) | `exactTvm` from `@integraledger/lcp/tvm` | `full` | yes | `native-field` | yes | yes | [`x402/exact/tvm`](https://lcp.integraledger.com/profiles/x402-exact-tvm.md) | | [`x402/exact/xrpl`](https://lcp.integraledger.com/reference/pairings.md#x402exactxrpl) | `exactXrpl` from `@integraledger/lcp/x402-exact-xrpl` | `full` | yes | `id-reuse` | yes | no | [`x402/exact/xrpl`](https://lcp.integraledger.com/profiles/x402-exact-xrpl.md) | | [`x402/upto/eip155/permit2`](https://lcp.integraledger.com/reference/pairings.md#x402uptoeip155permit2) | `uptoPermit2` from `@integraledger/lcp/x402` | `full` | yes | `native-field` | yes | yes | [`x402/upto/eip155/permit2`](https://lcp.integraledger.com/profiles/x402-upto-eip155-permit2.md) | | [`x402/upto/solana`](https://lcp.integraledger.com/reference/pairings.md#x402uptosolana) | `uptoSvm` from `@integraledger/lcp/x402-upto-solana` | `full` | no | `native-field` | yes | yes | [`x402/upto/solana`](https://lcp.integraledger.com/profiles/x402-upto-solana.md) | | [`x402/upto/xrpl`](https://lcp.integraledger.com/reference/pairings.md#x402uptoxrpl) | `uptoXrpl` from `@integraledger/lcp/x402-upto-xrpl` | `none` | yes | `http-advisory` | no | no | [`x402/upto/xrpl`](https://lcp.integraledger.com/profiles/x402-upto-xrpl.md) | ## What each binding proves For each pairing, where H rides, from its data's `carrier`: `signed`, the field of what the payer signs that carries H, and `member`, the member of the option (x402) or of the challenge's request (MPP) the seller writes H into; then its data's `proves`, what a payment through it shows and what it does not. The text is the package's own, quoted as it is. Where it names `` and ``, the record fills them in. ### `ack/payment-request` **Where H rides:** nothing the payer signs carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. This ATR's hash is the id of the seller's ACK Payment Request token, with the link beside it; a receipt for that request embeds the token. The token's signature is not verified here. ACK defines no payer signature, so nothing the payer signed carries the hash, and the payment, which the payer's side sends before it presents the receipt, is known from the seller's report alone. This does not show that the payer's approval carried the hash. ### `acp/checkout/delegated` **Where H rides:** nothing the payer signs carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The checkout session this payment completed has this ATR's hash as its id, and its responses carried the ATR's link in metadata. The payment handler required delegate_payment, so ACP has the agent obtain a vault token whose allowance names this session as checkout_session_id, in a request the agent signs (a MUST in one section of ACP and RECOMMENDED in another) and the PSP SHOULD verify. No signature was verified here, nothing compares the agent's signer with the account that signed the agreement, and ACP does not require the PSP to hold the token to that session. The payment is known from the seller's report alone. This does not show that amount, payee or timing match the ATR's content. ### `acp/checkout/undelegated` **Where H rides:** nothing the payer signs carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The checkout session this payment completed has this ATR's hash as its id, and its responses carried the ATR's link in metadata. The payment handler did not require delegate_payment, so nothing the payer signed for the payment names the hash. The payment is known from the seller's report alone, which names it by the seller's own reference for the charge. ### `ap2/checkout-mandate` **Where H rides:** the mandate's `checkout_hash`, over a merchant-signed checkout carrying H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The closed AP2 Checkout Mandate presented carries checkout_hash, the SHA-256 of the checkout JWT presented beside it, and that JWT's payload carries this ATR's hash as its legalContext member. AP2 has the mandate signed by the user's trusted surface, or by the agent under the user's open mandate presented before it in a chain. That signature, the open mandate's signature, its delegation to the agent's key (cnf) and the chain's link were not verified here, and nothing compares the mandate's signer with the account that signed the agreement: AP2 has the Credential Provider verify the Payment Mandate, whose transaction_id is the same hash, before a payment credential issues. The payment, whether the merchant initiated it or the payer's side sent it, is known from the seller's report alone. This does not show that amount, payee or timing match the ATR's content. ### `ap2/checkout-mandate/x402` **Where H rides:** the mandate's `checkout_hash`, over a merchant-signed checkout carrying H; the x402 authorization's nonce is keccak-256 of the payment mandate chain, and carries no H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken. This does not show that the account is this payment's payer. The payment paid of the token to in on : an EIP-3009 transfer authorization whose nonce is keccak-256 of the payment mandate chain it was presented with, as AP2's payment processor requires, and whose chain's closed Payment Mandate names, as its transaction_id, the checkout_hash of the closed AP2 Checkout Mandate presented. That checkout_hash is the SHA-256 of the checkout JWT presented beside it, and that JWT's payload carries this ATR's hash as its legalContext member; the payment itself carries no hash of this ATR. No mandate signature was verified here: AP2 has the Credential Provider verify the mandates. This does not show that amount, payee or timing match the ATR's content. ### `card/mastercard-agent-pay` **Where H rides:** H followed by 32 random bytes in the nonce of an Agent Pay message signature, which the agent signs; H also in the checkout path for an agent whose nonce does not carry it. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. Every Mastercard Agent Pay message signature in the agent's checkout request, tagged Agent-pay-auth or agent-pay-auth, covers this ATR's hash: its nonce, whose first 32 bytes are the hash, or the request's path, whose last segment is the hash. The seller checked where the hash rides and did not verify a signature here, and nothing compares the agent's key with the account that signed the agreement. The card authorization itself does not carry the hash. This does not show that amount, payee or timing match the ATR's content. ### `card/mastercard-vi/autonomous` **Where H rides:** `legalContext` in the merchant's `checkout_jwt`, whose hash the agent's mandate signs. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. An agent signed a Verifiable Intent L3b checkout mandate whose checkout_hash is the SHA-256 of a checkout_jwt carrying this ATR's hash, with the key the presented L2 mandate delegates to it. The seller verified both ES256 signatures and the sd_hash links, but not the L1 issuer's signature, and nothing compares the L2 or L3b signer with the account that signed the agreement. The L2 signature does not cover the hash, and the seller did not see the L3a payment mandate the network received, whose transaction_id Verifiable Intent requires to equal this checkout_hash. This does not show that amount, payee or timing match the ATR's content. ### `card/mastercard-vi/immediate` **Where H rides:** `legalContext` in the `checkout_jwt` (the merchant's, or one the agent created), whose hash the user's mandate signs. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The Verifiable Intent L2 mandate presented lists a checkout mandate whose checkout_hash is the SHA-256 of a checkout_jwt carrying this ATR's hash, and the payment mandate's transaction_id, where disclosed, equals it. The seller checked those values and did not verify the L2 mandate's signature, which Verifiable Intent has the payment network validate before authorization, and nothing compares the L2 mandate's signer with the account that signed the agreement. The card authorization itself does not carry the hash. This does not show that amount, payee or timing match the ATR's content. ### `card/seller-reference` **Where H rides:** nothing the payer signs carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. This ATR's hash and link are for the seller to show the buyer before payment and to put in its processor's metadata under legal_context, beside the seller's own reference for the charge. Nothing the payer signed for this payment carries the hash, and the payment is known from the seller's report alone, which names it by that reference. This does not show that the payer's approval carried the hash. ### `card/visa-tap` **Where H rides:** H followed by 32 random bytes in the signature's nonce, which the agent signs; H also in the checkout path for stock agents. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. Every TAP agent-payer-auth message signature in the agent's checkout request covers this ATR's hash: its nonce, whose first 32 bytes are the hash, or the request's path, whose last segment is the hash. The seller checked where the hash rides and did not verify a signature here, which belongs to its TAP recognition step, and nothing compares the agent's key with the account that signed the agreement. The card authorization itself does not carry the hash. This does not show that amount, payee or timing match the ATR's content. ### `card/visa-vic` **Where H rides:** nothing the payer signs carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The agent's Visa Intelligent Commerce credential request carried this ATR's hash as its transactionReferenceId, which the seller read from the credential payload Visa signs for the sale. Verifying that payload is the seller's and was not done here, and nothing compares the agent or the cardholder with the account that signed the agreement. The card authorization itself does not carry the hash. This does not show that amount, payee or timing match the ATR's content. ### `mpp/charge/card` **Where H rides:** nothing the payer signs carries H. The seller writes H into the challenge request's `externalId`. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The seller's MPP challenge carried this ATR's hash in its id and its opaque reference, bound to the challenge by the seller's own server, and the credential presented echoed that challenge. The seller also placed the hash in the request's externalId. Nothing the payer or its card signed carries the hash, and the payment is known from the seller's report alone. This does not show that the payer's approval carried the hash. ### `mpp/charge/evm/authorization` **Where H rides:** the EIP-3009 `nonce`, `keccak256(JSON.stringify([id, realm]))`, a 256-bit digest over a preimage holding H. **What it proves:** The payer signed an EIP-3009 transfer authorization whose nonce is keccak256 of this challenge's id and realm, and the id is this ATR's hash in base64url with the challenge's position. The token contract verified the signature when it executed the transfer, and the nonce is on chain as the nonce topic of its AuthorizationUsed event. A holder of the ATR and the realm can confirm the hash from that nonce; the chain alone does not reveal it. This does not show that amount, payee, asset or timing match the ATR's content. ### `mpp/charge/evm/hash` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this payment, an account signed an agreement carrying this ATR's hash on , recorded in ; that shows neither that the account is the payer nor when this charge was taken. The payment is an ERC-20 transfer signed as a whole transaction (`transaction`), or broadcast by its signer and named by its hash (`hash`), answering a challenge whose id and opaque carry this ATR's hash. The payment transaction does not carry the hash; the read found that the named transaction succeeded and moved a token to the challenge's recipient. This does not show that amount, payee, asset or timing match the ATR's content. ### `mpp/charge/evm/permit2` **Where H rides:** the Permit2 witness's `challengeHash`, a digest over the challenge holding H; the permit's `nonce` is required to be the same value, and `bound` refuses a permit under another. **What it proves:** The payer signed a Permit2 transfer, single or batch, whose witness carries keccak256 of this challenge's id and realm, and the id is this ATR's hash in base64url with the challenge's position. Permit2 verified the signature when it executed the transfer; a batch's transfers all executed in that one call. The witness is in the settlement transaction's calldata only as a hash, and no event carries it. This does not show that amount, payee, asset, splits or timing match the ATR's content. ### `mpp/charge/evm/transaction` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this payment, an account signed an agreement carrying this ATR's hash on , recorded in ; that shows neither that the account is the payer nor when this charge was taken. The payment is an ERC-20 transfer signed as a whole transaction (`transaction`), or broadcast by its signer and named by its hash (`hash`), answering a challenge whose id and opaque carry this ATR's hash. The payment transaction does not carry the hash; the read found that the named transaction succeeded and moved a token to the challenge's recipient. This does not show that amount, payee, asset or timing match the ATR's content. ### `mpp/charge/lcp/hedera` **Where H rides:** the memo of the TransferTransaction body the buyer signs: H's LCP string (77 bytes), all of H, in lowercase hex. **What it proves:** The payer's own signed act carries this ATR's hash: a Hedera crypto transfer whose memo is the hash's LCP string reached consensus with SUCCESS, debiting the payer, the one account its rows debit, and paid the account it credits, recorded with the asset and amount it moved. The memo is in the public transaction record, readable by transaction id. It compares no amount, asset or time with the ATR's terms. ### `mpp/charge/lightning` **Where H rides:** nothing the payer signs carries H. The seller writes H into the challenge request's `methodDetails.invoice`. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The seller's node's BOLT11 invoice's description hash is this ATR's hash, and the ATR commits its payment hash. The invoice is decoded strictly and its signer is recovered; no payee key is compared with that signer, and the payer signed nothing that carries the hash. The preimage, which every node on the payment's route learns, shows that the secret behind the hash left the seller's custody, never who paid, and to anyone but the seller's node not that the invoice was paid; no public ledger shows the payment. Settlement is the seller's report. This does not show that amount, payee or timing match the ATR's content. ### `mpp/charge/nearintents` **Where H rides:** nothing the payer signs carries H. The seller writes H into the challenge request's `externalId`. **What it proves:** Before this payment was reported, an agreement transaction carrying this ATR's hash was signed on , recorded in ; this shows neither that its signer is the payer nor when the deposit was made. The seller's MPP challenge carried the hash in its externalId. The deposit carries no hash, and its payer signed nothing that does. The seller reported it paid. ### `mpp/charge/solana` **Where H rides:** one Memo instruction, H's LCP string. The seller writes H into the challenge request's `externalId`. **What it proves:** The payer's own signed act carries this ATR's hash: a Solana transaction the buyer's account signed, whose one LCP-form Memo instruction is the hash's LCP string, final at `finalized` with no error. It paid each transfer it made from the buyer's account, recorded with its mint or lamports, amount and recipient, one of zero included, the recipient being the owner the transaction's token balances name; as a payment, one of them reached an account the option's payee owns. The memo is in the transaction's instruction data on chain. It compares no amount, mint or time with the ATR's terms. ### `mpp/charge/solana/unsponsored` **Where H rides:** one Memo instruction, H's LCP string. The seller writes H into the challenge request's `externalId`. **What it proves:** The payer's own signed act carries this ATR's hash: a Solana transaction the buyer's account signed, whose one LCP-form Memo instruction is the hash's LCP string, final at `finalized` with no error. It paid each transfer it made from the buyer's account, recorded with its mint or lamports, amount and recipient, one of zero included, the recipient being the owner the transaction's token balances name; as a payment, one of them reached an account the option's payee owns. The memo is in the transaction's instruction data on chain. It compares no amount, mint or time with the ATR's terms. ### `mpp/charge/stripe` **Where H rides:** nothing the payer signs carries H. The seller writes H into the challenge request's `methodDetails.metadata.legal_context`. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The seller's MPP challenge carried this ATR's hash in its id and its opaque reference, bound to the challenge by the seller's own server, and the credential presented echoed that challenge. The seller also placed the hash in the PaymentIntent's metadata under legal_context. Nothing the payer or its Stripe token signed carries the hash, and the payment is known from the seller's report alone. This does not show that the payer's approval carried the hash. ### `mpp/charge/tempo/split-memo` **Where H rides:** the `memo` of the one `transferWithMemo` call to `currency` whose memo is H, the split `{recipient, amount: 1, memo: H}` the challenge carries, in the Tempo transaction the payer signs; all of H. The seller writes H into the challenge request's `methodDetails.splits`. **What it proves:** The ATR's hash is in the MPP Tempo charge challenge the payer answered: its id is the hash in base64url with the challenge's position, and one of its splits carries the hash as its memo. The payer's own signed Tempo transaction carries all of the hash as the memo of a `transferWithMemo` call, and the chain verified the payer's signature when it executed the call. The record states "paid" where value moved, with the account it reached, and "signed" where nothing moved. This does not show that amount, payee, asset or timing match the ATR's content. ### `mpp/charge/tempo/split-memo/push` **Where H rides:** the `memo` of the one `transferWithMemo` call to `currency` whose memo is H, in the Tempo transaction the payer signed and broadcast; all of H. The seller writes H into the challenge request's `methodDetails.splits`. **What it proves:** The ATR's hash is in the MPP Tempo charge challenge the payer answered: its id is the hash in base64url with the challenge's position, and one of its splits carries the hash as its memo. The payer's own signed Tempo transaction carries all of the hash as the memo of a `transferWithMemo` call, and the chain verified the payer's signature when it executed the call. The record states "paid" where value moved, with the account it reached, and "signed" where nothing moved. This does not show that amount, payee, asset or timing match the ATR's content. ### `mpp/charge/usdc/evm` **Where H rides:** the EIP-3009 `nonce`, keccak256 of the JCS of `{id, method, realm, intent, requestHash}`, a digest over H. **What it proves:** The payer signed an EIP-3009 authorization whose nonce is keccak256 of the JCS of this challenge's id, realm and request hash, and the id is this ATR's hash in base64url with the challenge's position. The token contract verified the signature when it executed the transfer, and the nonce is on chain in its AuthorizationUsed event. A holder of the ATR, the realm and the request can confirm the hash; the chain alone does not reveal it. This does not show that amount, payee, asset or timing match the ATR's content. ### `mpp/charge/usdc/gateway` **Where H rides:** the Circle Gateway burn intent's TransferSpec `salt`, a digest over the challenge `id`, which the payer signs and which is not public. **What it proves:** The payer signed a Circle Gateway burn intent whose TransferSpec salt is keccak256 of the JCS of this challenge's id and parameters, and the id is this ATR's hash in base64url with the challenge's position. The signature is not verified here. The salt travels inside the TransferSpec that the destination mint carries, and the Gateway Minter emits that TransferSpec's keccak256 hash; this record reads no chain, and settlement is the seller's report. This does not show that amount, payee, asset or timing match the ATR's content. ### `mpp/charge/usdc/solana` **Where H rides:** one Memo instruction, H's LCP string. The seller writes H into the challenge request's `externalId`. **What it proves:** The payer's own signed act carries this ATR's hash: a Solana transaction the buyer's account signed, whose one LCP-form Memo instruction is the hash's LCP string, final at `finalized` with no error. It paid each transfer it made from the buyer's account, recorded with its mint or lamports, amount and recipient, one of zero included, the recipient being the owner the transaction's token balances name; as a payment, one of them reached an account the option's payee owns. The memo is in the transaction's instruction data on chain. It compares no amount, mint or time with the ATR's terms. ### `mpp/charge/usdc/stacks` **Where H rides:** the SIP-010 `transfer`'s memo argument, `(some H)` with H's 32 bytes as a buffer, in the transaction the origin signs. **What it proves:** The payer signed a Stacks transaction whose origin is the payer and which carries this ATR's hash as the `(some H)` memo of a SIP-010 `transfer`, or as a token transfer's memo. The chain verified the origin's signature, the transaction executed with status success on the canonical chain, and the memo is in the mined transaction on chain. Where it made a transfer, one of zero included, it paid that transfer's recipient, named in the record; the origin, never a sponsor, is the signer. This does not show that the contract is a SIP-010 token, or that amount, asset or timing match the ATR's content. ### `mpp/charge/xrpl` **Where H rides:** the Payment's `InvoiceID`, H itself. The seller writes H into the challenge request's `methodDetails.invoiceId`. **What it proves:** The payer signed an XRPL Payment whose InvoiceID is this ATR's hash, and it is in a validated ledger with tesSUCCESS: it paid the amount meta.delivered_amount states to the account its Destination names. This does not show that amount, destination, asset or timing match the ATR's content. ### `mpp/session/evm` **Where H rides:** the channel `salt`, which is H; an `authorization` funding's EIP-3009 nonce is a digest over the channel's parameters and H, and a `permit2` funding's witness carries the salt. **What it proves:** The ATR's hash is in the MPP session challenge this channel opened under: its id is the hash in base64url with the challenge's position. The payer opened a payment channel whose salt is this ATR's hash, so the channel id, keccak256 over the payer, payee, token, salt, authorized signer, escrow and chain, commits to it. The payer signed that opening as an open call carrying the salt, an EIP-3009 authorization whose nonce is MPP's hash over the channel parameters and the salt, or a Permit2 transfer whose witness carries the salt. The seller read that the opening transaction succeeded and moved the payer's deposit to the escrow, and that the escrow ran the open call as the transaction shows it: an `openWithAuthorization` by its token's AuthorizationUsed of the payer and the nonce the escrow recomputes over the channel parameters and the salt, or an `openWithPermit2` as the transaction's own call to the escrow. Its salt is this ATR's hash, its payee is the channel's beneficiary, and the payer is the account its authorization or permit is signed by, whose deposit moved to the escrow. This does not show that amount, payee, asset or timing match the ATR's content. Each voucher in this channel signs a commitment to this ATR's hash. ### `mpp/session/hedera/stock` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this session, an account signed an agreement transaction carrying this ATR's hash on the session's Hedera network. The opening the credential names reached consensus: the account its ChannelOpened log names as payer deposited the deposit into the escrow's channel, whose payee the log names, after the block the agreement was recorded at. The opening does not carry the hash, and this does not show that the account that signed the agreement is the one that opened the channel unless the record compares the two. Vouchers sign the channel id and an amount, not the hash. This does not show that amount, deposit, payee or timing match the ATR's content. ### `mpp/session/lightning` **Where H rides:** nothing the payer signs carries H. The seller writes H into the challenge request's `depositInvoice`. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The seller's node's BOLT11 invoice's description hash is this ATR's hash, and the ATR commits its payment hash. The invoice is decoded strictly and its signer is recovered; no payee key is compared with that signer, and the payer signed nothing that carries the hash. The preimage, which every node on the payment's route learns, shows that the secret behind the hash left the seller's custody, never who paid, and to anyone but the seller's node not that the invoice was paid; no public ledger shows the payment. Settlement is the seller's report. This does not show that amount, payee or timing match the ATR's content. The close is the seller's report. ### `mpp/session/solana/memo` **Where H rides:** one Memo instruction, H's LCP string, in the open the payer signs. **What it proves:** The payer's own signed act carries this ATR's hash: a Solana transaction the buyer's account signed, whose one LCP-form Memo instruction in the `open` the seller's operator co-signed and submitted is the hash's LCP string, final at `finalized` with no error, which deposited the amount its `open` names into a payment channel whose payee or distribution names the option's payee, recorded with its mint and amount. The memo is in the transaction's instruction data on chain. Vouchers and the close do not carry the hash. It compares no amount, mint or time with the ATR's terms. ### `mpp/session/solana/stock` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this opening was taken, an account signed an agreement transaction carrying this ATR's hash on , recorded in . The opening, a stock MPP session's payment-channel open that its payer broadcast and that carries no hash, came after it and deposited the amount its `open` names into a channel whose payee or distribution names the option's payee. This does not show that the account that signed the agreement is the opening's payer, nor that amount, recipient, mint or timing match the ATR's content. ### `mpp/session/tempo` **Where H rides:** the channel `salt`, which is H, in the `open` call to the escrow the payer signs; on the newer session protocol the descriptor carries it too. **What it proves:** The ATR's hash is in the MPP session challenge this channel opened under: its id is the hash in base64url with the challenge's position. The payer signed a Tempo transaction whose one call to the channel escrow opens a channel with this ATR's hash as its salt, and the chain verified that signature when it executed the call. The escrow's ChannelOpened event names the channel, whose id commits to the salt, and carries the salt itself, on the v1 escrow as on the TIP-1034 escrow. This does not show that amount, payee, asset or timing match the ATR's content. Each voucher in this channel signs a commitment to this ATR's hash. ### `mpp/session/xrpl` **Where H rides:** one memo, H's LCP string, in the `PaymentChannelCreate` the buyer signs and the server submits. **What it proves:** The payer signed an XRPL PaymentChannelCreate whose one LCP memo carries this ATR's hash, and it is in a validated ledger with tesSUCCESS: it deposited the create's Amount into a channel whose beneficiary is the account its Destination names. The memo is in the public transaction. Vouchers in this channel sign the channel id and an amount, not the hash. This does not show that amount, deposit, destination, settle delay or timing match the ATR's content. ### `mpp/session/xrpl/stock` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this session, an account signed an agreement transaction carrying this ATR's hash on the session's XRPL network. The channel's create is in a validated ledger with tesSUCCESS: the account the voucher's source names deposited the create's Amount into the channel the voucher names, whose beneficiary is the account its Destination names, after the ledger the agreement was recorded at. The create does not carry the hash, and this does not show that the account that signed the agreement is the one that opened the channel unless the record compares the two. Vouchers sign the channel id and an amount, not the hash. This does not show that amount, deposit, destination, settle delay or timing match the ATR's content. ### `mpp/subscription/solana` **Where H rides:** the Memo instruction of the activation, H's LCP string. The seller writes H into the challenge request's `externalId`. **What it proves:** The payer's own signed act carries this ATR's hash: a Solana transaction the buyer's account signed, a subscription's activation, whose one LCP-form Memo instruction is the hash's LCP string, final at `finalized` with no error, which paid the first period to an account the option's payee owns, recorded with its mint and amount. The memo is in the transaction's instruction data on chain. Renewals are the seller's later pulls, which do not carry the hash. It compares no amount, mint, period or time with the ATR's terms. ### `mpp/subscription/stripe` **Where H rides:** nothing the payer signs carries H. The seller writes H into the challenge request's `methodDetails.metadata.legal_context`. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The seller's MPP challenge carried this ATR's hash in its id and its opaque reference, bound to the challenge by the seller's own server, and the credential presented echoed that challenge. The seller also placed the hash in the metadata under legal_context of the payment that activates the subscription. Nothing the payer or its Stripe token signed carries the hash, and the activation is known from the seller's report alone. This does not show that the payer's approval carried the hash. ### `mpp/subscription/tempo` **Where H rides:** the key authorization's witness, the challenge `id`'s 32 bytes, which are H. **What it proves:** The ATR's hash is the MPP subscription challenge's id, in base64url. The payer's root key signed a Tempo key authorization whose witness is this ATR's hash, granting the seller's access key a per-period limit. The chain verified that signature when the activation transaction registered the key, and the account keychain's KeyAuthorizationWitness event carries the payer's account and this hash as topics. The key authorization names one recipient the key may pay; what the same transaction transferred from the payer's account, if anything, is recorded as what moved, with its recipient. This does not show that amount, period, payee, asset or timing match the ATR's content. ### `spend-permissions/eip155` **Where H rides:** the Spend Permission's `salt`, which is H, all of H: a member of the EIP-712 hash the account signs in the SpendPermissionManager's domain, or of the permission the account's own `approve` call carries. **What it proves:** The account named signed a Spend Permission whose salt is this ATR's hash, naming the payee as spender, and the SpendPermissionManager approved it: the hash is on chain in the permission its SpendPermissionApproved event carries in the approval's transaction. The approval moves nothing. This does not show that any amount was later spent, nor that the allowance, period, token or timing match the ATR's content. ### `ucp/booking/ap2-mandate` **Where H rides:** the mandate's `checkout_hash`, over the booking whose `links[]` carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The booking carried this ATR's hash and link as its legal_context link. The checkout mandate presented under UCP's AP2 Mandates extension carries checkout_hash, the SHA-256 of the booking JWT presented beside it, and the hash was read from that JWT's booking. The mandate's signature, and, where an open mandate precedes it in a chain, that mandate's signature, its delegation (cnf) and the chain's link, were not verified here, and nothing compares the mandate's signer with the account that signed the agreement; the PSP verifies the payment mandate over the same booking hash. The payment is known from the seller's report alone. This does not show that amount, payee or timing match the ATR's content. ### `ucp/booking/unsigned` **Where H rides:** nothing the payer signs carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The booking response carried this ATR's hash and link as its legal_context link. UCP without the AP2 Mandates extension defines no buyer signature, so the payer's approval did not sign the hash. The payment is known from the seller's report alone. ### `ucp/checkout/agent-signed` **Where H rides:** the `legal_context` member of the platform's request that completes the checkout, which the platform's RFC 9421 signature covers through `content-digest`. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The checkout response carried this ATR's hash and link as its legal_context link, and the platform's request that completed the checkout carried the hash in its legal_context member, with a Content-Digest that is the SHA-256 of that request's body. The platform's RFC 9421 signature over the request, which UCP has the business verify with the key in the platform's profile, was not verified here, and nothing ties that key to the account that signed the agreement. The seller reported the payment. This does not show that amount, payee or timing match the ATR's content. ### `ucp/checkout/ap2-mandate` **Where H rides:** the mandate's `checkout_hash`, over the checkout whose `links[]` carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The checkout carried this ATR's hash and link as its legal_context link. The checkout mandate presented under UCP's AP2 Mandates extension carries checkout_hash, the SHA-256 of the checkout JWT presented beside it, and the hash was read from that JWT's checkout. The mandate's signature, and, where an open mandate precedes it in a chain, that mandate's signature, its delegation (cnf) and the chain's link, were not verified here, and nothing compares the mandate's signer with the account that signed the agreement; the PSP verifies the payment mandate over the same checkout hash. The payment is known from the seller's report alone. This does not show that amount, payee or timing match the ATR's content. ### `ucp/checkout/unsigned` **Where H rides:** nothing the payer signs carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The checkout response carried this ATR's hash and link as its legal_context link. UCP without the AP2 Mandates extension defines no buyer signature, so the payer's approval did not sign the hash. The payment is known from the seller's report alone, which names it by the seller's own reference for the charge. ### `x402/auth-capture/eip155/eip3009` **Where H rides:** `PaymentInfo.salt`: H where `receiverAuthorizer` and `policy` are absent, else `keccak256` over a typehash, both and H; a bound salt travels with `saltNonce`, which is H. **What it proves:** The payer signed a token authorization whose nonce commits, through the escrow's PaymentInfo, to a salt that is this ATR's hash when unbound, or a commitment over it with the receiver authorizer and policy when bound. The token contract verified the signature when the escrow collected the payment, and the escrow's event carries the salt. When unbound, the salt is this ATR's hash, so the settled transaction itself shows it. When bound, a holder of the ATR, the receiver authorizer and the policy can confirm the hash from the salt; the chain alone does not reveal it. This record covers that first collection; capture, void, refund and reclaim are the operator's and the payer's. ### `x402/auth-capture/eip155/permit2` **Where H rides:** `PaymentInfo.salt`: H where `receiverAuthorizer` and `policy` are absent, else `keccak256` over a typehash, both and H; a bound salt travels with `saltNonce`, which is H. **What it proves:** The payment presented a Permit2 authorization whose nonce commits, through the escrow's PaymentInfo, to a salt that is this ATR's hash when unbound, or a commitment over it with the receiver authorizer and policy when bound. The escrow's event in the settlement transaction carries that PaymentInfo, salt included, and names the deployment's Permit2 collector as the token collector that funded it. When unbound, the salt is this ATR's hash, so the settled transaction itself shows it. When bound, a holder of the ATR, the receiver authorizer and the policy can confirm the hash from the salt; the chain alone does not reveal it. This record covers that first collection; capture, void, refund and reclaim are the operator's and the payer's. ### `x402/batch-settlement/cloudflare` **Where H rides:** nothing the payer signs carries H. **What it proves:** The request whose payment echoed this ATR's hash in the legalContext entry of x402's extensions was signed with an HTTP message signature key registered with Cloudflare, which Cloudflare verifies, billing that key's registered identity off chain. The echoed hash only locates the sale: the pairing follows no agreement, and no public ledger records the payment. This does not show that amount, asset or timing match the ATR's content. ### `x402/batch-settlement/eip155` **Where H rides:** `ChannelConfig.salt`, which is H, all of H; in the scheme's refund-authorizer mode (`extra.voucherManager` `"facilitator"` with a non-zero `extra.refundAuthorizer`), whose channel salt packs entropy and the refund authorizer, the deposit authorization's salt (`erc3009Authorization.salt`) or the Permit2 deposit's nonce, which is H. **What it proves:** The payer signed a token authorization for a deposit into an x402 batch-settlement channel whose identifier, the EIP-712 hash of the channel's configuration, commits to this ATR's hash as the configuration's salt, or, in the scheme's refund-authorizer mode, whose own salt is this ATR's hash. The token contract or Permit2 verified that signature when the channel contract collected the deposit, and the hash is on chain as the salt in the channel's ChannelCreated event, or in that mode in the deposit call. Each voucher in this channel signs a commitment to the channel, and so, outside that mode, to this ATR's hash. This does not show that amount, payee, asset or timing match the ATR's content. ### `x402/batch-settlement/solana` **Where H rides:** the seller's Memo instruction in the channel's opening, H's LCP string, next to the scheme's own receiver-authorizer memo. The seller writes H into the option's `extra.memo`. **What it proves:** The payer's own signed act carries this ATR's hash: a Solana transaction the buyer's account signed, whose seller Memo instruction (`extra.memo`), beside the scheme's receiver-authorizer memo, is the hash's LCP string, final at `finalized` with no error, which deposited the amount its `open` names into a payment channel whose payee or distribution names the option's payee, recorded with its mint and amount. The memo is in the transaction's instruction data on chain. It compares no amount, mint or time with the ATR's terms. ### `x402/exact/algorand` **Where H rides:** the asset transfer's `note`: H's LCP string, the 77 ASCII bytes `lcp:sha256:` and H in 0x lowercase hex, all of H. **What it proves:** The payer's account authorized an Algorand asset transfer whose note is this ATR's hash in LCP string form, with a key's signature, a multisignature or a Falcon signature, by the account's own key or the key it is rekeyed to; a logic signature, or a transfer that names an asset sender, is no such act. The ledger verified that authorization when it confirmed the transaction, which is final on confirmation, and the note is on chain in it. Where the transfer moved an amount, zero included, the payer paid it to the account the transfer names (`arcv`). As an agreement, it shows that this account signed the transfer carrying the hash. It does not show that amount, asset or timing match the ATR's content. ### `x402/exact/aptos` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this payment was taken, an account signed an agreement transaction carrying this ATR's hash on , recorded in ; this shows neither that the account is the payer nor what the agreement moved. The ATR was assembled before the challenge went out, and the challenge advertised its hash and link. The payer's signed Aptos transaction does not carry the hash. The resource server tied the hash to this payment when it recorded the hash for this request, and the read identified the payment as the sender's committed transaction at its signed sequence number, signed by an account other than the option's payee and depositing to a store the payee owns. What it moved is recorded as observed: this does not show that amount, asset or timing match the ATR's content. ### `x402/exact/cardano` **Where H rides:** CIP-20 metadata, label 674, holding H's LCP string, to which the signed body's auxiliary-data hash (key 7) commits; all of H. **What it proves:** The payer, the payment credential that holds the input the payment names, signed a Cardano transaction whose body commits through its auxiliary_data_hash to a CIP-20 message (label 674) carrying this ATR's hash, and the ledger included it as valid at the mark read. It paid: the read names each output it created, to which payment credential and in what asset and amount, as observed, and on a payment one output reached the payee's payment credential. A transaction with fewer confirmations than the ledger's security parameter (2160 on mainnet) can be rolled back. The read compares no amount, asset or time with the ATR's terms. ### `x402/exact/cardano/lock` **Where H rides:** CIP-20 metadata, label 674, holding H's LCP string, to which the signed body's auxiliary-data hash (key 7) commits; all of H. **What it proves:** The payer, the payment credential that holds the input the payment names, signed a Cardano transaction whose body commits through its auxiliary_data_hash to a CIP-20 message (label 674) carrying this ATR's hash, and the ledger included it as valid at the mark read. It deposited into a contract: the read names each output it created, as observed, and on a Masumi lock the beneficiary its escrow datum names. A deposit is a charge and never an agreement. The read compares no amount, asset or time with the ATR's terms. ### `x402/exact/casper` **Where H rides:** the CEP-3009 authorization's 32-byte `nonce`, which is H, signed by `from`; on an agreement, the agreement's own value, SHA-256 over the ASCII bytes `lcp-agreement-v1` and H. **What it proves:** The payer's own signed CEP-3009 authorization carries this ATR's hash as its nonce (on an agreement, the agreement's value of it), which the token contract verified with the payer's key when it executed the call. It paid the account its `to` names the amount its `value` states, zero included: on a payment, the option's `payTo`. This does not show that the amount, the asset or the timing match the ATR's content. ### `x402/exact/ccd` **Where H rides:** the transfer's memo, H's LCP string, in the account transaction the sender signs; all of H. **What it proves:** The payer signed a Concordium transaction one of whose transfers carries this ATR's hash, in LCP string form, as its memo. The chain accepted the transaction only with the sender's valid signature, and the memo is on chain in the finalized transfer event. Where the transfer moved an amount, zero included, the payer paid it to the account the transfer names. It does not show that amount, token or timing match the ATR's content. ### `x402/exact/eip155/eip3009` **Where H rides:** the EIP-3009 `nonce`, which is H, all of H; for the act `agreement`, the tagged digest over the agreement tag and H. **What it proves:** The payer signed an EIP-3009 transfer authorization whose nonce is this ATR's hash, or for an agreement the agreement's value of it. The token contract verified that signature when it executed the transfer, and the hash is on chain as the nonce topic of its AuthorizationUsed event in the settlement transaction. This does not show that amount, payee, asset or timing match the ATR's content. ### `x402/exact/eip155/erc7710` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this payment was taken, an account signed an agreement transaction carrying this ATR's hash on , recorded in ; this shows neither that the account is the payer nor what the agreement moved. The ATR was assembled and delivered before the payment, and the payment payload echoed this ATR's hash in the legalContext entry of x402's extensions. The read found the named settlement transaction, after the agreement's position, holding a transfer from the payment's delegator to the payee. The delegation does not sign the hash, and the settlement transaction does not carry it. ### `x402/exact/eip155/erc7710-salt` **Where H rides:** the leaf delegation's `salt`, which is H, all of H, through the reference manager on a chain of its list. **What it proves:** The leaf delegation of the permission context redeemed for this payment, made through MetaMask's DelegationManager, carries this ATR's hash as its signed salt. The manager verified every delegation's signature when it redeemed them, and the leaf, with its salt, is in a RedeemedDelegation event in the settlement transaction. The leaf's signer is its delegator, which may be an account the paying account authorised rather than the paying account itself. This does not show that amount, payee, asset or timing match the ATR's content. ### `x402/exact/eip155/gateway-batched` **Where H rides:** the nonce of the `TransferWithAuthorization` signed in Circle Gateway's `GatewayWalletBatched` domain, which is H, all of H; no public ledger shows it. **What it proves:** Before this payment was reported, an account signed an agreement transaction carrying this ATR's hash on , recorded in ; this shows neither that the account is the payer nor when the payment was taken. The payment presented was a Circle Gateway batched authorization whose nonce is this ATR's hash, signed under the Gateway Wallet's domain; no public ledger records it, since a batch carries each depositor's net change and no payment's nonce, and Circle's transfers API listing it by its nonce is Circle's statement, not a ledger's. The seller reported it paid. This does not show that amount, payee, asset or timing match the ATR's content. ### `x402/exact/eip155/permit2` **Where H rides:** the Permit2 `nonce`, which is H, all of H; for the act `agreement`, the tagged digest over the agreement tag and H. **What it proves:** The payer signed a Permit2 witness transfer whose nonce is this ATR's hash, or for an agreement the agreement's value of it, with the scheme's x402 proxy as spender and the payee in the witness. Permit2 verified the signature when the proxy executed the transfer, and the hash is in the settlement transaction's calldata as the Permit2 nonce; no event carries it. This does not show that amount, payee, asset or timing match the ATR's content. ### `x402/exact/hedera` **Where H rides:** the memo of the transfer body the buyer signs: H's LCP string (77 bytes), all of H, in lowercase hex. **What it proves:** The payer's own signed act carries this ATR's hash: a Hedera crypto transfer whose memo is the hash's LCP string reached consensus with SUCCESS, debiting the payer, the one account its rows debit, and paid the account it credits, recorded with the asset and amount it moved. The memo is in the public transaction record, readable by transaction id. It compares no amount, asset or time with the ATR's terms. ### `x402/exact/hedera/transfer-executor` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this payment was taken, an account signed an agreement carrying this ATR's hash on , recorded in ; this does not show that the account is the payer. The payment is an x402 transferExecutor payment on Hedera: the payer's executor contract moved the funds under an authorization the seller did not read, and the facilitator submitted the transaction. The hash reached the payer only in the challenge's extension, and nothing the payer signed carries it. The read of the named transaction's merged consensus record found that its one debited account is the payer recorded when the payment was presented, and that it credited the payee. It compares no amount, asset or time with the ATR's terms. ### `x402/exact/lnbtc/payment-hash` **Where H rides:** nothing the payer signs carries H. **What it proves:** An account signed an agreement transaction carrying this ATR's hash on , recorded in , before this payment was taken or reported. This shows neither that the account is this payment's payer nor when this payment was taken, which nothing here reads. The ATR commits the payment hash of the BOLT11 invoice paid, whose signer is held to the option's payTo; the payer signed nothing that carries the hash. The preimage, which every node on the payment's route learns, shows that the secret behind the hash left the seller's custody, never who paid, and to anyone but the seller's node not that the invoice was paid; no public ledger shows the payment. Settlement is the seller's report. This does not show that amount, payee or timing match the ATR's content. ### `x402/exact/near` **Where H rides:** the `memo` argument of the one `ft_transfer`, H's LCP string, inside the NEP-366 delegate action the payer signs; all of H. **What it proves:** Paid: the payer's account signed a NEP-366 delegate action whose one ft_transfer carries this ATR's hash in its memo, in LCP string form, so the payer's own signed act carries the hash. The runtime verified that signature and ran the delegate, and the transfer succeeded on the token contract the delegate names, reaching the account its receiver_id names, both as read. The signer is the delegate's sender, named apart from any other act's. This states nothing of the amount, nor that the token, the account reached or the time meet a term of the ATR. ### `x402/exact/polkadot/lcp-assets-remark` **Where H rides:** `system.remark_with_event` of H's LCP string, batched with the transfer in `utility.batch_all`, inside the extrinsic the payer signs. **What it proves:** The payer signed one Polkadot Asset Hub extrinsic whose bytes hold this ATR's hash in LCP string form as a remark, at the account nonce its reference holds, or an account acting for the payer through a `proxy.proxy` or `multisig.as_multi_threshold_1` wrapper signed one. The chain verified the signature and dispatched the extrinsic with a Remarked event for that remark, at the finality recorded. Where the record shows a transfer event from the payer, or the call is a transfer of zero that runs as the payer, it states that the extrinsic paid, with each recipient and what moved; where it shows neither, it states that the payer signed. The signer is named, with the wrapper as its authority where it acted for the payer. This does not show that amount, asset or timing match the ATR's content. ### `x402/exact/solana` **Where H rides:** one Memo instruction, H's LCP string, in the transaction the buyer and the fee payer sign; all of H. The seller writes H into the option's `extra.memo`. **What it proves:** The payer's own signed act carries this ATR's hash: a Solana transaction the buyer's account signed, whose one LCP-form Memo instruction is the hash's LCP string, final at `finalized` with no error. It paid each transfer it made from the buyer's account, recorded with its mint or lamports, amount and recipient, one of zero included, the recipient being the owner the transaction's token balances name; as a payment, one of them reached an account the option's payee owns. The memo is in the transaction's instruction data on chain. It compares no amount, mint or time with the ATR's terms. ### `x402/exact/starknet` **Where H rides:** the SNIP-9 outside execution's `Nonce`: H's low 250 bits as a felt; on an agreement, the low 250 bits of the agreement's own value, SHA-256 over the ASCII bytes `lcp-agreement-v1` and H. **What it proves:** The payer's own signed SNIP-9 outside execution carries the low 250 bits of this ATR's hash as its nonce (on an agreement, of the agreement's value of it), which the payer's account verified when it executed it. It paid the account each `Transfer` from the payer, or a transfer call of zero, names the amount it states, zero included: on a payment, the option's `payTo` among them; where the read observed no transfer, the payer signed it. A holder of the ATR confirms the hash's low 250 bits from the nonce; the chain holds no more of it. This does not show that the amount, the asset or the timing match the ATR's content. ### `x402/exact/stellar/precondition` **Where H rides:** the transaction's `PRECOND_V2` extra signer `SIGNER_KEY_TYPE_ED25519_SIGNED_PAYLOAD`: the buyer's key and the 40-byte payload of H and the nonce of the buyer's Soroban authorization entry, an `int64` big-endian, on the transaction carrying that authorization of `transfer(buyer, payTo, amount)`; all of H. **What it proves:** Signed: the buyer's account signed a Soroban authorization of a transfer and the 40-byte payload of this ATR's hash and that authorization's nonce, carried as a signed-payload precondition of the transaction that consumed it, so the buyer's own signed act carries the hash. The transaction succeeded on the asset contract its event names; where the transfer moved a nonzero amount, it paid the account the event's to names. This states nothing of the amount, nor that the asset, the account reached or the time meet a term of the ATR. ### `x402/exact/sui` **Where H rides:** one `Pure` input, H's 32 bytes, that no command uses, inside the transaction data the sender signs. **What it proves:** The payer, the sender, signed a Sui transaction whose one unused Pure input is this ATR's hash, and the network executed it successfully in a checkpoint after the position the read was given; the hash is on chain in its input list, readable by its digest while a node retains it. The sender is not the option's payee. Where the transaction moved value it paid each account a positive balance change names; where it moved nothing it was signed, naming the recipient its signed transfer names. What it moved is recorded as observed: this does not show that amount, coin type or timing match the ATR's content. ### `x402/exact/tron/lcp-trc20-memo` **Where H rides:** `raw_data.data`: H's 77-byte LCP string, signed with the one `TriggerSmartContract`. **What it proves:** The payer, the transaction's owner, signed a Tron transaction whose memo is this ATR's hash in LCP string form, and whose one contract calls transfer on the token. The network verified the signature, which covers the memo through the transaction id, and the receipt's result is SUCCESS, at the finality recorded. Where the receipt holds Transfer logs from the owner, the transaction paid, with each recipient and what moved; where it holds no Transfer log and the signed call is a transfer of zero, it paid zero to that call's recipient; where it holds neither, the payer signed, and no account is named. The owner is named as the signer, and its Permission_id as the authority. This does not show that amount, token or timing match the ATR's content. ### `x402/exact/tvm` **Where H rides:** the forward payload's comment cell, in the Jetton transfer the payer's W5 wallet signs. The seller writes H into the option's `extra.forwardPayload`. **What it proves:** The payer's W5 wallet signed a request whose one Jetton transfer carries this ATR's hash in its forward payload, as a TEP-74 text comment in LCP string form, and ran it: the payer's own signed act carries the hash. The W5 wallet paid, through its Jetton wallet, the amount the `internal_transfer` names, zero included, to the Jetton wallet that took it, the recipient; where the read observed no transfer, the W5 wallet signed. The signer is the W5 wallet, named apart from the recipient. This does not show that the amount, the Jetton, the payee or the time match the ATR's content. ### `x402/exact/xrpl` **Where H rides:** the Payment's `InvoiceID`, the SHA-256 of H's LCP string. The seller writes H into the option's `extra.invoiceId`. **What it proves:** The payer signed an XRPL Payment whose InvoiceID is the SHA-256 of this ATR's hash in LCP string form, and it is in a validated ledger with tesSUCCESS: it paid the amount meta.delivered_amount states to the account its Destination names. The hash can be confirmed from the ATR's bytes but not recovered from the ledger alone. This does not show that amount, destination, asset or timing match the ATR's content. ### `x402/upto/eip155/permit2` **Where H rides:** the Permit2 `nonce`, which is H, written in decimal. **What it proves:** The payer signed a Permit2 witness transfer whose nonce is this ATR's hash, with the scheme's x402 proxy as spender and the payee in the witness. Permit2 verified the signature when the proxy executed the transfer, and the hash is in the settlement transaction's calldata as the Permit2 nonce; no event carries it. This does not show that amount, payee, asset or timing match the ATR's content. The amount settled is the seller's, submitted by the facilitator the witness names, and at most the signed maximum. ### `x402/upto/solana` **Where H rides:** the Memo of the open that escrows the signed maximum in a one-request channel; H's LCP string, all of H. The seller writes H into the option's `extra.memo`. **What it proves:** The payer's own signed act carries this ATR's hash: a Solana transaction the buyer's account signed, whose one Memo instruction is the hash's LCP string, final at `finalized` with no error, which deposited the amount its `open` names into a payment channel whose payee or distribution names the option's payee, recorded with its mint and amount. The memo is in the transaction's instruction data on chain. The deposit is the signed maximum a one-request channel escrows; the amount charged from it, which may be zero, is the seller's metering, settled in a later transaction that does not carry the hash, and the rest returns to the payer. It compares no amount, mint or time with the ATR's terms. ### `x402/upto/xrpl` **Where H rides:** nothing the payer signs carries H. **What it proves:** Before this payment, an account signed an agreement transaction carrying this ATR's hash on the payment's XRPL network. The channel's create is in a validated ledger with tesSUCCESS: the account the payment's payer names deposited the create's Amount into the channel the payment names, whose beneficiary is the account its Destination names, after the ledger the agreement was recorded at. The create does not carry the hash, and this does not show that the account that signed the agreement is the one that opened the channel unless the record compares the two. The claim that closes the channel signs the channel id and an amount, not the hash, and is not read. This does not show that amount, deposit, destination, settle delay or timing match the ATR's content. --- # Refusal codes > Every refusal code @integraledger/lcp returns, with its meaning. Source: https://lcp.integraledger.com/reference/refusals Updated 2026-11-20. Documents @integraledger/lcp 0.6.3 and @integraledger/profile-facilitator 0.5.1. Every function in this package whose type carries a refusal answers a failure with a value, `{ refused: true, code }`, and every code is `/` ([Refusals](https://lcp.integraledger.com/concepts/refusals.md)). 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](https://lcp.integraledger.com/concepts/refusals.md#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](https://lcp.integraledger.com/concepts/atr-hash.md#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](https://lcp.integraledger.com/concepts/refusals.md#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. | Namespace | Codes | Returned by | |---|---|---| | [`core`](https://lcp.integraledger.com/reference/refusals.md#core) | 6 | The core: `assemble` and the JSON checks under it. | | [`discovery`](https://lcp.integraledger.com/reference/refusals.md#discovery) | 20 | The discovery document (`@integraledger/lcp/discovery`). | | [`x402`](https://lcp.integraledger.com/reference/refusals.md#x402) | 39 | x402 documents, the request commitment, and the checks every x402 pairing shares (`@integraledger/lcp/x402` and the x402 pairings on each rail). | | [`mpp`](https://lcp.integraledger.com/reference/refusals.md#mpp) | 60 | MPP challenges and credentials, and the checks every MPP pairing shares (`@integraledger/lcp/mpp`, and the MPP Lightning pairings of `@integraledger/lcp/lightning`). | | [`ack`](https://lcp.integraledger.com/reference/refusals.md#ack) | 10 | ACK Payment Requests and receipts (`@integraledger/lcp/ack`). | | [`acp`](https://lcp.integraledger.com/reference/refusals.md#acp) | 16 | ACP checkout sessions and delegated payments (`@integraledger/lcp/acp`). | | [`ap2`](https://lcp.integraledger.com/reference/refusals.md#ap2) | 20 | AP2 checkouts, Checkout Mandates and the SD-JWT reader under them (`@integraledger/lcp/ap2`, and the AP2 Mandate pairings of `@integraledger/lcp/ucp`). | | [`ucp`](https://lcp.integraledger.com/reference/refusals.md#ucp) | 16 | UCP checkouts and bookings (`@integraledger/lcp/ucp`). | | [`card`](https://lcp.integraledger.com/reference/refusals.md#card) | 27 | Visa TAP, Mastercard Agent Pay, Visa Intelligent Commerce, Mastercard Verifiable Intent and the plain card checkout (`@integraledger/lcp/card`). | | [`a2a`](https://lcp.integraledger.com/reference/refusals.md#a2a) | 6 | The A2A extension (`@integraledger/lcp/a2a`). | | [`evm`](https://lcp.integraledger.com/reference/refusals.md#evm) | 20 | 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`). | | [`tempo`](https://lcp.integraledger.com/reference/refusals.md#tempo) | 20 | Tempo: transactions, memos, channels and key authorizations (`@integraledger/lcp/tempo`, and the MPP Tempo pairings and `keySearch` in `@integraledger/lcp/mpp`). | | [`svm`](https://lcp.integraledger.com/reference/refusals.md#svm) | 31 | Solana (`@integraledger/lcp/svm` and the Solana pairings). | | [`stellar`](https://lcp.integraledger.com/reference/refusals.md#stellar) | 18 | 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`). | | [`xrpl`](https://lcp.integraledger.com/reference/refusals.md#xrpl) | 21 | The XRP Ledger (`@integraledger/lcp/xrpl` and the XRPL pairings). | | [`hedera`](https://lcp.integraledger.com/reference/refusals.md#hedera) | 22 | Hedera (`@integraledger/lcp/hedera`, and the MPP Hedera pairings and challenges in `@integraledger/lcp/mpp`). | | [`avm`](https://lcp.integraledger.com/reference/refusals.md#avm) | 15 | Algorand (`@integraledger/lcp/avm`). | | [`aptos`](https://lcp.integraledger.com/reference/refusals.md#aptos) | 6 | Aptos (`@integraledger/lcp/aptos`). | | [`cardano`](https://lcp.integraledger.com/reference/refusals.md#cardano) | 15 | Cardano (`@integraledger/lcp/cardano`). | | [`casper`](https://lcp.integraledger.com/reference/refusals.md#casper) | 14 | Casper (`@integraledger/lcp/casper`). | | [`ccd`](https://lcp.integraledger.com/reference/refusals.md#ccd) | 17 | Concordium (`@integraledger/lcp/ccd`). | | [`near`](https://lcp.integraledger.com/reference/refusals.md#near) | 16 | NEAR (`@integraledger/lcp/near`, and `chargeNearIntents` in `@integraledger/lcp/mpp`). | | [`polkadot`](https://lcp.integraledger.com/reference/refusals.md#polkadot) | 17 | Polkadot Asset Hub (`@integraledger/lcp/polkadot`). | | [`starknet`](https://lcp.integraledger.com/reference/refusals.md#starknet) | 17 | Starknet (`@integraledger/lcp/starknet`). | | [`sui`](https://lcp.integraledger.com/reference/refusals.md#sui) | 13 | Sui (`@integraledger/lcp/sui`). | | [`tron`](https://lcp.integraledger.com/reference/refusals.md#tron) | 15 | Tron (`@integraledger/lcp/tron`). | | [`tvm`](https://lcp.integraledger.com/reference/refusals.md#tvm) | 16 | TON (`@integraledger/lcp/tvm`). | | [`ln`](https://lcp.integraledger.com/reference/refusals.md#ln) | 25 | Lightning: BOLT11 invoices and the Lightning pairings (`@integraledger/lcp/lightning`, and the Lightning challenge checks of `@integraledger/lcp/mpp`). | | [`stacks`](https://lcp.integraledger.com/reference/refusals.md#stacks) | 7 | Stacks (`@integraledger/lcp/stacks`, and `chargeUsdcStacks` in `@integraledger/lcp/mpp`). | | [`return`](https://lcp.integraledger.com/reference/refusals.md#return) | 4 | The return after an agreement: the `Legal-Context` header, its check, and the charge options an agreement option serves (`@integraledger/lcp`). | | [`spend-permissions`](https://lcp.integraledger.com/reference/refusals.md#spend-permissions) | 12 | The Spend Permission exchange (`@integraledger/lcp/spend-permissions`). | ## core The core: `assemble` and the JSON checks under it. | Code | Meaning | |---|---| | `core/binding-not-json` | `assemble` 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-json` | `assemble` 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-duplicate` | `assemble` refuses two party slots with the same name. | | `core/slot-name` | `assemble` 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-reserved` | `assemble` refuses a slot named `atrVersion` or `id`, or a party slot that reuses the binding slot's name. | | `core/too-large` | `assemble` 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`). | Code | Meaning | |---|---| | `discovery/atr-hash-malformed` | The discovery document's `atrHash` is not `0x` followed by 64 hex digits. | | `discovery/clause-id-malformed` | The discovery document's `disputeResolution.clauseId` is not `sha256:0x` followed by 64 hex digits. | | `discovery/member-malformed/acceptanceRequired` | `parse` or `emit` finds the discovery document's `acceptanceRequired` present but not a boolean. | | `discovery/member-malformed/api` | `parse` or `emit` finds the discovery document's `api` present but not a non-empty string. | | `discovery/member-malformed/contact` | `parse` or `emit` finds the discovery document's `contact` present but not an object. | | `discovery/member-malformed/contact.legal` | `parse` or `emit` finds the discovery document's `contact.legal` present but not a non-empty string. | | `discovery/member-malformed/contact.technical` | `parse` or `emit` finds the discovery document's `contact.technical` present but not a non-empty string. | | `discovery/member-malformed/disputeResolution` | `parse` or `emit` finds the discovery document's `disputeResolution` present but not an object. | | `discovery/member-malformed/disputeResolution.catalog` | `parse` or `emit` finds the discovery document's `disputeResolution.catalog` present but not a non-empty string. | | `discovery/member-malformed/disputeResolution.contact` | `parse` or `emit` finds the discovery document's `disputeResolution.contact` present but not a non-empty string. | | `discovery/member-malformed/disputeResolution.jurisdiction` | `parse` or `emit` finds the discovery document's `disputeResolution.jurisdiction` present but not a non-empty string. | | `discovery/member-malformed/disputeResolution.method` | `parse` or `emit` finds the discovery document's `disputeResolution.method` present but not a non-empty string. | | `discovery/member-malformed/disputeResolution.source` | `parse` or `emit` finds the discovery document's `disputeResolution.source` present but not a non-empty string. | | `discovery/member-malformed/returns` | `parse` or `emit` finds the discovery document's `returns` present but not a non-empty string. | | `discovery/member-malformed/terms` | `parse` or `emit` finds the discovery document's `terms` present but not a string. | | `discovery/member-malformed/termsFormat` | `parse` or `emit` finds the discovery document's `termsFormat` present but not a non-empty string. | | `discovery/not-json-object` | `parse` 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-missing` | The discovery document has no `terms` member. | | `discovery/terms-not-https` | The 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-large` | `parse` 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). | Code | Meaning | |---|---| | `x402/accepted-not-option` | A 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-eip3009` | An `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-mismatch` | The 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-unknown` | The 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-empty` | At the ERC-7710 salt level, the payment's permission context decodes to no delegations. | | `x402/deposit-authorization` | The EVM batch opening's `deposit.authorization` is not an object carrying exactly one of `erc3009Authorization` and `permit2Authorization`. | | `x402/escrow-not-canonical` | An `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-missing` | An `upto` option on an EVM network has no valid `extra.facilitatorAddress`. | | `x402/flow-missing` | The 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-carried` | An `auth-capture` option's `extra.paymentFlow` is neither `escrow` nor `authorization`, or its `extra.autoCapture` is `true`. | | `x402/header-malformed` | `decodePaymentRequired`, `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-conflict` | `advertise` 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-malformed` | The 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-https` | The 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-reference` | At the ERC-7710 salt level, the payment's `delegationManager` is not the reference DelegationManager on a chain where it is deployed. | | `x402/no-legal-context` | The 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-place` | `bound` 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-option` | `read` 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-malformed` | A 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-agreement` | `bound` 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-payment` | A 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-opening` | `bound` 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-within` | The 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-v2` | The 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-malformed` | The 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-document` | The 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-pairing` | The 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-malformed` | The 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-malformed` | The 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-invalid` | `requestCommitment` 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-invalid` | `requestCommitment` 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-large` | `requestCommitment` 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-malformed` | A 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-bound` | A 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-malformed` | A 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-bound` | `complete` 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-proxy` | A presented Permit2 payment's `spender` is not the x402 Permit2 proxy for its scheme (`exact` or `upto`). | | `x402/splits-not-carried` | An `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-malformed` | `toolCallCommitment` 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`). | Code | Meaning | |---|---| | `mpp/access-key-malformed` | A Tempo subscription challenge's `methodDetails.accessKey` is not an object with an address `accessKeyAddress` and a `keyType` of `p256`, `secp256k1` or `webAuthn`. | | `mpp/attribution-malformed` | `checkAttribution` is given a memo that is not 32 bytes of hex. | | `mpp/attribution-mismatch` | An attribution memo's tag, version, server id for the realm, or nonce for the challenge id is not the expected value. | | `mpp/carrier-not-challenge` | The 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-occupied` | `advertise` 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-taken` | A 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-required` | An 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-malformed` | A 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-option` | A 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-named` | A 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-bound` | An 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-malformed` | `decodeCredential` 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-type` | The credential's payload `type` is not one the pairing accepts (such as `transaction`, `hash`, `authorization`, `permit2`, `transfer`, `bundle` or `signature`). | | `mpp/credential-types` | The 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-malformed` | An EVM or Tempo session challenge's `methodDetails.escrowContract` is not an address. | | `mpp/expires-required` | The 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-unnamed` | `advertise` 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-unread` | The `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-malformed` | `parseChallenges` 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-ours` | A 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-malformed` | The 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-conflict` | `place` 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-malformed` | The 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-https` | The 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-enabled` | A 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-changed` | The `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-malformed` | A 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-pull` | `advertise` 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-unnamed` | `network` 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-context` | `read` finds no challenge whose `opaque` carries an LCP hash and a link and whose id derives from that hash. | | `mpp/no-signed-place` | `bound` 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-hash` | The 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-channel` | An 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-derivation` | The `usdc` EVM credential's `nonce` is not the `usdcNonce` derived from the challenge's id, realm and request hash. | | `mpp/not-an-opening` | The 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-within` | `channel.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-twin` | `toX402` 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-pairing` | The 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-malformed` | The 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-hash` | The 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-taken` | `place` is given a position whose id another challenge of the document already carries: each challenge of a sale takes its own position. | | `mpp/receipt-malformed` | The 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-missing` | The Stripe subscription's `channel.ref` is given no activation receipt. | | `mpp/request-malformed` | A 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-jcs` | A `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-hash` | An 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-derivation` | The `usdc` Gateway credential's TransferSpec `salt` is not the `usdcGatewaySalt` derived from the challenge and the credential's own values. | | `mpp/session-action` | A 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-protocol` | A Tempo session challenge's `sessionProtocol` is neither `v1` nor `v2`. | | `mpp/source-required` | The 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-placed` | A 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-malformed` | An 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-h` | The `usdc` Stacks transaction is not a contract call to `transfer` whose fourth argument is `(some H)`. | | `mpp/stacks-tx-malformed` | The `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 )`), 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-native` | A `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-profile` | A `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-built` | `buildWithin` 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-hash` | The EVM `permit2` credential's `witness.challengeHash` is not keccak256 of the challenge's id and realm. | | `mpp/witness-taken` | `place` 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-served` | A 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`). | Code | Meaning | |---|---| | `ack/id-not-lcp` | `read` finds that the Payment Request token's `id` is not an ATR hash in LCP's string form (`lcp:sha256:H`). | | `ack/legal-context-conflict` | `read` finds that the hash in the body's `legalContext` differs from the hash in the Payment Request token's `id`. | | `ack/legal-context-malformed` | `advertise` 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-https` | The link or agreement URL given to `advertise` is not an `https` link. | | `ack/no-legal-context` | `read` finds no `legalContext` in the 402 body. | | `ack/no-signed-place` | ACK defines no payer signature, so `build` and `bound` of `ack/payment-request` always return this refusal. | | `ack/option-malformed` | `advertise` 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-malformed` | `fromReceipt` 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-malformed` | `read` 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-large` | `read` 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`). | Code | Meaning | |---|---| | `acp/allowance-changed` | The `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-malformed` | `bound` 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-malformed` | `reference` 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-malformed` | `build` 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-session` | `build` refuses when H is not a valid ATR hash or the chosen session's `id` is not H. | | `acp/id-conflict` | `advertise` finds that the session already has an `id` other than H. | | `acp/id-not-hash` | `read` 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-conflict` | `advertise` 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-malformed` | `advertise` 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-https` | The 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-context` | `read` finds no `metadata.legal_context` in the session. | | `acp/not-buyer-signed` | `bound` of `acp/checkout/undelegated` always refuses, because nothing the buyer signs names the hash. | | `acp/nothing-to-sign` | `build` of `acp/checkout/undelegated` always refuses, because a handler that does not require `delegate_payment` gives the buyer nothing to sign. | | `acp/option-malformed` | `advertise` 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-malformed` | `advertise` 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-large` | The 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`). | Code | Meaning | |---|---| | `ap2/checkout-hash-mismatch` | `bound` finds that the mandate discloses a `checkout_jwt` different from the presented one. | | `ap2/checkout-id-missing` | `advertise`, `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-latest` | `bound` finds that the mandate's `checkout_hash` is not the SHA-256 of the presented `checkout_jwt`. | | `ap2/disclosure-unreferenced` | An 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-checkout` | `build` finds that the hash in the offer's checkout JWT is not H. | | `ap2/jws-malformed` | A 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-conflict` | `advertise` finds a different `legalContext` already in the checkout payload. | | `ap2/legal-context-malformed` | The 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-https` | The link or agreement URL given to `advertise` is not an `https` link. | | `ap2/mandate-ambiguous` | The resolved SD-JWT (the last hop of a chain) contains more than one object whose `vct` is `mandate.checkout.1`. | | `ap2/mandate-malformed` | The 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-mandate` | The resolved SD-JWT (the last hop of a chain) contains no object whose `vct` is `mandate.checkout.1`. | | `ap2/no-legal-context` | The checkout payload read by `read`, `build` or `bound` has no `legalContext` member. | | `ap2/option-malformed` | `advertise` 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-malformed` | `ap2/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-bound` | `ap2/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-checkout` | `advertise` finds that the option's `checkout` is not the payload's `id`. | | `ap2/receipt-malformed` | A presentation carries a `payment_receipt`, the confirmation of funds sent in AP2's push funding, that is not a JSON object. | | `ap2/sd-alg-unsupported` | The `_sd_alg` of an SD-JWT of the Checkout Mandate presentation names a digest algorithm other than `sha-256`. | | `ap2/too-large` | A 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`). | Code | Meaning | |---|---| | `ucp/already-signed` | `advertise` refuses a checkout that already carries `ap2.merchant_authorization`, because the link must be placed before the business signs. | | `ucp/ap2-not-active` | An AP2 Mandate pairing's `read` or `build` finds no `ap2.merchant_authorization` in the checkout in detached JWS form. | | `ucp/charge-reference-malformed` | `reference` 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-malformed` | The 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-mismatch` | `ucp/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-checkout` | The 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-conflict` | The 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-malformed` | The `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-https` | The 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-context` | The 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-signed` | `bound` of the unsigned checkout and booking pairings always refuses, because nothing the buyer signs carries the hash. | | `ucp/nothing-to-sign` | `build` of the unsigned checkout and booking pairings always refuses, because the buyer signs nothing. | | `ucp/option-malformed` | `advertise`, 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-checkout` | `advertise` finds that the option names a checkout or booking other than the document's `id`. | | `ucp/request-malformed` | `ucp/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-large` | The 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`). | Code | Meaning | |---|---| | `card/charge-reference-malformed` | `reference` 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-malformed` | The 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-https` | The link or agreement URL given to `advertise` is not an `https` link. | | `card/no-legal-context` | The 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-place` | `build` and `bound` of `card/seller-reference` always refuse, because nothing the buyer signs carries the hash. | | `card/option-malformed` | `advertise` 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-conflict` | In 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-covered` | A 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-signature` | No 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-malformed` | A payment signature input's `nonce` parameter is not a String. | | `card/tap-path-malformed` | The request path given to the TAP or Agent Pay `bound` is not a string of visible ASCII starting with `/`. | | `card/tap-signature-input-malformed` | The 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-malformed` | The 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-missing` | No payment signature input has a matching member in the `Signature` field. | | `card/too-large` | A `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-mismatch` | The checkout mandate's `checkout_hash` is not the digest of its `checkout_jwt`. | | `card/vi-disclosure-unreferenced` | A Verifiable Intent layer carries a disclosure that no digest in its payload references. | | `card/vi-key-malformed` | In 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-mismatch` | In autonomous mode, the `kid` in L3b's header is not the `kid` of the agent key that L2 delegates. | | `card/vi-legal-context-conflict` | The 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-malformed` | The 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-malformed` | A 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-mandate` | A Verifiable Intent layer's `delegate_payload` does not reference exactly one `mandate.checkout.1` mandate. | | `card/vi-sd-hash-mismatch` | In 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-invalid` | In 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-mismatch` | A `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-typ` | A 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`). | Code | Meaning | |---|---| | `a2a/legal-context-conflict` | `place` finds a different legal context already under the extension URI in the task's `metadata`. | | `a2a/legal-context-malformed` | `place` 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-https` | The 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-context` | `read` finds no legal context under any extension URI in the task's `metadata`. | | `a2a/no-signed-place` | The 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-large` | The 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`). | Code | Meaning | |---|---| | `evm/ambiguous` | An 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-malformed` | An 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-mismatch` | The 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-mismatch` | `batchChannelCreated` 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-malformed` | A 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-malformed` | A network is not an `eip155:` 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-use` | `eip3009Recover` 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-created` | The 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-call` | The 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-payment` | The `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-leaf` | `x402/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-call` | The `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-deposit` | The 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-settle` | The 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-used` | The 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-final` | **Read 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-found` | **Read 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/reverted` | The transaction an EVM `recover` reads reverted, in a block at or below the reader's `finalized` mark. | | `evm/unreadable` | **Read 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-reader` | The 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`). | Code | Meaning | |---|---| | `tempo/ambiguous` | More 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-mismatch` | A 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-malformed` | A 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-authorized` | The 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-bound` | The Tempo split-memo payment's signed transaction has no `transferWithMemo` call to the challenge's `currency` whose memo is H. | | `tempo/no-access-key` | `keySearch` is given a reference with no well-formed access key (key id, token and recipient digest). | | `tempo/no-witness` | The 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-final` | **Read 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-found` | **Read to repeat.** The reader found no receipt for the transaction. | | `tempo/open-ambiguous` | The 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-found` | The 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-first` | `bound` 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/reverted` | The 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-bound` | The 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-sender` | A Tempo split-memo credential's `source` is present and does not name the transaction's sender as a `did:pkh` address. | | `tempo/tx-malformed` | A 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-large` | A Tempo transaction's wire bytes exceed the size bound. | | `tempo/unreadable` | **Read 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-bound` | The Tempo subscription's key authorization witness is not the hash the echoed challenge's id derives from. | | `tempo/wrong-reader` | The 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). | Code | Meaning | |---|---| | `svm/bundle-empty` | An MPP Solana `bundle` credential's `transactions` is empty. | | `svm/carrier-mismatch` | The 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-canonical` | The 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-occupied` | `advertise` 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-mismatch` | In 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-instruction` | The Solana transaction has more than one payment-channels instruction, or its one instruction has an unknown discriminator or the wrong accounts. | | `svm/err` | The 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-malformed` | The 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-admitted` | An `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-count` | The 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-lcp` | The 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-utf8` | The 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-malformed` | A 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-undeclared` | The MPP Solana challenge names `localnet`, which has no CAIP-2 network to read on. | | `svm/no-carrier` | The Solana transaction presented for an MPP charge has no Memo instruction carrying an ATR hash in LCP string form. | | `svm/no-channel-instruction` | The Solana transaction has no top-level payment-channels instruction. | | `svm/nonce-account-not-static` | The 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-final` | **Read 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-found` | **Read to repeat.** The Solana reader answers that the node holds no transaction for the signature (its not-found answer). | | `svm/open-not-found` | The 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-operator` | The `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-voucher` | An 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-found` | `findPda` is given an invalid program key or too many or too long seeds, or no bump yields an off-curve address. | | `svm/peer-missing` | The 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-first` | An 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-unresolved` | The `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-malformed` | A 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-large` | A 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/unreadable` | **Read 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-admitted` | A 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-reader` | The 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`). | Code | Meaning | |---|---| | `stellar/amount-mismatch` | The transfer of the buyer's simulated transaction is not for the option's `amount` exactly (`x402/exact/stellar/precondition`'s `build`). | | `stellar/asset-mismatch` | The transfer of the buyer's simulated transaction is not on the option's `asset` (`x402/exact/stellar/precondition`'s `build`). | | `stellar/carrier-mismatch` | A 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-malformed` | `transferEventOf` 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-malformed` | A Stellar network is not `stellar:pubnet` or `stellar:testnet`. | | `stellar/no-address-auth` | The 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-carrier` | The transaction's preconditions hold no signed-payload signer, or more than one (`x402/exact/stellar/precondition`'s `bound` and `reference`, `stellarRecover`). | | `stellar/not-found` | **Read to repeat.** `stellarRecover`: the reader does not know the transaction. | | `stellar/not-one-transfer` | The 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-malformed` | An `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-mismatch` | The 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-mismatch` | The 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-missing` | The 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-malformed` | A 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-malformed` | A 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-large` | A 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/unreadable` | **Read to repeat.** `stellarRecover`: the read did not complete, or answered out of the reader's form. | | `stellar/wrong-reader` | `stellarRecover` 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). | Code | Meaning | |---|---| | `xrpl/blob-malformed` | An 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-large` | An 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-mismatch` | The 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-lcp` | The x402 XRPL option's `extra.invoiceId` is not an ATR hash in LCP string form. | | `xrpl/carrier-occupied` | `advertise` 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-xrp` | An 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-count` | The 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-malformed` | The MPP XRPL challenge's `methodDetails.network` is not one of the XRPL network names this package maps. | | `xrpl/network-mismatch` | The 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-missing` | The MPP XRPL challenge's `methodDetails` names no `network`, which has no default. | | `xrpl/no-invoice-id` | The XRPL `Payment` carries no `InvoiceID`, or the validated transaction a recovery reads has no 256-bit `InvoiceID`. | | `xrpl/no-memo` | The 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-create` | The 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-found` | **Read to repeat.** The XRPL reader found no transaction for the reference. | | `xrpl/not-payment` | The XRPL signed blob presented for a charge is not a `Payment`. | | `xrpl/not-success` | The 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-validated` | **Read to repeat.** The XRPL transaction the reference, or an MPP XRPL `hash` credential, names is not yet in a validated ledger. | | `xrpl/peer-missing` | The 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-first` | An 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/unreadable` | **Read 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-reader` | The 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`). | Code | Meaning | |---|---| | `hedera/deprecated-fields` | A 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-malformed` | The 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-offered` | The transfer-executor payload given to `complete` names an `executor` the option does not list; `bound` and `reference` do not check it. | | `hedera/expired` | In `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-inconsistent` | The bodies of a Hedera `TransactionList` are not all equal to the first in every field but its node account. | | `hedera/memo-not-lcp` | The 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-malformed` | A 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-context` | The transfer-executor pairing's `bound` finds no decodable `extensions.legalContext.info` echoed in the payment. | | `hedera/no-memo` | The signed Hedera body, or the landed transaction a recovery reads, has an empty memo. | | `hedera/not-found` | **Read 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-success` | The 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-malformed` | A 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-buyer` | The 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-first` | `bound`, `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-mismatch` | In `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-mismatch` | On `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-malformed` | A 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-large` | A Hedera transaction's wire bytes exceed the size bound. | | `hedera/unreadable` | **Read to repeat.** The Hedera reader failed or returned a response that is not well formed. | | `hedera/valid-duration` | A signed Hedera body's `transactionValidDuration` is above the chain's longest, `transaction.maxValidDuration`, 180 seconds: the network refuses it. | | `hedera/valid-start-future` | The 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-reader` | The 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`). | Code | Meaning | |---|---| | `avm/clawback` | The 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-large` | The Algorand payment group is empty or larger than the group bound. | | `avm/index-out-of-range` | The Algorand `paymentIndex` does not name a transaction in the payment group. | | `avm/logic-signature` | A logic signature authorises the Algorand payment transaction: no key signs it, so it is not the payer's signed act. | | `avm/network-malformed` | An Algorand option's network starts with `algorand:` but does not name a genesis hash in CAIP-2 form. | | `avm/network-mismatch` | The suggested parameters' genesis hash given to `build` is not base64 of 32 bytes or is not the network the option names. | | `avm/not-axfer` | The Algorand payment transaction is not an asset transfer. | | `avm/not-found` | **Read to repeat.** The Algorand reader found no transaction for the id. | | `avm/note-not-lcp` | The Algorand transaction's note is not UTF-8 carrying an ATR hash in LCP string form. | | `avm/option-malformed` | An 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-missing` | The 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-malformed` | The signature given to the Algorand `complete` is not 64 bytes. | | `avm/txn-malformed` | The 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/unreadable` | **Read to repeat.** The Algorand reader threw or returned an answer that is not well formed. | | `avm/wrong-reader` | The 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. | Code | Meaning | |---|---| | `aptos/chain-mismatch` | The 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-malformed` | An 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-transfer` | The 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-function` | The Aptos transaction's payload is not an entry function call. | | `aptos/tx-malformed` | `decodeAptosTx` 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-large` | `decodeAptosTx` is given a transaction larger than the size bound. | ## cardano Cardano (`@integraledger/lcp/cardano`). | Code | Meaning | |---|---| | `cardano/ambiguous` | The 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-floor` | `advertise` 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-mismatch` | The Blake2b-256 of the Cardano transaction's auxiliary data is not the hash in its body. | | `cardano/aux-missing` | The Cardano transaction's body has no auxiliary data hash (key 7), or it carries no auxiliary data. | | `cardano/floor-input` | `cardanoFloor` is given an address that is not a Shelley address in Bech32, an asset that is neither `lovelace` nor `.` in hex, or a `coinsPerUtxoByte` that is not a positive bigint. | | `cardano/hash-not-carried` | The 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-malformed` | A Cardano option's network starts with `cardano:` or `cip34:` but is not one this package maps. | | `cardano/nonce-not-input` | The Cardano payment's `nonce` is not `#` naming one of the inputs its body spends. | | `cardano/not-found` | **Read to repeat.** The Cardano reader answers that the indexer does not hold the transaction (its not-found answer). | | `cardano/not-valid` | The Cardano transaction the reference names is on chain as invalid (its collateral was taken). | | `cardano/ttl-missing` | A Cardano lock's transaction sets no TTL, which x402's Cardano scheme requires of a lock. | | `cardano/tx-malformed` | A 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-large` | `decodeCardanoTx` or `cardanoInputs` is given a transaction larger than the size bound. | | `cardano/unreadable` | **Read 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-reader` | The 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`). | Code | Meaning | |---|---| | `casper/address-malformed` | A `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-malformed` | A Casper amount is not a uint256. | | `casper/key-tag-mismatch` | The public key and signature given to the Casper `complete` carry different algorithm tags. | | `casper/network-malformed` | A Casper network given to `cep3009TypedData` is not a Casper CAIP-2 name, or its argument is not an object. | | `casper/no-authorization-call` | The executed Casper transaction holds no authorization call on the asset carrying a nonce. | | `casper/nonce-not-bound` | Given 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-executed` | **Read to repeat.** The Casper transaction the reference names has not executed. | | `casper/not-found` | **Read to repeat.** The Casper reader found no transaction for the reference. | | `casper/option-malformed` | A 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-malformed` | The 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/reverted` | The Casper transaction executed with an error. | | `casper/signature-malformed` | The public key or signature given to the Casper `complete` is not tagged hex of the allowed length. | | `casper/unreadable` | **Read to repeat.** The Casper reader threw or returned a call that is not well formed. | | `casper/wrong-reader` | The 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`). | Code | Meaning | |---|---| | `ccd/address-malformed` | A Concordium account address is missing, is not base58check of the account form, or its bytes are not 32 long. | | `ccd/memo-not-cbor-text` | The Concordium memo is not exactly one CBOR text string within the memo bound. | | `ccd/memo-not-lcp` | The 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-carrier` | The finalized Concordium block item does not hold exactly one transfer whose memo carries an ATR hash as `memoCarrier` reads it. | | `ccd/no-memo` | The Concordium transaction is a plain `transfer` with no memo, or its PLT transfer operation has no memo. | | `ccd/not-finalized` | **Read to repeat.** The Concordium block item is not finalized. | | `ccd/not-found` | **Read to repeat.** The Concordium reader found no block item for the reference. | | `ccd/not-v1` | The Concordium signed transaction's `version` is not 1. | | `ccd/operation-count` | The Concordium PLT operations are not exactly one `transfer` operation. | | `ccd/operations-malformed` | The 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-malformed` | The `now` given to the Concordium `build` is not a non-negative safe integer. | | `ccd/payload-kind` | The Concordium transaction's payload is neither `transferWithMemo` nor a PLT `tokenUpdate`. | | `ccd/rejected` | The Concordium block item was rejected. | | `ccd/too-large` | The Concordium signed transaction, its memo or its token operations exceed the size bound. | | `ccd/transaction-malformed` | The 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/unreadable` | **Read to repeat.** The Concordium reader threw or returned a block item that is not well formed. | | `ccd/wrong-reader` | The 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`). | Code | Meaning | |---|---| | `near/actions` | The 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-malformed` | The `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`, 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-occupied` | `advertise` for the NEAR Intents charge finds the challenge's `externalId` already holding a value other than H's LCP string. | | `near/fixed-members-differ` | `advertise` 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-missing` | The `ft_transfer` arguments carry no string `memo`. | | `near/memo-not-lcp` | The `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-malformed` | A NEAR option's network starts with `near:` but is not `near:mainnet` or `near:testnet`. | | `near/not-found` | **Read to repeat.** The NEAR reader answers that it does not know the transaction `recover` reads. | | `near/not-ft-transfer` | The 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-credential` | The NEAR Intents charge credential's payload `type` is not `hash`. | | `near/option-malformed` | A 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-missing` | The 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-malformed` | The 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-large` | The NEAR signed delegate action's base64 text exceeds the size bound. | | `near/unreadable` | **Read 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-reader` | The 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`). | Code | Meaning | |---|---| | `polkadot/address-malformed` | A 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-id` | The Polkadot extrinsic's signer is not a `MultiAddress::Id` of 32 bytes. | | `polkadot/call-not-profile` | The 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-suffix` | The 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-malformed` | A Polkadot extrinsic is not lowercase hex whose compact length prefix matches its length. | | `polkadot/extrinsic-too-large` | A Polkadot extrinsic, or the raw extrinsic a recovery reads, is longer than 4,096 bytes. | | `polkadot/network-unsupported` | A Polkadot option's network starts with `polkadot:` but is not one this package supports. | | `polkadot/no-remark` | The Polkadot extrinsic `polkadotRecover` reads, in a block the finalized chain holds, did not dispatch successfully with a `Remarked` event for its remark. | | `polkadot/not-final` | **Read 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-found` | **Read 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-located` | The 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-v4` | The Polkadot extrinsic is not a signed version 4 extrinsic. | | `polkadot/option-malformed` | A 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-lcp` | The Polkadot remark is not exactly an ATR hash's LCP string form with lowercase hex, byte for byte. | | `polkadot/signature-malformed` | The Polkadot extrinsic's `MultiSignature` has an unknown variant or runs past the end. | | `polkadot/unreadable` | **Read 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-reader` | The 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 `-` timepoint. | ## starknet Starknet (`@integraledger/lcp/starknet`). | Code | Meaning | |---|---| | `starknet/ambiguous` | The Starknet transaction `starknetLandedNonce` or `recover` reads, accepted on L2 or L1, holds matching transfers with more than one nonce. | | `starknet/caller-forbidden` | The 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-payer` | The presented Starknet outside execution's `Caller` is not the option's `extra.feePayer`. | | `starknet/felt-malformed` | A Starknet fee payer, asset, `payTo`, nonce, payer account or `from` is not a valid felt. | | `starknet/network-malformed` | A Starknet network is not one of the Starknet networks this package supports, or the argument to `outsideExecution` is not an object. | | `starknet/no-legal-context` | The Starknet payment echoes no decodable `extensions.legalContext.info`. | | `starknet/no-transfer` | The 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-bound` | The 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-final` | **Read 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-found` | **Read to repeat.** The Starknet reader found no receipt for the transaction the reference names. | | `starknet/option-malformed` | A 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/reverted` | The Starknet transaction `starknetLandedNonce` or `recover` reads, accepted on L2 or L1, reverted. | | `starknet/selector-not-transfer` | A call of the presented Starknet outside execution has a `Selector` other than `transfer`'s. | | `starknet/signature-malformed` | The signature given to the Starknet `complete` is not 1 to the allowed number of valid felts. | | `starknet/typed-data-malformed` | The 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/unreadable` | **Read 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-reader` | The 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`). | Code | Meaning | |---|---| | `sui/aborted` | The Sui transaction the reference names executed with status `FAILURE`. | | `sui/ambiguous` | The Sui transaction has more than one unused `Pure` input. | | `sui/floor-input` | `suiFloor` 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-carried` | The Sui transaction has no unused `Pure` input, or its one unused `Pure` input is not 32 bytes. | | `sui/network-malformed` | A Sui option's network starts with `sui:` but is not `sui:mainnet`, `sui:testnet` or `sui:devnet`. | | `sui/not-as-sent` | x402 `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-found` | **Read to repeat.** The Sui reader found no transaction for the digest. | | `sui/not-programmable` | The 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-missing` | The 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-malformed` | `decodeSuiTx` 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-large` | `decodeSuiTx` is given a transaction larger than the size bound. | | `sui/unreadable` | **Read to repeat.** The Sui reader failed, or returned a transaction whose digest is not the reference's. | | `sui/wrong-reader` | The 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`). | Code | Meaning | |---|---| | `tron/address-malformed` | A 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/contracts` | The TRON raw data does not hold exactly one contract. | | `tron/fee-limit` | The fee limit given to the TRON `build` is not a bigint from 1 to the maximum. | | `tron/memo-not-lcp` | The TRON transaction's memo is not an ATR hash in LCP string form. | | `tron/network-malformed` | A TRON option's network is not `tron:` followed by a chain number. | | `tron/not-found` | **Read to repeat.** The TRON reader found no transaction for the id. | | `tron/not-transfer` | The TRON contract's call data is not a TRC-20 `transfer`. | | `tron/not-trigger` | The TRON contract is not a `TriggerSmartContract`. | | `tron/option-malformed` | A 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-canonical` | The TRON raw data does not re-encode to the bytes received. | | `tron/signature-malformed` | A 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-malformed` | A 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-large` | A TRON transaction's hex, or the raw data a recovery reads, exceeds the size bound. | | `tron/unreadable` | **Read 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-reader` | The 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`). | Code | Meaning | |---|---| | `tvm/actions` | The 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-malformed` | A 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-large` | A TON bag of cells exceeds the byte, depth or cell-count bound. | | `tvm/carrier-mismatch` | The 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-occupied` | `advertise` finds the option's `extra.forwardPayload` already holding a payload other than H's comment. | | `tvm/network-malformed` | A 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-found` | **Read to repeat.** The TON reader found no transaction for the reference. | | `tvm/not-jetton-transfer` | The 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-signed` | The 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-malformed` | A 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-lcp` | The Jetton transfer carries no forward payload, or its forward payload is not a comment carrying an ATR hash in LCP string form. | | `tvm/peer-missing` | The 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/unreadable` | **Read 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-high` | The 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-low` | The TON attached to the Jetton transfer is not more than the option's forward TON amount. | | `tvm/wrong-reader` | The 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`). | Code | Meaning | |---|---| | `ln/amount-mismatch` | The x402 Lightning option's invoice has no amount, or its amount in millisatoshis is not the option's `amount`. | | `ln/created-in-future` | The x402 Lightning `build` is given a validation time more than 60 s before the invoice's creation time. | | `ln/currency-network` | The 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-inline` | The MPP challenge's invoice, or the x402 Lightning option's invoice, carries an inline `d` description. | | `ln/description-present` | The MPP Lightning challenge's request carries a `description`. | | `ln/expires-after-invoice` | The MPP challenge's `expires` is later than the invoice's own expiry. | | `ln/expiry-mismatch` | The x402 Lightning option's invoice's expiry is not the option's `maxTimeoutSeconds`. | | `ln/field-length` | `invoiceH` 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-repeated` | The invoice carries more than one `h` field or more than one `m` field. | | `ln/invoice-expired` | The x402 Lightning `build` is given a validation time at or after the invoice's creation time plus its expiry. | | `ln/invoice-in-offer` | The offer the x402 Lightning pairing's `advertiseBeforeCarrier` places carries `extra.invoice`, which the seller's node issues only after the agreement. | | `ln/invoice-malformed` | A 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-large` | A BOLT11 invoice exceeds 8 KiB or carries more tagged fields than the bound. | | `ln/no-description-hash` | The 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-metadata` | A decoded invoice given to `invoiceH` for its `m` has no `m` (metadata) field. | | `ln/no-payment-in-action` | The MPP Lightning session credential whose payment is being bound is not the `open` action, the only one that pays the invoice. | | `ln/payment-hash-mismatch` | The invoice's payment hash is not the MPP challenge's `paymentHash`, or not the x402 Lightning option's `extra.paymentHash`. | | `ln/payment-hash-required` | An 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-malformed` | The preimage given to `complete`, presented in an x402 Lightning payment, or given to `checkPreimage`, is not 64 lowercase hex digits. | | `ln/preimage-mismatch` | The 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-malformed` | The 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-mismatch` | The 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-malformed` | The MPP Lightning session `build` is given a return invoice that is not an amountless BOLT11 invoice. | | `ln/signer-not-payee` | The x402 Lightning option's invoice is signed by a key other than the option's `payTo`. | | `ln/time-malformed` | The 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`). | Code | Meaning | |---|---| | `stacks/chain-mismatch` | The `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-memo` | The Stacks transaction is not a call to the reference's contract `transfer`, or its fourth argument is not `(some <32 bytes>)`. | | `stacks/not-final` | **Read 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-found` | **Read 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-success` | The 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/unreadable` | **Read 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-reader` | The 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. | Code | Meaning | |---|---| | `return/header-malformed` | `fromLegalContextHeader` 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-malformed` | `servesOf` 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 `/`, 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-sale` | `checkLegalContextReturn` 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-mismatch` | `checkLegalContextReturn` 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`). | Code | Meaning | |---|---| | `spend-permissions/account-is-spender` | `build` 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-malformed` | `build` 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/ended` | `checkReturn` finds that the permission's `end` is not later than the clock it is given. | | `spend-permissions/header-malformed` | A `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-malformed` | `advertise` 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-https` | The 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-approved` | `approvedIn` 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-bound` | The 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-malformed` | An 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/revoked` | `approvedIn` 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-accepted` | `checkReturn` finds that the return takes a route, `signature` or `transaction`, that the offer's `accepts` does not name. | | `spend-permissions/signature-invalid` | A return's `signature` is not `0x` and 1 to 8192 bytes of hex. The SpendPermissionManager verifies the signature itself when `approveWithSignature` is submitted. | --- # Vector files > Every vector file @integraledger/lcp ships, and what it fixes. Source: https://lcp.integraledger.com/reference/vectors Updated 2026-11-20. Documents @integraledger/lcp 0.6.3 and @integraledger/profile-facilitator 0.5.1. This page is generated from the package by `node scripts/docs-reference.mjs`, and CI checks that it matches. The package ships 81 vector files in `vectors/`. Each file's `about` states what it covers and where its expected values come from; it is quoted here as it is. The [Vectors](https://lcp.integraledger.com/concepts/vectors.md) page explains how to run them. | File | About | |---|---| | [`a2a-legal-context.json`](https://lcp.integraledger.com/vectors/a2a-legal-context.json) | Vectors for the a2a entry point of @integraledger/lcp, the LCP A2A extension. Every expected value is fixed by the extension and its URI list, with H and L as in ack-payment-request.json. A value {"$repeat": [s, n]} in args stands for the string s repeated n times. | | [`ack-payment-request.json`](https://lcp.integraledger.com/vectors/ack-payment-request.json) | Vectors for the ack/payment-request pairing: the ack entry point of @integraledger/lcp. Every expected value is fixed by the pairing, with H, L and the JWS conventions of card.json: H = SHA-256("abc") (FIPS 180-2), L = https://atr.seller.example/7c8acfa2-f800-4192-89e9-1cef9833180f, a path from a random token, not from H, and each token base64url(JSON(header)).base64url(JSON(payload)).base64url(r\|\|s), JSON compact with members in the order written. T and the plant's token were built from that recipe with GNU coreutils basenc; their ES256 signatures verify over those signing inputs (cryptography 41.0.7). read verifies no signature. A token whose third segment is c2ln carries no signature at all. A token segment with a pad bit set is T's with its last character's lowest pad bit raised, the same bytes in a form that is not canonical (RFC 4648 section 3.5), built with Python 3's base64: read takes RFC 7515 section 2's base64url in its canonical form only. | | [`acp-checkout.json`](https://lcp.integraledger.com/vectors/acp-checkout.json) | Vectors for the acp/checkout/delegated and acp/checkout/undelegated pairings: the acp entry point of @integraledger/lcp. Every expected value is fixed by the pairing. A is a 287-byte ATR, H = SHA-256(A) (GNU coreutils sha256sum and openssl dgst -sha256 agree), L = https://atr.seller.example/7ff24b70-83ec-430a-ad3e-3ae487a62050, a path from a random token, not from H, S0 a checkout session, and otherH ucp.json's H. A value {"$repeat": [s, n]} in args stands for the string s repeated n times. | | [`ap2-checkout-mandate-x402.json`](https://lcp.integraledger.com/vectors/ap2-checkout-mandate-x402.json) | Vectors for ap2/checkout-mandate/x402. The checkout mandate and checkout JWT are ap2-checkout-mandate.json's built M and J, whose bound H is that file's fixed H; M's checkout_hash is the SHA-256 of J, base64url (fixed.checkoutHash). The x402 credential is AP2's bundle as its reference credential provider writes it (google-agentic-commerce/AP2 e1ea56d, code/samples/python/src/roles/x402_credentials_provider_mcp/server.py:162-163 and :205-219): the authorization's nonce is keccak-256 of the payment mandate chain's UTF-8 text, here computed by js-sha3 0.13.0's keccak256, the check AP2's payment processor makes (x402_psp_mcp/server.py:147-157). The payment mandate chain is AP2's published open Payment Mandate (the open hop of docs/ap2/payment_mandate.md line 534 at e1ea56d, whose SHA-256 is fixed.publishedSha256) chained with a closed Payment Mandate written as AP2's SDK writes it, by node:crypto and the JSON text of Python's json.dumps: a kb+sd-jwt whose delegate_payload references one disclosure of mandate.payment.1, its transaction_id the checkout's hash (AP2 specification.md:154-155; payment_mandate.json's transaction_id; shopping_agent_v2/shopping_agent/mandate_tools.py:809-814), its nonce the payment nonce, its sd_hash the open hop's digest as AP2's published closed hop has it. fixed.published is AP2's published chain whole: its transaction_id is the hash of AP2's published checkout, another checkout than this one. The signatures are placeholders, since nothing here verifies one. Accounts and amounts are AP2's sample's shapes. | | [`ap2-checkout-mandate.json`](https://lcp.integraledger.com/vectors/ap2-checkout-mandate.json) | Vectors for the ap2/checkout-mandate pairing and the SD-JWT reader it uses (the ap2 entry point of @integraledger/lcp). SHA-256 values were computed with GNU coreutils 9.4 sha256sum and basenc and agree with OpenSSL 3.0.13. The tests build J, D and M from the fixed strings; 'built' holds the same strings as written by Python 3's base64 and hashlib, for other languages. V6's token is AP2's published closed Checkout Mandate, docs/ap2/checkout_mandate.md line 328 at commit e1ea56db of google-agentic-commerce/AP2, pinned by its SHA-256. V7's token is AP2's published chained presentation, line 494 of the same file at the same commit: the open Checkout Mandate's SD-JWT and the closed mandate's, joined by ~~ in the compact serialization of the Delegate SD-JWT draft (GarethCOliver/gco-delegate-sd-jwt at commit e44c0c1). Its last hop is V6's token, and expectSdHash is that hop's sd_hash claim, the digest of the open hop with its trailing ~ restored. The 'implementation' rows fix refusals that neither AP2 nor RFC 9901 names, reader cases from RFC 9901 sections 4 and 7.1, and the chain rows (named chain-*), which follow the draft's compact serialization and the two hops of the checkout chain in AP2's SDK (code/sdk/python/ap2/sdk/checkout_mandate_chain.py at e1ea56db); their tokens were built with Python 3's base64 and hashlib. The rows named *-pad-bit spell one segment or disclosure of J or M with its last character's lowest pad bit set, the same bytes in a form that is not canonical (RFC 4648 section 3.5), built with Python 3's base64 and hashlib: the reader takes RFC 7515 section 2's base64url in its canonical form only. | | [`base64-platform.json`](https://lcp.integraledger.com/vectors/base64-platform.json) | ECMA-262's Uint8Array.fromBase64, recorded on Node v26.11.1, over the texts test/base64.test.ts and test/base64url.test.ts read, so that those tests compare the package's readers with it on a Node that has no Uint8Array.fromBase64 (Node 24). Each set names the texts its test makes and how they are read; `texts` is how many the test makes, `read` maps each text the built-in reads to its bytes in hex, and the built-in refuses every other text of the set. On a Node that has the built-in, the tests also hold this file to it. | | [`broadcaster.json`](https://lcp.integraledger.com/vectors/broadcaster.json) | Who broadcasts what a payer presents under each pairing, as its `broadcaster` answers: "payer", which sent the payment before presenting it, so the seller reads a landed payment, or "payee", the seller, or the facilitator or processor acting for it, which sends or executes what the payer presented. `broadcaster` answers only for a payment of a type and kind the pairing takes, within the shape gate its `bound` applies first, and gives any other payment the refusal `bound` gives that fault. Where a payment has a second fault that `bound` finds first, in H or the challenge, the two codes differ. A session's or batch channel's `bound` reads the opening alone, so for any other action the reader is `channel.kind`: a payment it refuses for its own content gets its refusal (a batch channel reads the payload alone, under any `accepted` option), and one a session's `channel.kind` refuses for what the challenge decides is answered. `pairings` holds every pairing once, with its answer where every payment it takes has the same one, and null where it answers by the kind of payment; `kinds` holds answers for credentials of each kind, each copied from the pairing's own vector file's buyer row with only its payload changed, or, where its `case` says so, under another challenge: on the EVM `transaction` and `hash` charges, a challenge carrying only the members a credential needs, or the challenge `place` places; and on the card and Stripe pairings, the challenge `advertise` places. `refusals` holds payments of a type, kind or shape the pairing does not take: `bound` and `broadcaster` each refuse one with `expectRefusal`, except where the row has a `bound`, which names the code `bound` gives: a session's or channel's action other than the opening, which `bound` does not read, and which `channel.kind` and `broadcaster` each refuse with `expectRefusal`. A value {"$repeat": [s, n]} in a row stands for the string s repeated n times. Each `pairings` and `kinds` row's `source` names the specification the answer is read from; the MPP drafts are cited at tempoxyz/mpp-specs 08e7dd87. | | [`buyer.json`](https://lcp.integraledger.com/vectors/buyer.json) | The buyer gate's rows for the x402/exact/eip155/eip3009 pairing. A is a 138-byte ATR; C is A with byte 124 changed from 0x30 to 0x31; link is where the seller serves A, a path from a random token, not from the hash; D is the V5 document of x402-exact-eip155-eip3009.json advertising hash(A) and link. The payer is the published Anvil key, account eip155:84532:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, and now is 1790000000. SHA-256 values were computed with GNU coreutils sha256sum and agree with openssl dgst -sha256; B6's digest and signature with viem 2.56.7 and eth-account 0.14.0. Bodies are hex. A row whose input names a stub describes the stub's behaviour. A row named with a pairing (BX1) runs that pairing's read and build; its cases each give their own inputs and expect. The BW rows run the gate's within on a channel of the pairing they name. A row's cases share its input and expect except where a case gives its own; control is the same exchange answered in the identity coding (BE1), with an opaque holding only the LCP members that name the held H (BW1, BW2), or with well-formed refund values (BW3). A BX1 case's refusal is what the protocol package's checks of the placed challenge return; the gate then has no challenge it can pay, and declines no-payable-option. A BW row's hold is what openChannel gives for the ATR atrHex and the opening hold.opening names. BW1's and BW2's challenge is the seller's own within challenge on that channel: the issued request with methodDetails.channelId naming the held channel, JCS-serialized (RFC 8785) and base64url without padding, an id of the seller's, and an opaque whose JSON is opaqueText; BW3's and BW4's is the x402 document doc names, advertising the held H. A row with entry calls that gate function rather than transact: finish with the chosen confirm gives and another pairing's binding (B19), confirm (B20) and agree (BA16) with each case's inputs; BA5's entries are the two it runs through. A BW row's refund and inputs are within's. | | [`card.json`](https://lcp.integraledger.com/vectors/card.json) | Vectors for the card entry point of @integraledger/lcp: Visa TAP, Mastercard Agent Pay, Visa Intelligent Commerce, Mastercard Verifiable Intent and the plain card checkout. H is SHA-256("abc") from FIPS 180-2 and E is SHA-256 of the empty string. The TAP and Agent Pay signatures are RFC 9421 Ed25519 under RFC 9421's test-key-ed25519, and their nonces the base64 of H or E followed by C2.random. C2 to C9 and T2 to V10 were computed with Node's node:crypto from the profiles, importing no lcp code. The VI strings of `vi` are built from a recipe (compact JSON, members in the order written) with fixed ES256 signatures, which verify under USER (L2i, L2a) and AGENT (L3b); every digest was checked with Python 3.12.3 hashlib. | | [`charge-reference.json`](https://lcp.integraledger.com/vectors/charge-reference.json) | Vectors for the reference of card/seller-reference, acp/checkout/undelegated and ucp/checkout/unsigned: the seller's own reference for the charge, presented as {charge}, 1 to 255 visible ASCII characters, with the checkout of the option the charge answers where the option names one. The charge reference is the id of Stripe's published PaymentIntent object (https://docs.stripe.com/api/payment_intents/object.md, read 2026-11-17, SHA-256 392c5d46d8260839…, its line 7). The rows apply the profiles' rules (card-seller-reference.md rules 4 and 5; acp-checkout-session-id.md and ucp-checkout-legal-context.md on the reference); written by Python 3 from those rules, not by lcp. | | [`core-vectors.json`](https://lcp.integraledger.com/vectors/core-vectors.json) | Core vectors for assemble, hash and hashEquals. Expected values were computed 2026-09-25 with sha256sum, openssl dgst -sha256, Python 3 json and Node v24.21.0 JSON.stringify. Content bytes are given as hex so that they are exact. A refusals row gives its input where JSON can hold it. A row whose input sits behind an accessor describes it in its case and expects V1's hash: assemble reads each input once and writes what it read. | | [`decoder-caps.json`](https://lcp.integraledger.com/vectors/decoder-caps.json) | Decoder caps. XRPL: every field of a transaction sits at most 10 levels deep, the limit past which rippled's deserializer refuses a field (rippled 3.4.1, src/libxrpl/protocol/STVar.cpp L104-108: depth > 10): a top-level field is at level 1, each field inside an object or array field one level below it, and an array's member object one level below the array; an end marker that closes its own object or array sits at no level, so an object or array at level 10 holds no field, and an end marker anywhere else is refused at any level, as rippled 3.4.1 refuses it (STObject.cpp L240-244, STArray.cpp L54-58); a row's stray names that marker. Each row's depth is its deepest field's level, a stray end marker counting as a field. The blobs were written by ripple-binary-codec 2.11.0's encode, each by construction: XC1 to XC9 a Payment with only the nesting, XC10 to XC15 a pairing's signed blob with a Memo field added (XC10 and XC11 x402-exact-xrpl.json V2's, XC12 and XC13 its V3's, which mpp-charge-xrpl.json V3 presents, XC14 and XC15 mpp-session-hedera-solana-xrpl.json XS2's), and XC16 and XC17 as their cases say. XC1 to XC9 and XC17 are a Payment holding only its TransactionType, Account rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh and the nesting; each MemoType is the one byte AB. Python 3.12.3's walk of the field headers gives each row's depth, and its hashlib gives each hash, SHA-512Half over 54584E00 and the blob; node:crypto gives XC16's and XC17's, which hashlib gives too. The rows bound nesting only: rippled also holds each object to its field's template, which a Memo inside a Memo does not meet. The cap is checked in one pass over the blob's fields before the codec decodes it, so XC5, the largest blob decodeBlob takes (4096 hex characters), is refused in time linear in its length. msgpack: arrays and maps nest at most 32 levels, the outermost container being level 1, every declared length is at most the bytes left, and the bytes are exactly one value; the scan does not judge a string's bytes, a key or a format, which the Algorand reader reads as each member's type is read; each row is hand-written from the msgpack specification's formats, and Python 3.12.3's strict UTF-8 codec refuses the string of each row whose case says it is not well-formed. ScVal: vectors and maps (a contract instance's storage counting as a map) nest at most 64 levels within one ScVal, the outermost container being level 1; each ScVal is hand-written XDR (RFC 4506). Authorized invocations nest at most 64 levels within one authorization entry, the root invocation being level 1. In an envelope the cap applies to what decodeStellarTx reads, the operation and the payer's authorization entry; every other part (another entry, a delegate, the footprint, another operation, a claim predicate) is not walked and is decoded whatever its depth. The envelopes are x402-exact-stellar.json V2's signed envelope edited with @stellar/stellar-sdk 17.2.1's XDR types: SE1 and SE2 wrap the payer's signature (a vector of one map, 2 levels) in vectors, SE3 and SE4 add a second authorization entry under the source account's credentials, SE5 gives the payer's transfer a chain of sub-invocations, SE6 gives the operation a fourth argument, SE7 adds a second authorization entry under address credentials with delegates (the account key of 32 bytes of 04, a void signature, and x(void) on the contract of 32 bytes of 06 as its invocation) whose delegates nest 66 deep, and SE8 replaces the operation with a create-claimable-balance of 1 stroop of the native asset whose one claimant (the account key of 32 bytes of 05) has a predicate nesting 66 deep, 65 not-predicates around an unconditional one. SE9 to SE75 hold each recursive shape at 64 and 65 levels in each place it can sit, and in each place lcp does not read, at the least level js-xdr 5.0.0's default depth (1,500) refuses where that fits in 8,192 characters, as each row's case says. The places are the payer's signature (replaced), a fourth argument of the operation, the payer's invocations, a second entry as SE3's (its argument or invocations), as SE7's (its one delegate's signature, or its delegates) or under the address credentials of the account key of 32 bytes of 08 with a void signature (its signature or invocations), a footprint of one read-only persistent contract-data key on the contract of 32 bytes of 07, a second operation (x(value) on the contract of 32 bytes of 06, or a create-claimable-balance as SE8's), and SE8's operation. Each map and contract instance storage holds one entry whose key is void, each contract instance's executable is the Stellar asset, and each and-predicate's first operand is unconditional. Past the cap in what is read is refused; every other row reads as V2's envelope reads without its nesting. A row's expect, where it has one, is decodeStellarTx's refusal. 'accept' says whether the caps admit the input. | | [`discovery.json`](https://lcp.integraledger.com/vectors/discovery.json) | The discovery document (LCP §2): what emit writes and what parse reads or refuses. 'bytes' is UTF-8 text; 'bytesHex' is used where the bytes are not valid UTF-8 text. The parse rows named LCP §2.7 are its four examples, cut from it byte for byte. Expected emitted bytes were written by Python's json.dumps with separators (',', ':') over members in LCP §2.4-§2.5's table order; digests with hashlib.sha256, agreeing with GNU coreutils sha256sum 9.4. The ETag is '"' + the digest's hex + '"'. 'inputRepeat' sets that member of 'input' to 'char' repeated 'count' times. 'padTo' is the bytes '{"terms":"https://seller.example/t.md","x-pad":"' + 'a' repeated + '"}', exactly that many bytes long. | | [`legal-context-return.json`](https://lcp.integraledger.com/vectors/legal-context-return.json) | Vectors for the return after an agreement (legal-context-return.md): the Legal-Context header, an RFC 9651 Item whose token is H's LCP string and whose one parameter is rv, the sale's 32-byte return value as a byte sequence; and the member by which an agreement option names the charge options it serves, each `/`. H is mpp-challenge.json's; the return value is the bytes 0x00 to 0x1f; the x402 option and the MPP challenge are mpp-challenge.json's C_E and the x402 specification's example option. The card ATR of `atrs`, its UTF-8 text, is an ATR whose binding slot `card` holds card.json's three C1 options and one party slot, `terms`, written as the ATR's form fixes its bytes (atrVersion, id, the binding slot, then each party slot) with Python 3.12.3's json.dumps without spaces; a row naming it reads the option's names against those bytes. Expected values were written from the profile with Python 3.12.3's base64 and json, the MPP opaque as base64url without padding of RFC 8785's form. The read and readRefusals rows follow RFC 9651's parsing algorithm (section 4.2, the Item; 4.2.3.2, parameters, a repeated key overwriting the value before it; 4.2.4 to 4.2.10, the bare items; 4.2.7, a byte sequence read with its padding absent and with bits set past its last byte, which a parser should not refuse), each rv's bytes decoded by Python 3.12.3's base64.b64decode with the padding restored; the bare items given before an overwritten rv are RFC 9651 section 3.3's own examples, and each refused one breaks one step of section 4.2. The check rows hold a header value and the resource server's record of the sale (its H, and its return value where it has one), and what checkLegalContextReturn answers: one return that passes and one for each refusal, the last a Lightning sale's return without its return value; their headers are written as the write rows are. | | [`mpp-challenge.json`](https://lcp.integraledger.com/vectors/mpp-challenge.json) | Vectors for MPP's challenge pieces in the mpp entry point of @integraledger/lcp, shared by every MPP pairing. H is SHA-256("abc") from FIPS 180-2. C_E and C_T are fixed challenges; their request values are JSON, base64url without padding. Expected values were computed with eth-account 0.14.0, eth-abi 6.0.0, eth-utils 6.0.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4, mppx 0.15.0 (the challenge hash) and GNU coreutils 9.4. MV9's field values are MPP's own example (draft-httpauth-payment-01 at 08e7dd87, lines 1427-1430). | | [`mpp-charge-card.json`](https://lcp.integraledger.com/vectors/mpp-charge-card.json) | Vectors for mpp/charge/card. H is SHA-256("abc"); fixed.MV1 is the MPP challenge id derived from H. The request is the M1 request, its JSON written in the order given here and encoded as base64url without padding. The issued digest is SHA-256 of the sorted JSON (printf of the sorted JSON piped to sha256sum). The proves text is the pairing's record, opening with the agreement transaction's sentence. | | [`mpp-charge-evm-authorization.json`](https://lcp.integraledger.com/vectors/mpp-charge-evm-authorization.json) | Vectors for mpp/charge/evm/authorization. Expected values were computed with eth-account 0.14.0, eth-abi 6.0.0, eth-utils 6.0.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4, mppx 0.15.0 (the challenge hash) and GNU coreutils 9.4. Where a value is truncated, the row holds its prefix and suffix. The payer key is the published Anvil development key #0; the Permit2 spender is Anvil account 1. C_E and C_T are mpp-challenge.json's fixed challenges. | | [`mpp-charge-evm-hash.json`](https://lcp.integraledger.com/vectors/mpp-charge-evm-hash.json) | Vectors for mpp/charge/evm/hash. Expected values were computed with eth-account 0.14.0, eth-abi 6.0.0, eth-utils 6.0.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4 and GNU coreutils 9.4. Where a value is truncated, the row holds its prefix and suffix. The payer key is the published Anvil development key #0; the Permit2 spender is Anvil account 1. C_E and C_T are mpp-challenge.json's fixed challenges. Under the profile read-status, MV12's rows that were failed (another sender, another emitter, a revert, the guard) are pending search-incomplete (rule 23: a read with no means to read the single-use value never answers failed), and a lookup that finds no receipt is unreadable history-gap (rule 18). | | [`mpp-charge-evm-permit2.json`](https://lcp.integraledger.com/vectors/mpp-charge-evm-permit2.json) | Vectors for mpp/charge/evm/permit2, single and batch. Expected values were computed with eth-account 0.14.0, eth-abi 6.0.0, eth-utils 6.0.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4, mppx 0.15.0 (the challenge hash) and GNU coreutils 9.4. Where a value is truncated, the row holds its prefix and suffix. The payer key is the published Anvil development key #0; the Permit2 spender is Anvil account 1. C_E and C_T are mpp-challenge.json's fixed challenges. Under the profile read-status, MV6b's splitOnlyReceipt, failed before, is pending search-incomplete: at coverage full no failed is answered until the search for H is read whole (rule 24). | | [`mpp-charge-evm-transaction.json`](https://lcp.integraledger.com/vectors/mpp-charge-evm-transaction.json) | Vectors for mpp/charge/evm/transaction. Expected values were computed with eth-account 0.14.0, eth-abi 6.0.0, eth-utils 6.0.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4 and GNU coreutils 9.4. Where a value is truncated, the row holds its prefix and suffix. The payer key is the published Anvil development key #0; the Permit2 spender is Anvil account 1. C_E and C_T are mpp-challenge.json's fixed challenges. | | [`mpp-charge-lightning.json`](https://lcp.integraledger.com/vectors/mpp-charge-lightning.json) | Vectors for the mpp/charge/lightning pairing: the lightning entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. L2 has p = x402's payment hash, s, h = H, x = 300 and features 8 and 14; it was made by an encoder that reproduced BOLT11's published h example byte for byte (@scure/base, @noble/curves and @noble/hashes 2.4.0) and decoded by light-bolt11-decoder 3.2.0 and bolt11 1.4.1. A challenge's request is given decoded; it is sent as base64url (no padding) of its JCS form. The issued digest is GNU coreutils sha256sum over the sorted JSON without the invoice; Python's json.dumps(sort_keys=True, separators=(",",":")) agrees. | | [`mpp-charge-nearintents.json`](https://lcp.integraledger.com/vectors/mpp-charge-nearintents.json) | Vectors for mpp/charge/nearintents (mpp-charge-nearintents.md), on MPP's own example request (draft-nearintents-charge-01, blob 6a389faa6b, lines 329-353; again at 821-843) without its externalId. Every expected value is computed from the profile with Python 3.12.3's json, base64 and hashlib, never with lcp: RFC 8785 as json.dumps(sort_keys=True, separators=(',',':')) over these values, which hold ASCII keys and no fractions; base64url without padding; SHA-256. The second quote's members, the changed fixed members and every hash in reference but the draft's example deposit hash (line 870) are constructed, not recorded: the bip122 and stellar hashes are SHA-256 of a label, and the near and solana hashes are base58 (Bitcoin's alphabet, written in Python over int.from_bytes) of SHA-256 and SHA-512 of a label. The spelling rules reference applies are the draft's (Replay Protection, lines 663-670). | | [`mpp-charge-solana.json`](https://lcp.integraledger.com/vectors/mpp-charge-solana.json) | Vectors for mpp/charge/solana and, in unsponsored and the rows that name it, mpp/charge/solana/unsponsored. Fixtures are seeds 01 and 02, devnet USDC, x402's payTo and blockhash, and x402-exact-solana.json's V2 and V3 wires. The placed request is computed with Python 3 json.dumps(sort_keys=True, separators=(',',':')) and base64url without padding. Exactly one memo whose data parses as an LCP string, spelled as L and equal to the carrier; other memos are not read. Each reference names the payee of the challenge the payment answers, its request's recipient. | | [`mpp-charge-stripe.json`](https://lcp.integraledger.com/vectors/mpp-charge-stripe.json) | Vectors for mpp/charge/stripe, on MPP's own example request (draft-stripe-charge-00). Stripe metadata allows up to 50 keys, key names up to 40 characters and values up to 500; the legal_context key has no square brackets. The refusal rows apply those bounds. | | [`mpp-charge-tempo-memo.json`](https://lcp.integraledger.com/vectors/mpp-charge-tempo-memo.json) | Vectors for the tempo entry point's memo pieces, attributionMemo, checkAttribution and memoCalldata (MV7), and the calls that pay a Tempo charge request with splits (splits); the id mpp/charge/tempo/memo is retired. Expected values were computed with eth-account 0.14.0, eth-abi 6.0.0, eth-utils 6.0.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4 and GNU coreutils 9.4. Where a value is truncated, the row holds its prefix and suffix. The payer key is the published Anvil development key #0; the Permit2 spender is Anvil account 1. C_E and C_T are mpp-challenge.json's fixed challenges. | | [`mpp-charge-tempo-split-memo.json`](https://lcp.integraledger.com/vectors/mpp-charge-tempo-split-memo.json) | Vectors for mpp/charge/tempo/split-memo and mpp/charge/tempo/split-memo/push (profile mpp-charge-tempo-split-memo.md). Oracle: stock mppx 0.17.6's Tempo charge client (mppx/client tempo.charge) paying each placed challenge with the published Anvil development key #0, at the fixed clock `now` with viem's random validAfter bytes fixed at 0x11, through a transport that answers chain id, fees and gas and, on push, takes the sent transaction (test/eip155-tempo-mpp-split-oracle.ts, which rebuilds this file whole); `authorization` is the Authorization header value the client returned, its credential the base64url JSON after "Payment "; `viem` is viem 2.57.4's Tempo reader of the signed bytes, which names the split call carrying H. `placed` is the profile's rule 1 applied by that module, not by lcp: the split {recipient, amount: "1", memo: H} appended in RFC 8785 form. H is SHA-256 of "abc" (FIPS 180-2 B.1). `challenges` are pairingsOf's answers the profile's rules 2 to 4 state. | | [`mpp-charge-usdc-evm.json`](https://lcp.integraledger.com/vectors/mpp-charge-usdc-evm.json) | Vectors for mpp/charge/usdc/evm. Expected values were computed with canonicalize 5.1.0, viem 2.57.4 and js-sha3 on Node, and json.dumps(sort_keys=True, separators=(',',':')) with eth-utils keccak on Python 3.12.3. A.1 is the usdc draft's example (draft-usdc-charge-00, blob ec7fc1868b, lines 1035-1090), whose request parameter is copied verbatim. Truncated values hold their prefix and suffix. The payer key is the published Anvil development key #0. | | [`mpp-charge-usdc-gateway.json`](https://lcp.integraledger.com/vectors/mpp-charge-usdc-gateway.json) | Vectors for mpp/charge/usdc/gateway. Expected values were computed with canonicalize 5.1.0 and viem keccak256, canonicalize and js-sha3, and Python json.dumps with eth-utils keccak, which agreed. The TransferSpec runs from Arc Testnet (domain 26) to Base Sepolia (domain 6), the testnet wallet and minter of gateway-api-testnet.circle.com /v1/info, each address left-padded to 32 bytes. The payer key is the published Anvil development key #0; the signature is made at test time and is not verified by bound. The ceiling section's oracles: Circle's Gateway API reference for GET /v1/info (developers.circle.com/api-reference/gateway/all/get-gateway-info, read 2026-11-17), which serves burnIntentExpirationHeight per network as a decimal string, the current minimum accepted burn intent expiration height; Circle's Gateway technical guide (developers.circle.com/gateway/references/technical-guide, read 2026-11-17), under which Gateway takes a transfer request only while its maxBlockHeight is at least the wallet's withdrawalDelay above the source chain's current block; and Circle's own client, @circle-fin/x402-batching 4.0.0 (this workspace's pinned devDependency), whose GatewayClient reads withdrawalDelay as the Gateway Wallet's uint256 view withdrawalDelay() (dist/client/index.mjs:763-769, :1642-1647) and whose createBurnIntent (dist/client/index.mjs:1472-1495) signs maxBlockHeight 2^256 - 1, run at test time on Arc Testnet to Base Sepolia with the payer key above, which gives M5's spec but for its random salt. Each expectMaxBlockHeight is burnIntentExpirationHeight + ceil(withdrawalDelay x 100 / 604800), computed with Python 3.12.3 integer arithmetic, h + -(-d * 100 // 604800), refused where it exceeds 2^256 - 1. The heights and delays are chosen to exercise the arithmetic and were not read from a network. | | [`mpp-charge-usdc-solana.json`](https://lcp.integraledger.com/vectors/mpp-charge-usdc-solana.json) | Vectors for mpp/charge/usdc/solana: the Solana charge with method usdc, its details read from methodDetails.solana, whose network is required (draft-usdc-charge-00, Solana profile). The request, the wire and the expected reference are mpp-charge-solana.json's, so the expected values are that file's. The usdc profile rule is the draft's: methodDetails.type names exactly one profile details object. Each reference names the payee of the challenge the payment answers, its request's recipient. patternAs names the pairing whose record this one's is, and profile the one profile it names apart, profiles/mpp-charge-usdc-solana.md. | | [`mpp-charge-usdc-stacks.json`](https://lcp.integraledger.com/vectors/mpp-charge-usdc-stacks.json) | Vectors for mpp/charge/usdc/stacks. R_S is the usdc draft's A.3 request (draft-usdc-charge-00, blob ec7fc1868b) without description, externalId, feePayer and feePayerAddress. The transaction is built at test time with @stacks/transactions 7.6.0 from these inputs, signed by the private key whose scalar is 1 (compressed); its length, bytes and txid were computed with stacks.js txid(), noble sha512_256, Python hashlib and OpenSSL, which agreed. The reference names the origin, the nonce, the payee and `signed`, the digest of what the origin signed, which @stacks/transactions 7.6.0 computes as sigHashPreSign(signBegin(), Standard, fee, nonce); M4s holds M4's transfer under a sponsored authorization, sponsored by keys 2 and 3 with the sponsor nonces and fees it names, and the same transfer signed again with a fee of 2000, each built and digested with that library. M4's wireHex is that transaction's bytes, whose SHA-512/256 is the txid, for buyer-side tests without the SDK. A credential's transaction is read as a Stacks node (stacks-core 4.0.5) decodes it; agreedRefusals gives the refusals that reading answers. M4b's rows are constructed ledgers of the Stacks Blockchain API (stacks-blockchain-api 9.9.0's routes) that test/stacks-ledger.ts answers from, none recorded from a live endpoint: L is M4's transfer mined at block 9021832, the tip at 9021900, and a block at or below finalThrough at Bitcoin finality; each row's expected answer was derived by hand from read-status.md and mpp-charge-usdc-stacks.md, the query being the act payment at the finality bitcoin where the row names none. Integers are decimal strings, read as bigints. recover reads a failed transaction's mark as status does: stacks/not-success at Bitcoin finality, stacks/not-final below it or where the tip read rejects. | | [`mpp-charge-xrpl.json`](https://lcp.integraledger.com/vectors/mpp-charge-xrpl.json) | Vectors for mpp/charge/xrpl. Fixtures are payer r3sN…6dTC, destination rpjf…EyN, and x402-exact-xrpl.json's V2 x402 blob, V3 MPP blob and the plant's memo blob. The placed request is computed with Python 3 json and base64url. Each reference names the payee of the challenge the payment answers, its request's recipient. | | [`mpp-method-lcp-hedera.json`](https://lcp.integraledger.com/vectors/mpp-method-lcp-hedera.json) | Vectors for mpp/charge/lcp/hedera (profile mpp/method/lcp, rules 12 to 21). H is SHA-256("abc") from FIPS 180-2. Every body and signed transaction was built and frozen with hiero-sdk-python 0.2.10's TransferTransaction (protobuf 7.36.2, Python 3.12.3) and signed with its Ed25519 key from the seed below, by tools/hedera_bytes.py run outside the workspace on 2026-11-17 (python -I hedera_bytes.py, in a virtual environment holding hiero-sdk-python==0.2.10); a scheduled id through the SDK's TransactionId, a nonce through the SDK's own TransactionBody protobuf, a list through its TransactionList protobuf. Nothing comes from lcp's builder. build rows hold the body the SDK froze and the transaction the SDK signed for the same inputs. Each refusal row is a good transaction with one member changed, built the same way, and the function and code expected; the rows whose bytes no SDK writes (over the size bound, not a protobuf message) say so. landed rows hold the Mirror Node's recorded testnet answer of GET /api/v1/transactions/0.0.3229-1791145265-469000038 (2026-10-04), whose memo is the mirror monitor's text, and that entry with one stated edit, its memo_base64 H's LCP string. now is the clock reading validate is given, in Unix seconds. | | [`mpp-method-lcp.json`](https://lcp.integraledger.com/vectors/mpp-method-lcp.json) | Vectors for the lcp MPP method's challenge, filter, credential and receipt (profile mpp/method/lcp, rules 2 to 5 and 10). H is SHA-256("abc") from FIPS 180-2. Each challenge was written and parsed by mppx 0.17.6's Challenge.from, serialize and deserialize (a method-agnostic parser and serializer, dist/Challenge.js), its request's bytes being canonicalize 5.1.0's RFC 8785 form, written in base64url without padding; challenges.*.header is the WWW-Authenticate value mppx writes and .wire the members it parses back, the request re-encoded. The filter rows have no oracle outside the profile: each is the profile's schema (rules 3 and 4) applied to a challenge whose encoding mppx and canonicalize fixed, one member changed from a good one, and its expected code. The credentials and receipts were written by mppx 0.17.6's Credential and Receipt codecs (dist/Credential.js, dist/Receipt.js): credentials.*.header is the Authorization value, whose base64url JSON is the wire credential, and credentials.hashMetaSource.input the credential mppx serialized to its header; the Hedera transaction a credential carries is the hiero-sdk-python 0.2.10 output of mpp-method-lcp-hedera.json. Assembled 2026-11-17 by a script run in the lcp package's directory, outside its source. | | [`mpp-server-checks.json`](https://lcp.integraledger.com/vectors/mpp-server-checks.json) | Vectors for the two checks an MPP resource server makes before anything moves, and their order (mpp-charge.md, The server's order): place with the position and the act the caller gives, an agreement challenge stating expires, each pairing's advertise passing the act, each pairing's advertise refusing another pairing's challenge, tie and issuedDigest over a challenge as its pairing's unplaced gives it, the echoed id held whole to the id recorded at issue, the order of the checks, an agreement challenge composed anew in the position of the one it replaces, and an echoed opaque that is an object. The order of the steps has no outside oracle; the encodings it starts from are the profile's, as below. Every expected value was computed from the profile with Python 3.12.3's json, base64 and hashlib: RFC 8785 as json.dumps(sort_keys=True, separators=(',',':')) over these values, which hold ASCII keys and no fractions; base64url without padding; SHA-256. The credentials are those of mpp-charge-evm-authorization.json (buyer B6), mpp-charge-xrpl.json (place, refusals[0]) and mpp-charge-card.json (M1), with the changes each row's case names. The advertise rows' challenges are each named file's, with id, opaque and expires removed, and, where the pairing's advertise takes it so, the carrier its unplaced removes; the notThisPairing rows give each pairing's advertise the challenge of the advertise row its case names, with expires 2020-01-01T00:00:00Z added so that no pairing is left out for want of one, and expect mpp/not-this-pairing, the code pairingsOf's dispatch and every pairing's filter give a challenge that does not name the pairing (no outside oracle: a refusal of lcp's own); the agreement act's code is the profile's rule 2 (every agreement challenge states expires), and `payment`'s, where the call refuses, is the code docs/reference/refusals.md gives a challenge with no expires whose every pairing needs one. C_E, H, the link and the agreement URL are mpp-challenge.json's. | | [`mpp-session-evm.json`](https://lcp.integraledger.com/vectors/mpp-session-evm.json) | Vectors for mpp/session/evm. Expected values were computed with eth-abi 6.0.0, eth-account 0.14.0, eth-hash 0.8.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4 and its ox 0.14.54 on Node 26.10.0, and GNU coreutils 9.4. Where a value is truncated, the row holds its prefix and suffix. The payer key is the published Anvil development key #0. The session request's amount is a price per unit and enters no expected value. Under the profile read-status, ES9's rows that were failed open-call-not-found (the open calls of another channel, presentedForH2) are pending search-incomplete: at coverage full no failed is answered until the search for H is read whole (rule 24). | | [`mpp-session-hedera-solana-xrpl.json`](https://lcp.integraledger.com/vectors/mpp-session-hedera-solana-xrpl.json) | Vectors for mpp/session/hedera/stock, mpp/session/xrpl and mpp/session/xrpl/stock, and for the Hedera and Solana channel pieces; rows that name a build or an opening of the retired mpp/session/hedera and mpp/session/solana are kept as wires and plants. Where a value is shortened, the row holds its prefix and suffix. HS4's receipts are live testnet reads from testnet.hashio.io (eth_getTransactionReceipt) at 2026-09-25T09:02Z. The placed challenges are computed with Python 3 json and base64url. XS4's opened is XS2's opening as the server answers it, which recover reads, and its closeRows a close named by closeTransaction; XS7 reads XS2's opening, and XS8 the stock session's channel. Each expected answer of XS4, XS7 and XS8 is the one the profile read-status (read-status.md) and the session profile's XRPL clause give the row's ledger, read at the mark validated for the act payment. | | [`mpp-session-lightning.json`](https://lcp.integraledger.com/vectors/mpp-session-lightning.json) | Vectors for the mpp/session/lightning pairing: the lightning entry point of @integraledger/lcp. The session challenge carries L2 (the mpp/charge/lightning vectors' invoice, h = H) as its depositInvoice and x402's payment hash as paymentHash, both at the top level of request as MPP's Lightning session draft places them. The rows follow the session draft's request members and actions (draft-lightning-session-00, blob 3bdcfd0184); no published session vector exists. The return invoice is BOLT11's published example "Please make a donation of any amount" (lightning/bolts 11-payment-encoding.md, blob ffd29a0909), which has no amount, as the session draft requires (draft-lightning-session-00, blob 3bdcfd0184: "returnInvoice: REQUIRED. BOLT11 invoice with no encoded amount"); light-bolt11-decoder 3.2.0 and bolt11 1.4.1 decode it with no amount. Only the open action is the session's payment; topUp, bearer and close are later actions in the session, with the draft's payload members. | | [`mpp-session-solana.json`](https://lcp.integraledger.com/vectors/mpp-session-solana.json) | Vectors for mpp/session/solana/memo and mpp/session/solana/stock, @solana/mpp 0.7.0's session (src/Methods.ts:203-302), as the profile mpp-session-hedera-solana-xrpl.md, clause 2, states them. Fixtures: mpp-charge-solana.json's H, L, realm, expires, MV1, MV3opaque and blockhash; seed 01 as the payer, seed 02 as the operator, seed 03's address as the authorizedSigner, devnet USDC as the mint, x402's payTo as the payee, the payment-channels program CHNLxYvVA28MJP9PrFuDXccuoGXAx7jBacfLEkahyGsX (src/client/PaymentChannels.ts:43). Requests are base64url without padding of Python 3 json.dumps(sort_keys=True, separators=(',',':')). The memo opening is computed from the profile with @solana/kit 8.4.0, never by this package's builder: the stock open (src/client/PaymentChannels.ts:96-186; src/generated/payment-channels/instructions/open.ts:209-273, types/openArgs.ts, types/distributionEntry.ts), its fee payer and rent payer the operator, then one Memo instruction carrying L; signed by the payer alone, the operator's slot zero. The stock opening is that open without the Memo, signed by both, as a landed transaction the payer broadcast and named by its first signature. | | [`mpp-session-tempo.json`](https://lcp.integraledger.com/vectors/mpp-session-tempo.json) | Vectors for mpp/session/tempo and the tempo entry point's channel pieces. Expected values were computed with eth-abi 6.0.0, eth-account 0.14.0, eth-hash 0.8.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4 and its ox 0.14.54 on Node 26.10.0, and GNU coreutils 9.4. Where a value is truncated, the row holds its prefix and suffix. The payer key is the published Anvil development key #0. L1 is a live v2 open on Tempo Moderato (eip155:42431), transaction 0x274c152568833e92246fdb8a01271e4af32c60edd2e561a53dcac3346865e1d1, read with eth_getRawTransactionByHash and eth_getTransactionReceipt from https://rpc.moderato.tempo.xyz on 2026-09-25 at 08:01Z; the receipt keeps status, block and logs. Under the profile read-status, TS6's settled answer names the transaction, its block as the position and its mark, and TS6.expectNotFound, failed binding-log-not-found before (a ChannelOpened of another salt or from another contract), is pending search-incomplete: at coverage full no failed is answered until the search for H is read whole (rule 24). A close reference names the challenge's recipient as the payee. CHANNEL_OPENED_V1 is the v1 escrow's event as it is deployed: the signature mppx 0.15.0's legacy escrow ABI gives (dist/tempo/legacy/session/escrow.abi.js:517-561: channelId, payer and payee indexed; token, authorizedSigner, salt and deposit not), whose topic, keccak256 of the signature by viem 2.57.4's toEventSelector, is the one Hedera's escrow of the same source emits (mpp-session-hedera-solana-xrpl.json); its salt is data word 2. L2 is a live v1 open on fixed.escrowV1, the escrow deployed on Moderato, its source in its case. | | [`mpp-subscription-solana.json`](https://lcp.integraledger.com/vectors/mpp-subscription-solana.json) | Vectors for mpp/subscription/solana, MPP's subscription intent under the stock solana method, as @solana/pay-kit 0.13.1 defines it (dist/chunk-SSATEZ72.js:1988-2064), on the subscriptions program De1egAFMkMWZSN5rYXRj9CAdheBamobVNubTsi9avR44, whose instructions @solana/subscriptions 0.5.0, which pay-kit bundles, lays out. H rides as the activation's Memo instruction, which the stock client writes from the request's externalId after transfer_subscription (dist/chunk-SSATEZ72.js:2444-2447); the stock server does not read it, so bound checks it. Fixtures: mpp-charge-solana.json's H, L, realm, expires, link, MV1 and MV3opaque, seed 01 as the subscriber, seed 02 as the challenge's puller, seed 03's address as planAddress, devnet USDC as currency and mint, x402's payTo as recipient and its blockhash. Requests are base64url without padding of Python 3 json.dumps(sort_keys=True, separators=(',',':')). activation's transaction is a synthetic activation computed with @solana/kit 8.4.0, not by this package: SetComputeUnitPrice 1 and SetComputeUnitLimit 400000 prepended, init_subscription_authority, subscribe with the subscriber first and the subscription fourth, as the program's subscribe names them, its data the discriminator 11 alone, transfer_subscription with the puller as its signer, then the Memo; fee payer the subscriber; signed by the subscriber alone, the puller's signature slot zero. bound, reference and the channel read only the Memo and subscribe's discriminator and accounts 0 and 3, so it holds the members they read; live is an activation the chain ran, in the program's layout. Each reference names the payee of the challenge the payment answers, its request's recipient. | | [`mpp-subscription-stripe.json`](https://lcp.integraledger.com/vectors/mpp-subscription-stripe.json) | Vectors for mpp/subscription/stripe: the same carrier as the Stripe charge, under intent subscription. No subscription request is published, so the rows state relations (the carrier's value, the issued digest unchanged by the carrier, and an emptied metadata object removed with it), not digests. | | [`mpp-subscription-tempo.json`](https://lcp.integraledger.com/vectors/mpp-subscription-tempo.json) | Vectors for mpp/subscription/tempo and the tempo entry point's key authorizations. Expected values were computed with eth-abi 6.0.0, eth-account 0.14.0, eth-hash 0.8.0 and pyrlp 5.0.0 on Python 3.12.3, viem 2.57.4 and its ox 0.14.54 on Node 26.10.0, and GNU coreutils 9.4. Where a value is truncated, the row holds its prefix and suffix. The payer key is the published Anvil development key #0. L2 is a live key authorization on Tempo Moderato (eip155:42431), transaction 0x6c1cdc57bf5a4a98961b7897cac3212636eea551540ab3b32038c45f9d3d8d1c, read with eth_getRawTransactionByHash and eth_getTransactionReceipt from https://rpc.moderato.tempo.xyz on 2026-09-25 at 08:01Z; the receipt keeps status, block and logs. L2's key authorization limits pathUSD, its one allowed-call target, and allows transferTo, its one recipient, under each of its selector rules; expectTransferDigest is GNU coreutils sha256sum over transferTo's 20 bytes. | | [`mpp-x402-mapping.json`](https://lcp.integraledger.com/vectors/mpp-x402-mapping.json) | Vectors for the mapping of an MPP payment that is an x402 payment (mpp-charge.md, rule 12): the evm method's authorization credential and the usdc method's EVM credential, each to x402's exact scheme with EIP-3009. The credentials are buyer B6 of mpp-charge-evm-authorization.json and mpp-charge-usdc-evm.json, whose signatures eth-account 0.14.0 made; the token domain is the former's fixed tokenDomain. Each refusal row changes one member of a good input, its case naming it. Each expected PaymentPayload and PaymentRequirements was written from the rule with Python 3.12.3's json and base64, in the shape the x402 specification's HTTP transport example gives (x402 d6d2c58, specs/transports-v2/http.md, Payment Payload Transmission) and @x402/core 2.30.0's PaymentRequirementsV2Schema and PaymentPayloadV2Schema (src/schemas/index.ts) require. signedDigest is the EIP-712 digest the payer signed, from those files: x402's verification (@x402/evm 2.31.0, src/exact/facilitator/eip3009.ts, verifyEIP3009) builds TransferWithAuthorization over the domain {name, version, chainId of network, verifyingContract asset} and the payload's authorization, and the mapped payment must give that digest and recover the payer. That function reads no maxTimeoutSeconds, and the schema requires a positive number; the mapping writes the challenge's expires less issued, the Unix second at which the resource server issued the challenge, here 300 seconds before expires, and never the window the payer signed, which lcp's builds open at 0 and close at expires. Each row's verifyAt is the answer of that verification, ExactEvmScheme's verify (@x402/evm 2.31.0, a devDependency of this package, src/exact/facilitator/eip3009.ts, verifyEIP3009), over the expected PaymentPayload and PaymentRequirements at the Unix second now, with a facilitator signer that reads no chain: it answers getCode with code at the asset and none at the payer, and the transfer's simulation without a revert. The payment verifies from issued until validBefore is less than now plus 6, the margin that function allows; its invalidReason past that is its ErrValidBeforeExpired. | | [`read-status.json`](https://lcp.integraledger.com/vectors/read-status.json) | The cases common to every pairing's read, the public half of the read kit, for the profile read-status (lcp/profiles/read-status.md). Each case states what a read observed, in the profile's own terms: the transactions it met, each with its position, the mark it was read at, what it moved (each transfer with its asset, amount, recipient, and where given its transaction and place in it), its result, whether it consumed the act's single-use value, whether it carries H, its signer against the payer and the option's payee, its pairing and kind, and the account it names (for a transaction with a failed result, which moved nothing, the destination in what the payer signed); the single-use value as read at the final mark, with whether it is consumed at the latest head where the read read it there (head), absent where the read has no means to read it; whether the search or lookup was read whole, and its position where it was not; the items the search met and could not decode (undecoded), each with the search position held at it; and whether the reader showed its history. Positions are integers; marks are 'included', 'safe' and 'final', in that order. Each expected answer was derived by hand from the rules of read-status.md the case names, for the act 'payment' and for the act 'agreement', and none was taken from the package's output. A transaction may also state presented, whether the message signed in it equals the payment presented (yes, no or unshown); every settled answer states the act's. Only the cases about presented state it, in their facts and their expected answer, and a pairing's read is held to its value only where the expected answer states it, so that a read answers each other case with whatever its comparison gives. An expected answer lists the members the answer must hold; foreign items are listed with their transaction and reason, and the items a search-incomplete answer names as ones its search could not decode by their transactions (undecoded). A pairing's own vectors run each case through its reader, mapping each transaction and position to its ledger's, or state that the case cannot arise on its ledger. | | [`sd-jwt.json`](https://lcp.integraledger.com/vectors/sd-jwt.json) | Rows for the SD-JWT reader (src/sd-jwt.ts). C4 is RFC 9901's published disclosures and digests (sections 4.2.3 and 4.2.4.2). C6 and C7 are Verifiable Intent presentations built with Python 3 as compact JSON with fixed ES256 signatures. C8's presentations are built with Python 3 as compact JSON, with a placeholder signature the reader never checks, from C4's family_name and FR disclosures and a decoy digest that names no disclosure. The reader applies RFC 9901 section 7.1 steps 1 and 3-5, without step 2's signature check, with one allowance: a digest in _sd that does not name a three-element disclosure, whether it names a two-element disclosure or none, is ignored at its first _sd listing; section 7.1 step 4 rejects a digest met more than once, so C8's second listing is malformed. The reader's refusal codes are the caller's; these rows name the reason: malformed, sd-alg-unsupported, unreferenced or too-large. C9 spells C8's row 2 control with one segment, or its disclosure, in a form that is not canonical (RFC 4648 section 3.5): the last character's lowest pad bit is set, so the bytes are the same; its rows are built with Python 3's base64 and hashlib. Each is malformed: the reader takes RFC 7515 section 2's base64url in its canonical form only. The header row's header carries a kid, so that its segment has pad bits, and its control is the same presentation with that header in canonical form. | | [`spend-permissions-eip155.json`](https://lcp.integraledger.com/vectors/spend-permissions-eip155.json) | Vectors for spend-permissions/eip155, the Spend Permission exchange of the profile spend-permissions-eip155.md: the entry point spend-permissions of @integraledger/lcp. H = SHA-256("abc") (FIPS 180-2 B.1) and L a link from a random token. The manager is the SpendPermissionManager's address @coinbase/cdp-sdk 1.60.0 names (src/spend-permissions/constants.ts:1), on Base Sepolia (eip155:84532), the token Base Sepolia's USDC, the account and the spender Hardhat's published development keys #0 and #1, which hold nothing. Every hash, selector, topic, call and event encoding is viem 2.57.4's: hashTypedData over the domain {name "Spend Permission Manager", version "1", chainId, verifyingContract} with the type SpendPermission as SpendPermissionManager.sol states it (coinbase/spend-permissions e0004e63, :92-94, :561-578, :772-775), toFunctionSelector, encodeFunctionData, encodeEventTopics and encodeAbiParameters over the ABI written from that file's lines :29-48, :132, :138, :277, :293, :397, :406, :476 and :485; the signature is viem's signTypedData of key #0. The header values are Node's Buffer base64url (RFC 4648 §5, no padding) of JSON.stringify's UTF-8. A refusal row's expected code is lcp's own, from the profile's rules; no outside oracle gives a code: each row changes one member of the good input the file holds and names the code the profile gives it. The approval's receipts in `approvedIn` are constructed from the encodings above; the manager's own getHash read on a deployment is not in this file, which holds no chain read. The issued digests in `issuedDigest` are Python 3.12.3's json and hashlib over rule 9's members, as its about states. | | [`stellar-position.json`](https://lcp.integraledger.com/vectors/stellar-position.json) | Vectors for the Stellar position P = ledger x 2^32 + order x 2^12 (an unsigned 64-bit integer whose low 12 bits are zero, ledger a uint32, order the application order from 1 to 2^20 - 1), written as a decimal string with no leading zero: stellarPosition, parseStellarPosition and muxedFor of @integraledger/lcp/stellar. The compose rows were computed with Python 3.12.3's integers. The horizon rows are the transactions of Stellar's Horizon API reference examples, stellar/stellar-docs openapi/horizon/components/examples/responses/Transactions/RetrieveATransaction.yml at a4643b46 (paging_token 120103542047408128, ledger 27963785) and ListAllTransactions.yml (fetched 2026-11-17): each paging_token parses to the example's ledger. muxed.M is MuxedAccount(seller, id = the position).account_muxed of stellar-sdk 13.0.0 (Python), the seller being the account of Ed25519 seed 04x32. The refusal rows hold one member changed from a row that parses; no tool writes them, and the codes are the profile's. | | [`svm-read.json`](https://lcp.integraledger.com/vectors/svm-read.json) | Vectors for the Solana read (lcp/src/internal/svm-read.ts) as the profile read-status and the Solana profiles' read (profiles/x402-exact-solana.md, 6) state it: the search for H by the buyer's own account, its handle and bounds, the blockhash's bound from the first isBlockhashValid answer of true, the one mark, the party facts from the landed data, presented, a failed result, a durable nonce, the history, and coverage none. Every row's ledger is constructed, not recorded: test/svm-read.test.ts encodes each transaction as a legacy wire (Solana's documented message layout) and answers each call as the JSON-RPC method documents it (solana.com/docs/rpc: getSignaturesForAddress, newest first, before and until exclusive, its memo field the transaction's memos rendered [length] text; getTransaction with meta.err, meta.postTokenBalances and meta.innerInstructions; isBlockhashValid with its context slot; getFirstAvailableBlock; getAccountInfo of a nonce account, @solana/rpc-api 8.4.0). Keys are named by role: the fee payer, the buyer (payer), the option's payee, another account, the mint and the token accounts, each a 32-byte key of one repeated byte. A ref holds the message (its digest, its id and its blockhash), a transaction alone, or a durable nonce; txs list each transaction with its signer, where its transfer goes, the commitment the node holds it at and its slot; reader holds the node's first available block, its finalized and confirmed slots, and isBlockhashValid's answer and context slot at confirmed until one answers true, and in lapse its answers once that bound is held, at finalized and at confirmed; asks, the calls the read must or must never make; rules, the read-status rules and the part of the Solana read the row holds. Each expect is status's answer in those names, slots as decimal strings. While the search proves no absence (SVM_SEARCH_SHOWN false: no run has yet shown that the buyer's signatures list every transaction the buyer signs), a failed answer but before-position is pending, search-incomplete. | | [`ucp-checkout-agent-signed.json`](https://lcp.integraledger.com/vectors/ucp-checkout-agent-signed.json) | Vectors for ucp/checkout/agent-signed. H = SHA-256("abc") (FIPS 180-2) and OTHER = SHA-256("abd"), as 0x lowercase hex. Each Content-Digest is UCP's recipe (Universal-Commerce-Protocol/ucp v2026-08-25, docs/specification/signatures.md:455-457): sha-256=: then the standard base64 of the SHA-256 of the body's UTF-8 bytes then :, computed with Python 3's hashlib and base64. The request body is UCP's complete-checkout payment with the legal_context member this profile adds, written compactly in member order by Python's json; 'spaced' is the same members indented, whose own digest binds its own bytes. No signature is made or verified here: UCP's verifier checks the platform's signature before bound is called. | | [`ucp.json`](https://lcp.integraledger.com/vectors/ucp.json) | Vectors for the ucp/checkout/{ap2-mandate,unsigned} and ucp/booking/{ap2-mandate,unsigned} pairings (the ucp entry point of @integraledger/lcp). SHA-256 values were computed with GNU coreutils sha256sum and basenc and agree with OpenSSL. The tests build J, D and M from the fixed strings. J is the checkout JWT the AP2 mandate commits to, as UCP 2026-08-25's AP2 Mandates extension has the business sign it (docs/specification/payment/extensions/ap2-mandates.md, Business Authorization, sign_checkout, at tag v2026-08-25, commit 87dd4b1): fixed.merchantAuthorization, a detached JWS whose header, merchantAuthorizationHeader, carries the alg and kid UCP requires, with its payload reinserted, the payload being the base64url of the RFC 8785 form of V2's checkout without its ap2 member. UCP does not say which bytes are the checkout JWT; this is the second of the two readings its open issue 905 sets out, provisional until that issue is settled. The plant's J2 is built the same way. RFC 8785's form here is Python 3's json.dumps with sorted keys and no whitespace, which is that form for these values (ASCII strings and integers); 'built' holds J, D and M as written by Python 3's base64, hashlib and json (tools: ucp-rebuild-j.py). The signature segment is 64 zero bytes: no signature is verified. V5 uses ap2-checkout-mandate.json's V6 token. The 'implementation' rows fix refusals that UCP does not name; their inputs were built with Python 3. A checkout is measured as JSON.stringify writes it, at most 64 levels of arrays and objects, the checkout being level 1: an integer past the double range, which JSON.parse reads as Infinity, is written null. | | [`x402-auth-capture-eip155-eip3009.json`](https://lcp.integraledger.com/vectors/x402-auth-capture-eip155-eip3009.json) | Vectors for x402/auth-capture/eip155/eip3009 on the commerce-payments escrow v1.1. H is SHA-256("abc") (FIPS 180-2); the payer is the published Anvil development key #0; now is 1790000000. Values are written in full, or as their prefix and suffix where truncated. Refusal codes are this package's own, not the specification's. captureAuthorizer F is Anvil account 2, receiverAuthorizer R Anvil account 3, feeRecipient Anvil account 4; policy zero. The read's own cases are the read kit's (read-status.json, through the pairing's read-kit form); EV6 holds recover's. | | [`x402-auth-capture-eip155-permit2.json`](https://lcp.integraledger.com/vectors/x402-auth-capture-eip155-permit2.json) | Vectors for x402/auth-capture/eip155/permit2 on the commerce-payments escrow v1.1. H is SHA-256("abc") (FIPS 180-2); the payer is the published Anvil development key #0; now is 1790000000. Values are written in full, or as their prefix and suffix where truncated. Refusal codes are this package's own, not the specification's. | | [`x402-batch-settlement.json`](https://lcp.integraledger.com/vectors/x402-batch-settlement.json) | Vectors for the x402 batch-settlement pairings (the x402-batch-settlement entry point of @integraledger/lcp). H is SHA-256("abc") and H' SHA-256("abd"); EVM keys are the published Anvil development accounts 0, 1 and 3, and EB10's refund authorizer account 2's address; the EVM values were computed with eth-account 0.14.0, eth-abi 6.0.0, eth-utils 6.0.0 and viem 2.57.4 and read them on Base Sepolia; the SVM values with solders 0.26.0, PyNaCl 1.6.2 and @noble/curves 2.4.0. The SVM fixtures (ES4's top_up, request_close and nonce-memo wires, ES5's landed wire, the no-channel transaction) were built with solders 0.26.0 on Python 3.11; the same script reproduces ES1, ES2, ES3 and ES5's txid. The receiver authorizer is the key of seed 03x32. An SVM opening carries two Memo instructions, the seller memo (extra.memo, L) and then x402's receiver-authorizer binding memo, whose UTF-8 data is x402:batch-settlement:svm:rcvauth:v1: and the base58 key (x402-foundation/x402 751590a2, specs/schemes/batch-settlement/scheme_batch_settlement_svm.md L121-127 and L1320-1325; the order is the steward SDK's, typescript/packages/mechanisms/svm/src/payment-channels/open.ts:464-467, and the text its batch-settlement/receiverBinding.ts:19 and test/unit/batch.receiverAuthorizer.test.ts, "round-trips the binding memo and rejects anything else", at the same commit). ES5 is a landed opening read by recover, landedErr the error it is read landed with; transactionV1's statusRows read the stock version-1 opening back, and the read's own cases are in svm-read.json. EB7's laterDeposit, laterDepositByPayer and plantOtherContract, each a transaction that is not this deposit, answer pending search-incomplete: the read defines no search for H, and at coverage full failed comes only from a search read whole (read-status rule 24). EB10 is the scheme's refund-authorizer mode, its values from the stock @x402/evm 2.31.0 client as its case states. transactionV1 is the version-1 transaction (SIMD-0385) the stock @x402/svm 2.31.0 client writes, run offline as its case states; its landed wire adds the fee payer's signature made with @noble/curves 2.4.0. | | [`x402-exact-algorand.json`](https://lcp.integraledger.com/vectors/x402-exact-algorand.json) | Vectors for the x402/exact/algorand pairing of @integraledger/lcp's avm entry point. H is SHA-256("abc") from FIPS 180-2. The values were computed with py-algorand-sdk 2.12.0 and PyNaCl 1.6.2 on Python 3.12.3, with hashlib's sha512_256 as a second path, 2026-09-25; the seeds are not recorded here. Rounds are decimal strings. The SignedTxn rows of V3's refusals are V2's payment entry decoded and re-encoded with algosdk 3.8.0's msgpackRawDecodeAsMap and msgpackRawEncode (which give V2's entry back unchanged) with one member replaced, and algosdk 3.8.0's decodeSignedTransaction refuses each. The rows of V3's refusals whose case ends "a string that is not well-formed UTF-8 (RFC 3629 §4)" are V2's payment entry with one msgpack string written by hand, its length set to its bytes: in place of one of V2's own strings, a map key or a value, or as the key of one member appended, with the value 5, to the entry's map or to its transaction's map, whose count rises by one; RFC 3629 §4's syntax and Python 3.12.3's strict UTF-8 codec refuse each such string. Rows 12 to 16 of V3's refusals are refused as the x402 path reads them: rows 12, 14 and 15 key a member algod does not know, and rows 13 and 16 write a gen whose bytes the x402 facilitator reads as other text. Rows 17 to 39 of V3's refusals are V2's payment entry written by hand in the msgpack specification's formats, with the member each case names written, appended to the payment transaction's map or added to the entry's, whose count rises by one, or the entry followed by one byte. Each is refused by go-algorand v5.0.3's decoder (go-codec v1.1.10 under go-algorand's CodecHandle) or by Transaction.WellFormed's type rules, or is read by algokit-utils 10.0.0-alpha.46's decodeSignedTransaction, the x402 reference facilitator's decoder, as another signed transaction than algod reads, or refused by it or by its transaction id. The x402 reference facilitator's reading is at x402-foundation/x402 e95b0666 (typescript/packages/mechanisms/avm): it decodes each entry's base64 with Node's Buffer.from(entry, "base64"), which takes other spellings of the same bytes than the canonical one, and lcp reads the canonical form only (RFC 4648 §3.5), so row 11 of V3's refusals is refused. The V4 rows give status's answer under the profile read-status at the one mark, final, asked about the act payment unless a row's query says otherwise; positions are confirmed rounds; V4's own about states the lookup, the search for H and the answers it gives while the facts the search rests on are not yet shown. V3.authorities holds V2's transaction under each authority, and build's row 6 the option at amount "0", each with its source. | | [`x402-exact-aptos.json`](https://lcp.integraledger.com/vectors/x402-exact-aptos.json) | Vectors for the x402/exact/aptos pairing: the aptos entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. The committed answer is Aptos mainnet transaction 0xde08191e…ef48ceb5 (version 7351075186) read over REST from api.mainnet.aptoslabs.com on 2026-09-25, trimmed to the members the reader returns. Fixture F's RawTransaction is built with @aptos-labs/ts-sdk 7.5.0 from that answer (max_gas_amount 15000, gas_unit_price 100, chain 1); its SHA-256 is Python's hashlib. idDigest is Python's hashlib.sha256 over json.dumps(sort_keys=True, separators=(',',':')) of the normal form. Other answers are the real one with the named member changed. The trimmed answer shows no events or changes: each committed answer here carries a Withdraw and a Deposit event of the fungible-asset framework and, at the deposit's store, an ObjectCore change naming its owner and a FungibleStore change naming its asset, in the REST API's shape; these, and every store address (SHA-256 of the owner and the asset), are constructed, and no node was read for them. The account answers (sequence number, ledger time and X-Aptos-Ledger-Oldest-Version) and the lookups' oldestVersion are constructed in the same way. The issue position given is version 7351070000. Each expected answer was derived by hand from read-status.md and the profile x402-exact-aptos.md. Ledger times are microseconds. A lookup by sequence number that finds nothing answers notFound with the ledger timestamp of that answer (the REST API's X-Aptos-Ledger-TimestampUsec header), so it shows absence only through that ledger. A committed answer is read only with its events and its changes, the members the read takes the deposits from: the same answer without either is out of the reader's form, unparseable, and never read as a transaction that deposited nothing (the profile x402-exact-aptos.md, rule 8). The rows that compare the signed gas members carry the real answer's max_gas_amount 15000 and gas_unit_price 100, as fixture F records them; the two 0x1::fungible_asset::transfer answers, whose arguments are stores, the answer with a script payload and the block_metadata_transaction a hint names are constructed in the same way. An absent transaction is unused only once the ledger time of the answer that read the account's sequence number (its X-Aptos-Ledger-TimestampUsec), in whole seconds, is at or past expiresAt: the Aptos prologue takes a transaction only while timestamp::now_seconds() < txn_expiration_time, and refuses it from that second with PROLOGUE_ETRANSACTION_EXPIRED (aptos-core e53447e0, aptos-move/framework/aptos-framework/sources/transaction_validation.move). The V4 rows give status's answer under the profile read-status at the one mark, committed, asked about the act payment unless a row's query says otherwise; positions are ledger versions. A transaction committed at the sequence number consumed it: one that is not the act asked about, its deposit reaching a store another account owns, signed by the payee, or an act the caller gave, answers failed instrument-consumed, and one with success false failed transaction-failed (the profile, rule 11). The account's number passed with nothing returned at it answers pending search-incomplete (read-status rule 23). Nothing at the number with the account not past it answers pending instrument-live before the expiry and failed instrument-unused from it; each of these is decided only where the history floor of every answer is at or below the issue position, and otherwise answers unreadable history-gap (read-status rule 18). | | [`x402-exact-cardano.json`](https://lcp.integraledger.com/vectors/x402-exact-cardano.json) | Vectors for the x402/exact/cardano and x402/exact/cardano/lock pairings: the cardano entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. V1 is cbor2 5.7.1's encoding of the auxiliary data (pycardano 0.19.2's AuxiliaryData(AlonzoMetadata(...)).to_cbor() is equal). V2 and V4 are built with pycardano 0.19.2 on Python 3.11; the one vkey witness is from a key generated when the fixture was built, which does not change the body or the id. V3 is Cardano preprod transaction 628eca29…c73ef4be, its CBOR read through Koios /tx_cbor on 2026-09-25; V4's row 14 is V3's transaction with a bit set past the last byte in its last base64 character before the padding. Every Blake2b-256 is Python's hashlib.blake2b(digest_size=32) over the item's bytes as located by cbor2's decoder. fixed.OLock is fixed.O under the `script` lock method, the option of x402/exact/cardano/lock. The V4 rows that carry auxiliaryDataHex were built with cbor2 5.7.1 and hashlib on Python 3.12.3: V2's body with key 7 set to the Blake2b-256 of the hand-assembled auxiliary data given, signed by the Ed25519 key of seed 00x32 (pycardano 0.19.2). CIP-20 lines are compared as their UTF-8 bytes: a repeated key in label 674's map, a repeated label 674, more than one line that reads as the marker when case and a leading byte-order mark (U+FEFF) are ignored, and a marker line not in lower case are each refused, because readers that keep the last of repeated keys (cborg 6.1.3's default decode) or strip a leading byte-order mark would read those messages another way; cborg 6.1.3 with rejectDuplicateMapKeys refuses each repeated-key row. V5's recover rows read the included transaction by its id. V6 is V2's transaction with body key 3 removed and the map's count lowered, its id Python's hashlib.blake2b(digest_size=32) over the new body: the address method admits a body with no TTL, as @x402/cardano 2.30.0's facilitator admits it (exact/facilitator/scheme.ts:815, which checks a TTL only where the body has one), and the lock refuses it, since the scheme requires a TTL of a lock (scheme_exact_cardano.md:836). V7 is the scheme's own Masumi datum encoding test vector, copied from scheme_exact_cardano.md (SHA-256 7079d96f…204e4968, line 514), whose field 2, the seller, is the enterprise address of key hash 22 x 28 (lines 497-513). V8 is the agreement floor, the formula of the scheme's Minimum UTXO Value (scheme_exact_cardano.md:899-902): its address bytes are BIP-173's reference Bech32 decoder's (github.com/sipa/bech32 ref/python/segwit_addr.py, without the 90-character limit) and each output is cborg 6.1.3's encoding of {0: address, 1: value}, its coin found by iterating from zero to the least coin that covers its own encoding; the token row's value is [coin, {policy: {empty name: 1}}]. The read's own rows, status over a ledger, are the read kit's (read-status.json through the forms in test/read-kit/forms/cardano.ts, over a constructed ledger, every answer of which is constructed and says so) and the constructed rows of test/cardano.test.ts. The agreedRefusals row for an inclusion above the tip reads 0 confirmations, below the 20 asked for: pending below-mark (rule 17). | | [`x402-exact-casper.json`](https://lcp.integraledger.com/vectors/x402-exact-casper.json) | Vectors for the x402/exact/casper pairing: the casper entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2; the option, payee and payer are x402's Casper example; the EIP-712 values were computed with @casper-ecosystem/casper-eip-712 1.2.1 and, separately, viem 2.57.4 over CEP-3009's formula by hand, on Node 26.10.0; every SHA-256 with GNU coreutils sha256sum. The public key and signature are placeholders of the tagged widths: bound verifies no signature. Byte strings are hex; uint256 values are decimal strings; a call's blockHeight is a decimal string. C3's rows change only validBefore: CEP-3009's transfer_with_authorization takes valid_before as a u64 and names u64::MAX the value that never expires, and reference records settleBy as validBefore up to 2^53-1, ECMAScript's Number.MAX_SAFE_INTEGER, and as 2^53-1 above it, and refuses a validBefore of 2^64 or more. C4 and C5 read status over constructed nodes, described in C4's about; C5 holds the act agreement. | | [`x402-exact-ccd.json`](https://lcp.integraledger.com/vectors/x402-exact-ccd.json) | Vectors for the x402/exact/ccd pairing: the ccd entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. The accounts are version byte 01 plus SHA-256 of a label, base58check-encoded with bs58check; x402's example addresses fail base58check. D1 was produced by cborg 6.1.3; D2 was hand-assembled to the steward's PLT encoder; the digests are GNU coreutils sha256sum. D3's CCD signedTransaction is the output of @concordium/web-sdk 12.0.2's Transaction.toJSONString for Transaction.transfer(payee, 1000000 microCCD, memo D1) with sender payer, nonce 7, expiry 1790000060 and sponsor with one signature, signed by Transaction.sign with buildBasicAccountSigner of the seed 0x00…01; its memo is DataBlob.toJSON, a 2-byte big-endian length then the bytes, and the refusal rows' memos are DataBlob.toJSON of their bytes. D3's PLT signedTransaction is the output of the same SDK's Transaction.toJSONString for Transaction.tokenUpdate(createTokenUpdatePayload(EURR, {transfer: {amount: TokenAmount.create(5000000, 6), recipient: CborAccountAddress.fromBase58(payee), memo: CborMemo.fromString(H's LCP string)}})) with the same sender, nonce, expiry, sponsor and seed; its operations are Cbor.toJSON, plain hex with no length, and its recipient is the SDK's tag-40307 map with the coin info (key 1, tag 40305 {1: 919}) beside the address (key 3). bound verifies no signature. Byte strings are hex; amounts are decimal strings. A memo carries H only as ccdMemo(H) exactly: LCP's string form with lowercase hex, as one CBOR text string under RFC 8949 §4.1's preferred serialization (cborg 6.1.3's strict decode refuses the non-preferred head), so bound, status and recover read it alike. A map with a repeated key is malformed (RFC 8949 §5.6; cborg 6.1.3 with rejectDuplicateMapKeys refuses the repeated memo). D3's wireForm rows hold x402's wire form, JSON.parse(Transaction.toJSONString(tx)), against the SDK's object before serialization, whose header holds bigints (a row names the paths the test makes bigints), and against the unparsed JSON text; each is refused ccd/transaction-malformed. D4's rows change a member bound does not read, the signed transfer's receiver or amount or a member of the header whose energy the sender signed: bound gives H, and reference, which reads each, refuses them. Their changed toAddress fails bs58check 4.0.0's checksum; 2^64 is one past the largest u64, the type of a Concordium amount; and cborg 6.1.3 decodes the changed PLT operations with the recipient under tag 40306, where the steward's encoder writes an account address under tag 40307, and the amount under tag 5, RFC 8949 §3.4.4's bigfloat, where a token amount is tag 4, its decimal fraction. D5's rows give status's answer under the profile read-status through a constructed node, as D5's own about states it, with the answers the read gives while the facts its search rests on are not yet shown. D3.signedEnergy states the energy the sender signed, and stockOptions the options the stock facilitator takes, each with its source. | | [`x402-exact-eip155-eip3009.json`](https://lcp.integraledger.com/vectors/x402-exact-eip155-eip3009.json) | Vectors for the x402/exact/eip155/eip3009 pairing: the x402 and evm entry points of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2; O is the x402 specification's example option (section 5.2.1); the payer is the published Anvil development key. The EIP-712 values were computed with eth-account 0.14.0, eth-abi 6.0.0 and eth-utils 6.0.0 on Python 3.12.3; every SHA-256 with GNU coreutils sha256sum. The ERC-20 Transfer topic is keccak256("Transfer(address,address,uint256)"). Byte strings are hex; uint256 values are decimal strings. Under the profile read-status, a V6 row that would read failed (a revert, no use of H, no paired transfer) reads pending search-incomplete: its reader makes no log query, and at coverage full a failed answer waits for the search for H (rule 24). | | [`x402-exact-eip155-erc7710-salt.json`](https://lcp.integraledger.com/vectors/x402-exact-eip155-erc7710-salt.json) | Vectors for x402/exact/eip155/erc7710-salt, MetaMask's DelegationManager v1.3.0. H is SHA-256("abc") (FIPS 180-2); the payer is the published Anvil development key #0; now is 1790000000. Values are written in full, or as their prefix and suffix where truncated. Refusal codes are this package's own, not the specification's. The leaf L's caveat is arbitrary: bound never reads caveats. The read's own cases are the read kit's (read-status.json, through the pairing's read-kit form); EV9 and plantsEV9 hold recover's. | | [`x402-exact-eip155-erc7710.json`](https://lcp.integraledger.com/vectors/x402-exact-eip155-erc7710.json) | Vectors for x402/exact/eip155/erc7710, the unsigned level. H is SHA-256("abc") (FIPS 180-2); the payer is the published Anvil development key #0; now is 1790000000. Values are written in full, or as their prefix and suffix where truncated. Refusal codes are this package's own, not the specification's. | | [`x402-exact-eip155-gateway-batched.json`](https://lcp.integraledger.com/vectors/x402-exact-eip155-gateway-batched.json) | Vectors for x402/exact/eip155/gateway-batched (lcp/profiles/x402-exact-eip155-gateway-batched.md). Oracle: Circle's own client, @circle-fin/x402-batching 4.0.0 (npm, published 2026-10-22, sha512 KLdHz85N...), run as this workspace's pinned devDependency on 2026-11-17: S's typed data, domain and signature are what BatchEvmScheme's signing step (src/client/BatchEvmScheme.ts:317-355, the domain at :330-338, the versions at src/constants.ts:14-19) handed its signer and the signature it returned, given the authorization with nonce H, its own nonce being random (src/nonce.ts:6-12); W's window is createPaymentPayload's (src/client/BatchEvmScheme.ts:234-247, src/constants.ts:37-49) with its clock at fixed.now; wallets is CHAIN_CONFIGS (src/config.ts:110-116, :121-360), each network's Gateway Wallet and USDC, and the test has createPaymentPayload sign each network's version 1 option for its USDC and refuse it for fixed.notUsdc, Base Sepolia's EURC (isVersionAllowed, src/detection.ts:104-115, called at src/client/BatchEvmScheme.ts:222-227); filter's circle column is supportsBatching (src/detection.ts:35-48). S's digest is viem 2.57.4's hashTypedData of the typed data Circle's client handed its signer, the independent EIP-712 check. The keys are the published Anvil development keys #0 (the payer) and #1 (another account). check.highS is S[1]'s signature with s replaced by the curve order less s and v flipped, computed with BigInt; viem's recoverTypedDataAddress reads it as the payer's (check.highSRecovers), and reads check.v1SigUnderO2Recovers and check.value10001Recovers from the typed data Circle's client hands its signer for S[1]'s authorization under O2, with S[0]'s signature and with the value 10001, which the authorizer rows expect. signer's rows give the account authorizer gives beside the authorization's from and an agreement's signer, the account each recovers being viem's (check). H is SHA-256("abc") (FIPS 180-2 B.1). The refusal rows (filter, eip3009Filter, build, bound, authorizer, boundAccepted) are each a good input with one member changed and the code the profile gives it; no outside oracle states lcp's codes, and each row's input starts from the outputs above. | | [`x402-exact-eip155-permit2.json`](https://lcp.integraledger.com/vectors/x402-exact-eip155-permit2.json) | Vectors for x402/exact/eip155/permit2. H is SHA-256("abc") (FIPS 180-2); the payer is the published Anvil development key #0; now is 1790000000. Values are written in full, or as their prefix and suffix where truncated. Refusal codes are this package's own, not the specification's. The read's own cases are the read kit's (read-status.json, through the pairing's read-kit form); EV6 and plantEmitter hold recover's rows. | | [`x402-exact-hedera-transfer-executor.json`](https://lcp.integraledger.com/vectors/x402-exact-hedera-transfer-executor.json) | Vectors for the x402/exact/hedera/transfer-executor pairing, from x402's own example at 8228bd6d. idDigest is the payer's, printf '%s' '0.0.5001' \| sha256sum; openssl dgst -sha256 and Python hashlib printed the same. A row settles where the payer is the one account the record debits and the record credits the payee; the asset and amount are recorded and judged by nothing. The staking-reward rows add a reward of 12345 tinybars to x402's example as HIP-406 records one: the rewarded account's credit in transfers includes the reward, 0.0.800 pays it, and staking_reward_transfers lists it. Each parent entry with transfers carries charged_tx_fee, the fee the Mirror Node's Transaction records as charged to the fee payer; here it is the fee payer's 5000000-tinybar debit, credited to 0.0.3 and 0.0.98; x402's example states no fee. A row's reference fields override the status reference. The status rows give executorStatus's answer under the profile read-status at the one mark, consensus, asked about the act payment unless a row's query says otherwise. The named transaction id is single-use (x402-exact-hedera.md, rule 15): a failed result under it answers failed, transaction-failed; a success that is not the payer's payment to the payee, one crediting another account or debiting another account than the payer among them, failed, instrument-consumed; and with no entry under it that decides, pending, instrument-live, until its valid start plus 180 seconds is strictly before the mirror's latest consensus timestamp, and failed, instrument-unused, after it, the mirror holding records back to that valid start. | | [`x402-exact-hedera.json`](https://lcp.integraledger.com/vectors/x402-exact-hedera.json) | Vectors for the x402/exact/hedera pairing of @integraledger/lcp's hedera entry point. H is SHA-256("abc") from FIPS 180-2. The bytes were computed with hiero-sdk-python 0.2.10's generated protobufs and protobuf 7.36.2 (SerializeToString(deterministic=True)) and cryptography's Ed25519 on Python 3.12.3, 2026-09-25; the signing seed is not recorded here. Byte strings are hex unless named base64. The V5 rows give status's answer under the profiles read-status and x402-exact-hedera at the one mark, consensus, asked about the act payment unless a row's query says otherwise. | | [`x402-exact-lnbtc.json`](https://lcp.integraledger.com/vectors/x402-exact-lnbtc.json) | Vectors for the x402/exact/lnbtc/payment-hash pairing: the lightning entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. The option, its invoice (fixed.x402Invoice), the payment presented, the preimage, the payment hash, the request hashes of requestHashes, the validation time 1700000000, the clock-skew allowance of 60 s and every reason of validate are x402's scheme text, specs/schemes/exact/scheme_exact_lnbtc.md at x402-foundation/x402 88b66dd4 (PaymentRequirements, PaymentPayload, Request Binding Test Vectors, Facilitator Validation, Paid-but-expired Policy, Error Vocabulary), with extra.paymentHash, this form's member, set to x402's payment hash; payTo is the public key of x402's test-only key 1. Each invoice of invoices was written by bolt11 1.4.1's encode and signed by its sign with the key its encode names (key 1 or key 2, the secp256k1 private keys 1 and 2), which signs deterministically, and is read back by light-bolt11-decoder 3.2.0; bolt11 also writes its default feature bits. BOLT 11 at lightning/bolts 19146282 (11-payment-encoding.md) gives the field rules each refused invoice breaks. The ln/ and x402/ codes are lcp's own (docs/reference/refusals.md) and the order of the checks is the profile's (x402-exact-lnbtc-payment-hash.md): no outside oracle gives a refusal code, so each refusal row starts from the encoding its oracle gives and changes the one member its case names. L1 is BOLT11's published example 'Now send $24 for an entire list of things (hashed)'; L4, an invoice with x402's request hash in h and H in its m field, was made by an encoder that reproduced L1 byte for byte (@scure/base, @noble/curves and @noble/hashes 2.4.0) and is read by light-bolt11-decoder 3.2.0 and bolt11 1.4.1; L7 is L4 with a 4,301-digit amount and its checksum recomputed (BIP-173, in Python). | | [`x402-exact-near.json`](https://lcp.integraledger.com/vectors/x402-exact-near.json) | Vectors for the x402/exact/near pairing: the near entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. The payer's key is the Ed25519 seed 01 repeated 32 times and its implicit account. The option is x402's NEAR example. Expected values were computed with (borsh-construct 0.1.0, hashlib and PyNaCl 1.6.2, with near-api-js 7.3.1 and borsh 2.0.0 as a cross-check). Negative signed delegate actions are V1's with one part changed and a zero signature, except these agreedRefusals rows: row 15, V2's with a bit set past the last byte in its last base64 character before the padding; row 16, V2's delegate action with its ft_transfer arguments led by a byte-order mark (EF BB BF), signed again with the payer's key; rows 23 to 25, V1's with two parts changed, the sender's first bytes and the count of actions; row 26, V1's with a signature of 63 zero bytes and 0x20; row 28, V1's with two parts changed, the receiver's first bytes and the count of actions; row 29, V1's with two parts changed, the sender, written as 64 A's, and the count of actions; and row 30, V1's with two parts changed, the receiver, written as -usdc.testnet, and the count of actions. Nonces and heights are decimal strings. The read rows are constructed ledgers, described in read.about; a status row's expected answer was derived by hand from the profile read-status. | | [`x402-exact-polkadot-lcp-assets-remark.json`](https://lcp.integraledger.com/vectors/x402-exact-polkadot-lcp-assets-remark.json) | Vectors for the x402/exact/polkadot/lcp-assets-remark pairing of @integraledger/lcp's polkadot entry point. H is SHA-256("abc"). V1 is a real extrinsic read live (block 21,053,708, index 3); V2's call was printed by @polkadot/api 16.5.6 and equals a hand encoding in Python; V3's extrinsic was accepted by TaggedTransactionQueue_validate_transaction on Polkadot Asset Hub (Invalid(Payment): signature and extensions accepted, the account unfunded); every BLAKE2b-256 is b2sum -l 256 (GNU coreutils 9.4). The eraNonce rows' signer, era and nonce are as @polkadot/types 17.0.1 decodes them under Polkadot Asset Hub's transaction extensions (eraNonce's about). Reader fixtures take Sidecar's answer shapes; heights are decimal strings. The upper-case remark rows replace the 77 remark bytes of V3 and V2's call with lcp:sha256:0x and H's digits in upper case; the signature is V3's and does not cover those bytes, which bound does not verify. The recover and status rows with another call put it after V3's signed preamble and extensions, SCALE by hand with each call's pallet and call index as Polkadot Asset Hub's runtime has them (polkadot-fellows/runtimes at 30696143, system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs:1731-1776: System 0, Balances 10, Utility 40, Proxy 42, Assets 50, ForeignAssets 53; polkadot-sdk at 23b84ba4: utility batch 0, batch_all 2, force_batch 4, proxy.proxy 0, balances transfer_keep_alive 3, assets transfer_keep_alive 9), and recompute the length prefix; the signature is V3's and does not cover that call, which neither recover nor status verifies. The re-signed status rows replace V3's signature with 64 bytes of 0x11, and one its era bytes a502 with b502. A status row's events with another call are constructed in Sidecar's shape, each as the pallet emits it (pallet_proxy's ProxyExecuted, pallet_utility's BatchInterrupted, ItemFailed, ItemCompleted and BatchCompletedWithErrors, pallet_balances' Transfer, the assets pallet's Transferred under foreignAssets). Status rows are read with the act payment at the finality the row gives, finalized where it gives none, after the position the row gives, by the signer's account nonce as the profile's rule 8 states it: the reader fixture answers V4's raw extrinsics at block 100 and one bare v4 item (length, 0x04, a two-byte call) at every other height from 90 to 120, the row's finalized and head heights, the account nonce at each, and the chain's validation of the presented extrinsic (valid at the height given, or not valid); these answers are constructed, not recorded. Each expected answer is derived by hand from read-status.md and the profile's rule 8; each transfer of what moved is named by the extrinsic's timepoint and its place, the index of its event among the fixture's events as the endpoint lists them, and only a transfer whose from is the payer is what moved (Balances' Transfer { from, to, amount } and the assets pallet's Transferred { asset_id, from, to, amount }, polkadot-sdk at 23b84ba4, substrate/frame/balances/src/lib.rs:349 and substrate/frame/assets/src/lib.rs:701-706). The wrapper rows read the account a call runs as: a delegate's proxy.proxy runs its call as its real, the payer, its preamble V3's with the delegate's account (0x22 bytes) as the signer; and a delegate's multisig.as_multi_threshold_1 (Multisig is pallet 41, polkadot-fellows/runtimes at 30696143, system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs:1767; as_multi_threshold_1 is call 0, polkadot-sdk at 23b84ba4, substrate/frame/multisig/src/lib.rs:311-337) with one other signatory (0x55 bytes) runs it as the multisig account, BLAKE2b-256 by hashlib of modlpy/utilisuba, the compact count and the sorted accounts, and the threshold 1 as a u16 (substrate/frame/multisig/src/lib.rs:645-648, :789-808), which that row gives as the reference's signer: a multisig account holds no key, so no reference reads it from a presented extrinsic, and the row constructs it. The answer names the delegate as the signer and the wrapper as its authority. The rows of a transfer call of zero inside nested batches read when such a call ran from the utility pallet's own dispatch (polkadot-sdk at 23b84ba4, substrate/frame/utility/src/lib.rs:117-125 for the events, :214-237 utility.batch dispatching its calls in order and depositing BatchInterrupted with the failing call's index and stopping, :323-350 batch_all, :419-441 force_batch depositing ItemFailed or ItemCompleted for each call and BatchCompletedWithErrors or BatchCompleted after them), each call's own events undone where it failed; their events are as those lines emit them, the failing balances.transfer_keep_alive's error Balances' InsufficientBalance (substrate/frame/balances/src/lib.rs:441, error 2 of pallet 10) and the refused call's frame_system CallFiltered (substrate/frame/system/src/lib.rs:955, error 5 of pallet 0), and each transfer of zero is named by its call's path. The two status rows on a version 5 general transaction carry a real one: Polkadot Asset Hub block 23,351,613 (0x653b14b743d070972626b8bd188b83b260b3a6f115347f9148e24c20f765c214), index 2, as chain_getBlock answers it from polkadot-asset-hub-rpc.polkadot.io, a balances.transfer_keep_alive under extension version 1 whose VerifyMultiSignature is Signed by 0xfc06d74b…1615, era (64, 52) and nonce 2961, the extensions in the order Metadata_metadata_at_version(16) lists them at that runtime (spec 2005003); AccountNonceApi_account_nonce for that account answers 2961 at the block's parent and 2962 at the block, and its TransactionFeePaid event names the same account. The row of the signer's own transaction takes that account and nonce as the reference's, and its record's events are the block's System.Events for index 2, decoded by @polkadot/types 17.0.1 under the block's metadata and put in Sidecar's shape (substrate-api-sidecar 20.14.1 answers 500 for this block); its hash is that transaction's BLAKE2b-256 (b2sum -l 256). | | [`x402-exact-solana.json`](https://lcp.integraledger.com/vectors/x402-exact-solana.json) | Vectors for the x402/exact/solana pairing: the svm and x402/exact/solana entry points of @integraledger/lcp. Expected values: H is SHA-256("abc") from FIPS 180-2; keys from Ed25519 seeds 01x32 and 02x32; x402's example payTo and blockhash; devnet USDC, computed with solders 0.26.0 on Python 3.12.3. The transaction fixtures (V3's variants, V4's landed wire, the plant) were built with solders 0.26.0 on Python 3.11 from the same seeds; the same script reproduces the V2 wire and V4 txid. V3's row 4 is V2's wire with a bit set past the last byte in its last base64 character before the padding. Byte strings are hex unless named base64. carrierSpelling and durableNonce were built with solders 0.26.0 on Python 3.12.3 from the same seeds and inputs (the nonce account from seed 04x32, its authority the payer); durableNonce's messages were sent to the LiteSVM bundled with solders 0.26.0, whose outcomes and nonce account bytes the section records. The read's own cases, the search for H by the buyer's account, its handle, the blockhash's bound, the party facts and presented, are in svm-read.json; transactionV1's statusRows read the stock version-1 payment back; each reference names the option's payee. transactionV1 is the version-1 transaction (SIMD-0385) the stock @x402/svm 2.31.0 client writes, run offline as its case states; its landed wire adds the fee payer's signature made with @noble/curves 2.4.0. | | [`x402-exact-starknet.json`](https://lcp.integraledger.com/vectors/x402-exact-starknet.json) | Vectors for the x402/exact/starknet pairing: the starknet entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. The option and the payer are x402's Starknet example (scheme_exact_starknet.md at 0cb1a1f0). Expected values are computed with starknet 10.7.6, the version package.json pins and the tests run, and @noble/hashes 2.4.0 on Node, Python 3.12.3 and GNU coreutils; the type hashes are SNIP-9's published values. Trace fixtures model starknet_traceTransaction's execute_invocation, receipt fixtures starknet_getTransactionReceipt's events, and event pages starknet_getEvents. A Transfer is an event whose first key is sn_keccak("Transfer") (S1.expectSelectorTransferEvent, from starknet.js hash.getSelectorFromName and keccak256 masked to 250 bits, which agree), keyed (keys [selector, from, to], data [low, high]) or unkeyed (keys [selector], data [from, to, low, high]). A failed call's descendants keep is_reverted false, and their events are cleared (blockifier's execute_inner_call; Pathfinder maps is_reverted from execution.failed). S5 reads status over constructed nodes, S6 recover, S7 the act agreement, S8 bound's and reference's refusals of a message that is not the option's form; landed holds starknetLandedNonce's fixtures. Each expected answer is derived from the profile x402-exact-starknet.md and read-status.md, none taken from the package's output. | | [`x402-exact-stellar-precondition.json`](https://lcp.integraledger.com/vectors/x402-exact-stellar-precondition.json) | Vectors for x402/exact/stellar/precondition (x402-exact-stellar-precondition.md): the 40-byte payload, the signed-payload signer, the build of the transaction the buyer signs, bound and reference, and every refusal of the profile. The fixed inputs are H = SHA-256("abc") (FIPS 180-2), the seller from Ed25519 seed 04x32, the buyer from 05x32, a stranger from 09x32, the asset the contract strkey of 06x32, on testnet, and x402-exact-stellar.json's V2 simulated envelope (nonce 1) with its transfer set to transfer(buyer, seller, 10000000). The expected values were computed outside the workspace with stellar-sdk 13.0.0 (Python 3.12.3; its xdr, keypair, auth and signer_key modules): the payload as H then the nonce by int.to_bytes(8, 'big', signed=True); the signer as xdr.SignerKey SIGNER_KEY_TYPE_ED25519_SIGNED_PAYLOAD; the preimage as xdr.HashIDPreimage ENVELOPE_TYPE_SOROBAN_AUTHORIZATION; the transaction with xdr.PreconditionsV2 holding the time bounds the simulated envelope carried and that one signer, the entry signed by auth.authorize_entry and the payload by Keypair.sign_payload_decorated; command: python3 -I gen.py x402-exact-stellar.json . Each envelope of refusedBound is that build with one member changed, written by the same tool; the option and choice rows of refusedFilter and refusedBuild change one member, and no tool writes their codes, which are the profile's. | | [`x402-exact-stellar.json`](https://lcp.integraledger.com/vectors/x402-exact-stellar.json) | Vectors for the stellar entry point's transaction pieces, the payer-signed Soroban transfer and its authorization entry, on which x402/exact/stellar/precondition builds; the pairing x402/exact/stellar is retired. The fixed inputs are H = SHA-256("abc") from FIPS 180-2, the seller from Ed25519 seed 04x32, the payer from 05x32 and the asset the contract strkey of 06x32, on testnet; the expected values were computed with stellar-sdk 13.0.0 on Python 3.12.3. The fixtures described without being printed (the unsigned simulated envelope, V4's plain-G envelope) were built with stellar-sdk 13.0.0 on Python 3.11 from V3's envelope; the same script reproduces V2's preimage digest and signature. The payer signs the authorization entry's rootInvocation, not the operation (CAP-46: the credentials' signature covers the HashIDPreimage of the network id, nonce, expiration and invocation; x402 scheme_exact_stellar: argument 1 (to) MUST equal payTo, and the rootInvocation MUST NOT contain subInvocations), so the payment is read from that invocation and the operation must invoke exactly it. V4's rows with a differing operation or signed invocation, and V4build, were built with @stellar/stellar-sdk 17.2.1 (its XDR codec, and authorizeEntry for the payer's signature, nonce 1, expiration 1000) from V2's simulated envelope, V4build's other token contract being the contract strkey of 07x32 and its other payer the account of Ed25519 seed 08x32, both encoded by its StrKey; the same builder reproduces V3's envelope and V4's plain-G envelope byte for byte. V4's encoding rows follow RFC 4648 (section 3.3: characters outside the base alphabet are rejected; section 3.5: non-zero padding bits are rejected; section 4: the encoding is padded to a multiple of 4) and the XDR decoder of @stellar/stellar-sdk 17.2.1, which refuses bytes after the envelope. | | [`x402-exact-sui.json`](https://lcp.integraledger.com/vectors/x402-exact-sui.json) | Vectors for the x402/exact/sui pairing: the sui entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. V1 is Sui testnet transaction EV7D7z9gjzjrAQSKWSW8S1iLGdk8aEVPjn3zLA1aUSLE, its transactionBcs read over GraphQL (graphql.testnet.sui.io) on 2026-09-25. V2 and V3 are recipe R, built with @mysten/sui 2.35.0. Every digest is Python 3's hashlib.blake2b(b"TransactionData::" + bytes, digest_size=32), then base58. O is a test option: the option's values are not read by the pairing beyond its filter. V4's status rows read with position 5, the checkpoint from which the caller needs the endpoint's history. A reader answer's firstCheckpoint is the endpoint's serviceConfig.availableRange(type: "Query", field: "transaction").first, which Sui's GraphQL schema (MystenLabs/sui, crates/sui-indexer-alt-graphql/schema.graphql) defines as the "Inclusive lower checkpoint for which data is available"; a row that gives none answers null, an endpoint that states no range. An absent transaction past its epoch bound, while the endpoint holds transactions from the position or earlier, waits for the search for H (the profile x402-exact-sui.md, rule 13), which at this release proves no absence (rule 15); without that history it is unreadable history-gap. V3's MoveCall row is recipe R with one MoveCall appended, written with @mysten/sui 2.35.0's bcs (@mysten/bcs 2.1.2). V4's status rows and the plant are read with the act payment at the one mark final, after V4's position, and answer as the profile read-status gives them: a reader answer's searchRange is the range availableRange(type: "Query", field: "transactions", filters: ["sentAddress"]) states (schema.graphql of @mysten/sui 2.35.0, line 3968, as installed), with the epoch of its last checkpoint, and its pages are the sender's transactions with their effects' balanceChangesJson; both are constructed, in the shapes the profile states, and no endpoint was read for them. Every balance change is constructed. The transactions R2 (recipe R with Epoch(1240)), RP (recipe R sent by the payee), RN (recipe R with the SHA-256 of the empty string in place of H) and RO (recipe R with Epoch(1241), paying the account fixed.other) under search were built with @mysten/sui 2.35.0 and digested with Python's hashlib as above. Each expected answer was derived by hand from read-status.md and the profile x402-exact-sui.md: a search read whole proves no absence at this release (the profile's rule 15), so where the read would answer failed for any reason but before-position it answers pending search-incomplete at the search's head. RG, RS and RM under search were built with @mysten/sui 2.35.0 (its coinWithBalance intent with the build option assumeSufficientAddressBalances, so no endpoint was read) and digested with Python's hashlib as above: RG pays 10000 of testnet USDC (0xa1ec7fc0…::usdc::USDC) on the gasless path, price 0, budget 0 and no gas payment, the intent drawing it from the payer's address balance and sending the remainder back to the sender with 0x2::coin::send_funds; RS sends 1000 MIST of SUI to the payee, who owns the gas data; RM passes 10000 MIST split from the gas coin to a Move call, 0xabab…::shop::pay, that credits the payee, no command naming the payee. Their balance changes, the coin type with type parameters (0x5c5c…::reserve::CToken<…>) and the balance change whose owner is no address are constructed. Each entry of what moved is named by its transaction and its place: a balance change by its owner and coin type, a signed transfer by its command's index (the profile, rule 9). | | [`x402-exact-tron-lcp-trc20-memo.json`](https://lcp.integraledger.com/vectors/x402-exact-tron-lcp-trc20-memo.json) | Vectors for the x402/exact/tron/lcp-trc20-memo pairing: the tron entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. V1 is mainnet transaction 40662c9c…, read live from a Solidity node. V2's inputs are the published Anvil development key, USDT-TRC20, the payee bytes of x402's example option under 0x41, and solidified block 86542765. The signature was made with coincurve 21.0.0 (RFC 6979) and recovers to the payer; base58check with base58 2.1.1; the Transfer topic with pycryptodome 3.23.0 keccak; every SHA-256 with hashlib. Negative transactions are V2 with fields changed, written by hand from Tron.proto's field numbers. V4's status fixtures model the nodes' answers: a lookup that finds nothing answers notFound with the time of the latest block at its level on the node that answered, and null marks an answer status does not read. A node includes a transaction only while its expiration is after the head block's time (java-tron Manager.validateCommon), so a lookup names absence through the solid head read first only when its node has reached that head's time. V4's recover fixtures model the transaction read's answers: a transaction id is the SHA-256 of its raw data, so raw data whose SHA-256 is another is not the transaction the id names, an answer recover refuses tron/unreadable as it refuses a failed read. Byte strings are lowercase hex; int64 values are decimal strings. V4's status rows and the plant are read with the act payment at the finality the row gives, solidified where it gives none, after the position the row gives, and answer as the profile read-status gives them with the pairing's rule 8: each reference holds V2's raw data, the payment presented. Status rows read the transaction's owner, the reference's payer, against the option's payee, and record each Transfer log of the receipt whose sender, the address its second topic names, is the transaction's owner (its emitter, the recipient its third topic names and the amount its data holds, the data written for these modeled answers from the amount V2 signs; the topics as TRC-20's Transfer(address indexed _from, address indexed _to, uint256 _value) orders them, tronprotocol/tips at c29d7363, tip-20.md:159) as what moved, named by the id and the log's place among the receipt's logs; an answer that names a transaction names its owner as the signer and its contract's Permission_id (Tron.proto:384 at java-tron 4e8389f1; 0 where absent, as protobuf omits a default) as the authority; on the act payment the transaction is the payment only where a log's recipient is payTo, whatever contract emitted it. Block answers are constructed, in the shape java-tron at 4e8389f1 gives (framework/src/main/java/org/tron/core/services/http/GetBlockByLimitNextServlet.java:18, :45-52; Util.java:137-148, :295-298): each block is named by its number, the 8 bytes a blockID begins with, then the bytes ab, its parentHash the block before it's. A failed receipt, a receipt that names no payee's account and a lapse take the search for H, and until the run that shows a block's answer lists every transaction of its block a complete search proves no absence: they answer pending search-incomplete, with the search's position where it had a range (rule 25). V5's rows read the search over constructed blocks whose transactions are V2's raw data with fields changed by hand (its timestamp, its owner, its call's recipient), each id their SHA-256 by hashlib. zero's rows read a signed transfer(to, 0) whose receipt holds no Transfer log, as its case states. owner's rows read V4's raw data, or zero's, under receipts whose Transfer logs come from the owner and from another account, the other account 0x41 and twenty 0x11 bytes and the third 0x41 and twenty 0x22 bytes: only the owner's logs are what moved, and the transfer of zero is read only from a receipt that holds no Transfer log. | | [`x402-exact-tvm.json`](https://lcp.integraledger.com/vectors/x402-exact-tvm.json) | Vectors for the x402/exact/tvm pairing: the tvm entry point of @integraledger/lcp. H is SHA-256("abc") from FIPS 180-2. The expected cell hashes, BoC and signature prefixes were computed with pytoniq-core 0.2.0 and PyNaCl 1.6.2; fixed.attachNanotons is 30,000,000 nanotons, the stock settler's cap above a forward TON amount of 0 (@x402/tvm 2.30.0, src/exact/facilitator/scheme.ts:326-329, DEFAULT_JETTON_WALLET_MESSAGE_AMOUNT in src/constants.ts:14), and V2's and V2b's members that depend on it, with the settlement BoC buyer row B6 presents, were recomputed at it by a script that builds the request from the profile's layout (x402-exact-tvm.md, rule 2) with @ton/core 0.63.1 and @noble/curves 2.4.0 and imports nothing of this package, after that script reproduced, at the earlier 50,000,000, every one of those values pytoniq-core 0.2.0 and PyNaCl 1.6.2 gave, byte for byte; the request body hashes by a script that builds the settlement message with those tools and reproduces the vector's settlement root hash first. The payer's key is the Ed25519 seed 01 repeated 32 times. Negative settlement BoCs are V2's request with one part changed, except agreedRefusals' row 22, buyer row B6's settlementBoc with a bit set past the last byte in its last base64 character before the padding, and the agreedRefusals rows whose case says their settlement message is written bit by bit. status is read through a TON Center v3 reader as the profile x402-exact-tvm states it (rule 6); its cases are the read kit's, read-status.json's cases arranged on a constructed ledger (test/tvm-ledger.ts, test/read-kit/forms/tvm.ts), and no recorded answer of a tvm:-3 index is held yet. V4.recover's rows model the one call recover makes, byHash, with inBody a BoC in hex. V6 is the payment the stock client of @x402/tvm 2.30.0, which this package pins as a devDependency, writes from the stock server's option once H is placed in it, run offline against a constructed provider as its case states; its settlementBoc is that client's output, byte for byte. | | [`x402-exact-xrpl.json`](https://lcp.integraledger.com/vectors/x402-exact-xrpl.json) | Vectors for the x402/exact/xrpl pairing: the xrpl and x402/exact/xrpl entry points of @integraledger/lcp. Expected values: H is SHA-256("abc") from FIPS 180-2; payer from Ed25519 entropy 01x16, destination from 02x16; 1 000 000 drops, Fee 12, Sequence 7, LastLedgerSequence 1000, computed with xrpl-py 4.1.0 on Python 3.12.3, GNU coreutils 9.4 and OpenSSL 3.0.13. The plant's blob was built with xrpl-py 4.1.0 on Python 3.11; the same script reproduces V2's and V3's blobs and hashes. Each reference names the option's payee. The read's rows are in read. | | [`x402-headers.json`](https://lcp.integraledger.com/vectors/x402-headers.json) | Vectors for x402's three HTTP headers, PAYMENT-REQUIRED, PAYMENT-SIGNATURE and PAYMENT-RESPONSE: padded standard base64 (RFC 4648 §4) of the UTF-8 of JSON.stringify of the object, as the x402 specification's HTTP transport states it and its examples give it (x402 d6d2c58, specs/transports-v2/http.md), and as @x402/core 2.30.0 writes it (src/http/index.ts, encodePaymentRequiredHeader, encodePaymentSignatureHeader and encodePaymentResponseHeader: safeBase64Encode(JSON.stringify(value)), src/utils/index.ts). The spec rows are the specification's four example headers, each decoded with Python 3.12.3's base64.b64decode(validate=True) and json.loads, and each re-encoded byte for byte by base64.b64encode of json.dumps(separators=(',',':')). The composed row's expected document and header were written from the rule and the legalContext extension's schema with the same tools; bazaar's members are a placeholder extension the package does not declare. The refusals are values no stock client writes. The stock rows are the specification's two settlement responses as x402's Python server writes PAYMENT-RESPONSE (x402 88b66dd4, python/x402/http/utils.py:73-76: base64.b64encode of json.dumps of the model's dump, its members in python/x402/schemas/responses.py:75-82's order, with json.dumps's ', ' and ': ' separators), computed with Python 3.12.3; each decodes to the specification's object. The specification's example headers are byte-equal at 88b66dd4 and d6d2c58. The stockEncoder rows are what @x402/core 2.30.0's own encoders write (src/http/index.ts:17-18 encodePaymentSignatureHeader, 50-51 encodePaymentRequiredHeader and 76-80 encodePaymentResponseHeader, which deletes extensionResponses before JSON.stringify) for a specification row's decoded object, extended by the members each row adds, with each member undefinedAt names set to undefined, which JSON.stringify leaves out; computed with Node 26.11.1 calling those functions as the package's dist/esm/http/index.mjs exports them. | | [`x402-request-commitment.json`](https://lcp.integraledger.com/vectors/x402-request-commitment.json) | Vectors for the request an x402 challenge commits to in the ATR's binding slot (x402-request-commitment.md). HTTP: the method as received, the target split at its first ?, SHA-256 over the body bytes. MCP: the tool's name and SHA-256 over the RFC 8785 form of its arguments, _meta not committed. The MCP calls are the x402 MCP transport's own example tools/call request (x402 d6d2c58, specs/transports-v2/mcp.md, Payment Payload Transmission) and the changes each row's case names. Expected values were computed with Python 3.12.3's hashlib.sha256 and, for RFC 8785, json.dumps(sort_keys=True, separators=(',',':'), ensure_ascii=False), which is RFC 8785's form for these values (keys of ASCII, numbers that are integers or 0.5); bodyUtf8 is the body's bytes as UTF-8. Header fields (httpHeaders, httpHeaderRefusals): where the resource server names request header fields, the HTTP commitment also holds headers, for each field named, in the order named, its lower-cased name and SHA-256 of its value, the field's lines as received, each without its leading and trailing spaces and tabs, joined in the order received by a comma and a space, cookie's by a semicolon and a space, and null for a field the request lacks; with none named it has no headers member. Each httpHeaders row gives the field lines as received on the wire (received), the record requestCommitment is given (request.headers) and the names (fields). Its expected digests were computed 2026-11-16 (the tilde row 2026-11-17, the same way) by sending received, as one HTTP/1.1 request, to a node:http 26.11.1 server created with joinDuplicateHeaders: true, whose req.headers gives each field's lines trimmed and joined, cookie's by '; ' (as @types/node 26.6.5 http.d.ts states), and hashing that value with node:crypto's SHA-256, checked with Python's hashlib; none was taken from the package's output. A refusal row's fill, where present, sets the named field to char repeated length times, on lines lines (1 where absent). Refusals (httpRefusals, mcpRefusals) each change one member of a good request or call; a method is refused where it is not a token, RFC 9110's method = token, token = 1*tchar (sections 9.1 and 5.6.2), and the http row whose method holds every kind of tchar is taken as received; an httpRefusals row's fill sets target to / and char to length characters, or body to char repeated length bytes; the 8192-character target and 1 MiB body bounds are the profile's, x402 setting none. Every mcp row's digest is also recomputed by the test with canonicalize 5.1.0, an RFC 8785 implementation independent of this package, and node:crypto's SHA-256; the row whose keys sort differently by UTF-16 code units than by code points, and whose numbers take ECMAScript's exponent forms, was computed that way on 2026-11-17 (Python's sort_keys and float forms give another digest for it). The paid retry repeats the first call's name and arguments with the payment in _meta, as @x402/mcp 2.30.0's client sends them (src/client/x402MCPClient.ts:562-580, the first call {name, arguments: args}, args {} by default; :684-707, the retry {name, arguments: args, _meta: {[MCP_PAYMENT_META_KEY]: paymentPayload}}). | | [`x402-upto-eip155-permit2.json`](https://lcp.integraledger.com/vectors/x402-upto-eip155-permit2.json) | Vectors for x402/upto/eip155/permit2. H is SHA-256("abc") (FIPS 180-2); the payer is the published Anvil development key #0; now is 1790000000. Values are written in full, or as their prefix and suffix where truncated. Refusal codes are this package's own, not the specification's. The upto facilitator F is Anvil account 2. The read's own cases are the read kit's (read-status.json, through the pairing's read-kit form); EV6 holds recover's rows. | | [`x402-upto-solana.json`](https://lcp.integraledger.com/vectors/x402-upto-solana.json) | Vectors for the x402/upto/solana pairing (the x402-upto-solana entry point of @integraledger/lcp). Expected values use x402-exact-solana.json's fixed inputs (receiverAuthorizer from seed 03x32; nonce 7; openSlot 341000000; amount 10000; withdrawDelay 3600), computed with solders 0.26.0, PyNaCl 1.6.2 and @noble/curves 2.4.0. The fixtures (EU5's landed wire, the no-channel transaction, the plants' wires) were built with solders 0.26.0 on Python 3.11; the same script reproduces EU1, EU3 and EU5's txid. The no-channel message's digest, d4e6becc...1c47, is recorded here in full. EU5 is a landed opening and a transaction with no channel instruction, read by recover and bound; transactionV1's statusRows read the stock version-1 opening back, and the read's own cases are in svm-read.json; each reference names the option's payee. transactionV1 is the version-1 transaction (SIMD-0385) the stock @x402/svm 2.31.0 client writes, run offline as its case states; its landed wire adds the fee payer's signature made with @noble/curves 2.4.0. | | [`x402-upto-xrpl.json`](https://lcp.integraledger.com/vectors/x402-upto-xrpl.json) | Vectors for the x402/upto/xrpl pairing (the x402-upto-xrpl entry point of @integraledger/lcp), x402's upto scheme on the XRP Ledger (specs/schemes/upto/scheme_upto_xrpl.md at x402-foundation/x402 88b66dd4, cited by line as :N). No published software implements the scheme (@x402/xrpl 2.30.0 ships exact alone), so every value is computed from the scheme's text by independent tools: fixed.O and fixed.OSettle are the scheme's own examples (:110-124, :128-142), verbatim. The keys are Ed25519 by XRPL's key derivation (xrpl.org, Cryptographic Keys, Ed25519 Key Derivation: the private key is SHA-512Half of 16 bytes of entropy, the public key 0xED and the curve point), entropy 01x16 the payer, 03x16 another account, 04x16 another destination, the account base58check of 0x00 and RIPEMD-160(SHA-256(public key)) (@noble/hashes 2.4.0 legacy, ripple-binary-codec 2.11.0's AccountID). create.txJson is written by hand from xrpl.org's PaymentChannelCreate fields; create.blob is ripple-binary-codec 2.11.0's encode with SigningPubKey and TxnSignature, the signature @noble/curves 2.4.0's Ed25519 over ripple-binary-codec's encodeForSigning; each hash is SHA-512Half of TXN\0 and the blob (node:crypto). Each channel id is the PayChannel ID format (xrpl.org, PayChannel, PayChannel ID Format; :56): node:crypto's SHA-512Half of 0x0078, the two AccountIDs and the sequence or ticket, big-endian. claim.expect is ripple-binary-codec 2.11.0's encodeForSigningClaim({channel, amount}), the bytes :251-254 state, and claim.signature the payer's Ed25519 signature over them, which fixed.P presents. Expected answers of status are written by hand from the profiles read-status and x402-upto-xrpl, each row read on a constructed server holding ledgers 1 to 1001, 1000 validated, unless complete says otherwise (test/fixtures/xrpl-reader.ts): the reference of fixed.P with the row's channel, plus fromLedger 950, read for the act payment at the mark validated after the position 950. ledger_entry answers the row's PayChannel at the validated ledger, or entryNotFound where the row names none; account_tx answers the row's creates for the row's opener alone, each with tesSUCCESS at its ledger, validated unless the row says otherwise, its metadata creating the row's channel unless metadata is false. Refusal rows change one member of fixed.P or of fixed.O, as a JSON Pointer (RFC 6901) and its value, or remove it; their codes have no outside oracle and are the profile's rules 5 and 7 over the scheme's members (:144-150, :172-188, :236-243). | --- # Settler reference > The settler's exports, HTTP API, declarations, order of checks, record, reasons, storage, bounds and logs. Source: https://lcp.integraledger.com/reference/settler Updated 2026-11-20. Documents @integraledger/lcp 0.6.3 and @integraledger/profile-facilitator 0.5.1. The settler is the package `@integraledger/profile-facilitator`, in this repository's [`settler/`](https://github.com/IntegraLedger/integra-protocol/tree/main/settler) folder. This page is for the operator and the resource server's developer: every answer, reason, check, table, bound and log entry the settler gives. [Run the settler](https://lcp.integraledger.com/guides/settler.md) starts it and configures each module. Version 0.5.1 takes `@integraledger/lcp` `~0.6.3` as its peer ([Versions](https://lcp.integraledger.com/guides/settler.md#versions)). ## Exports The package's entry point exports: | Export | Kind | What it is | |---|---|---| | `serveProfileFacilitator(config)` | `(c: ProfileFacilitatorConfig) => Promise<{ close(): Promise }>` | Opens the store, starts each configured module and the HTTP server, and resolves once it listens. If it cannot start, it closes what it opened and rejects with the error that stopped it. | | `ProfileFacilitatorConfig` | type | The configuration: the core's members and one member per module ([Run the settler](https://lcp.integraledger.com/guides/settler.md)). | | `FeeBudgetConfig` | interface | One entry of `feeBudgets`: `{ network, amount, periodSeconds }`. | The [API pages](https://lcp.integraledger.com/reference/api.md) cover `@integraledger/lcp` alone; the settler's exports are the three above. ## HTTP API | Request | Answer | |---|---| | `GET /supported` | `200` `{kinds, extensions, signers}`. | | `POST /verify` | `200` `{isValid: true, payer}` or `{isValid: false, invalidReason, invalidMessage?, payer?}`; `400` `{isValid: false, invalidReason: "invalid_payload"}` when the body is not JSON. | | `POST /settle` | `200` `{success: true, transaction, network, payer}` or `{success: false, errorReason, errorMessage?, transaction, network}`; `400` with `errorReason` `invalid_payload` when the body is not JSON. | | A call without the credential, where one is configured | `401` `{error: "unauthorized"}` with `WWW-Authenticate: Bearer`, before the body is read; the connection is closed. | | A body over 132,096 bytes | `413`, and the connection is closed. | | Another method on a served path | `405` `{error}`. | | Any other path | `404` `{error}`. | | An error outside every answer | `500` `{error: "internal error"}`, once its entry is in the operator log. | The body bound is twice lcp's `MAX_HEADER_BYTES` (65,536), the largest payment payload and the largest option lcp's x402 codec reads, and 1,024 bytes for the envelope. ### Reasons | Reason | `/verify` | `/settle` | Meaning | |---|---|---|---| | `invalid_x402_version` | yes | yes | `x402Version` is not 2 in the request or the payload. | | `invalid_network` | yes | yes | No configured module serves the network. | | `unsupported_scheme` | yes | yes | No module registers the scheme on the network. On `lnbtc`, every `/verify`. | | `invalid_payment_requirements` | yes | yes | The requirements are not ones the pairing's profile admits; an amount of zero whose pairing the kind's `extra.acceptsZero` does not name; a form outside the kind's pairings; an option the module refuses ([each module](https://lcp.integraledger.com/guides/settler.md#the-modules)). | | `invalid_payload` | yes | yes | The payload does not match the profile or the requirements. | | `unsupported_permission` | yes | yes | Tron: the owner's permission does not accept the transaction's signatures. | | `invalid_transaction` | yes | yes | The node refuses the transaction in simulation or validation, in a module of the settler's own. | | `invalid_transaction_state` | yes | yes | `/verify`: the record or the chain already holds the payment. `/settle`: a repeat of a final row, or a payment the chain shows failed, consumed by another act, lapsed or landed by another route; each names the transaction where one is known. | | `fee_budget_spent` | yes | yes | The network's fee budget is spent, and the module's key would pay the fee. | | `settlement_pending` | no | yes | Submitted, or possibly submitted, and not yet final or not yet stored when the wait ended; `transaction` names it. | | `unexpected_verify_error` | yes | no | A node or the store could not be read. | | `unexpected_settle_error` | no | yes | A node or the store could not be read before submission, the settle's wait ended before it, or the submission failed with nothing sent. | `unsupported_permission`, `invalid_transaction` and `fee_budget_spent` are the settler's own; the others are x402's. A published class's own reasons, such as `invalid_exact_evm_payload_signature`, pass unchanged. ## What `/supported` states `GET /supported` answers `{kinds, extensions, signers}` as x402's facilitator class gives it. Each kind is `{x402Version: 2, scheme, network, extra}`, one per scheme on each configured network, and its `extra` holds: | Member | Value | |---|---| | `extra.pairings` | The lcp pairing ids the kind submits. A scheme on one network can hold several forms, so the scheme alone does not name them. | | `extra.key` | `none`, `relayer` or `fee-payer` ([Keys](https://lcp.integraledger.com/guides/settler.md#keys)). | | `extra.acceptsZero` | The pairings of `extra.pairings` the kind settles at an amount of zero; `[]` where none does. An option of amount zero whose pairing it does not name is refused `invalid_payment_requirements`. | | `extra.feeBudget` | `true` on each kind of a network whose fee budget the operator set; absent otherwise. Neither the amount nor what remains is stated. | | The class's own members | Kept unchanged, such as `assetTransferMethod` on Tron and Polkadot, `feePayer` where a fee payer co-signs, and `areFeesSponsored` on the XRP Ledger and Stellar. No module's class may state one of the four members above: the settler refuses one that does at start. | `signers` is keyed as x402's class keys it, by CAIP family (`eip155:*`, `solana:*`, ...), and holds the address of every key that signs on that family. A seller reads `extra.key` to know what a deployment must hold, `extra.pairings` to know which forms it can offer with this settler, and `extra.acceptsZero` before choosing a zero agreement amount. ## The order of checks ### `/verify` `/verify` moves nothing. In order; the first refusal is the answer: 1. The request's shape: `invalid_x402_version`, `invalid_payload`. 2. The network is one a module serves, else `invalid_network`, and the scheme one a module registers on it, else `unsupported_scheme`. Where an own module claims the payment (by a member of the option, or by what the payment holds), it goes to that module, else to the registration's class. On `lnbtc` the answer is `unsupported_scheme`. 3. lcp's checks of the pairing, from the payment and its requirements alone. A refusal carries x402's reason and, on the `algorand`, `aptos`, `casper`, `hedera`, `solana`, `starknet` and `sui` modules, lcp's refusal code as `invalidMessage` (on `starknet` and `sui`, the module's own code where its own check refused). 4. The record: a payment it holds, claimed or final, is refused `invalid_transaction_state`, since `isValid: true` tells the caller that a settle may follow. 5. What the kind declares: an amount of zero whose pairing `extra.acceptsZero` does not name, and a form outside the pairings of the module the payment goes to, are refused `invalid_payment_requirements`. 6. The fee budget, where the module's key pays the fee: a spent budget is refused `fee_budget_spent`. 7. The class's verify, unchanged, with its own reasons. 8. lcp's read of the chain: a payment the chain shows final (landed, or consumed by another act) is refused `invalid_transaction_state`. A read that fails goes to the operator log and leaves the class's answer. On `sui`, whose `/verify` judges a transaction the buyer already executed by its effects, steps 4 and 8 are not made. The answer is `{isValid: true, payer}` or `{isValid: false, invalidReason, invalidMessage?, payer?}`. ### `/settle` 1. Steps 1 to 3 of `/verify`, with `errorMessage` for `invalidMessage`; `lnbtc` is served here. On `upto`, whose requirements carry the charge, the `evm` module holds requirements that are the option the payment accepted in every member but an `amount` at or below the accepted one as that option. 2. The record: a final row is answered `invalid_transaction_state` naming the transaction it holds, never a second success. 3. What the kind declares, as `/verify` checks it. 4. A claim the record holds that is not final, which another settle holds or whose hold has ended: it is answered as [the record](https://lcp.integraledger.com/reference/settler.md#the-record-and-what-a-repeat-answers) says, and no step below is made. 5. The class's verify; on `upto`, the check the class's own settle makes before it submits. On `evm`, the permit against the maximum the payment accepted. On `solana`, a deposit's opening as the buyer sent it, without the `type` the resource server adds to each settle; a claim against an open channel, which the class's verify never takes, is checked by its settle, before it sends anything. Where it refuses, lcp's read of the chain: a payment the chain shows landed, or whose value another act consumed, is stored final and answered `invalid_transaction_state` naming its transaction; otherwise the class's refusal is the answer, nothing is stored, and a repeat is checked again. 6. Where the module's read searches from a position no x402 call carries (a ledger, a slot, a block), the chain's position, read just before the claim, which the row keeps for every later read. 7. The claim: one conditional insert of the payment's row, held by this settle for `settleWaitMs`, so that of two settles of one payment only one submits. 8. The fee budget, where the module's key pays the fee: a spent budget answers `fee_budget_spent`, sends nothing, and leaves the claim, not final. 9. The class's settle, which submits what the payer signed. A success that names a transaction is stored final, then answered `{success: true, transaction, network, payer}`. Anything else is classified by lcp's read: a payment the chain shows final is stored final and answered (success only where the read shows a transaction this settler sent, or the payment it presented, settled); one still live is answered `settlement_pending` naming the transaction sent, or the class's own failure where it named no transaction or its failure consumed nothing. A success is answered once, only by the settle whose write stored it: of two settles of one payment, only one answers success, and the other answers `invalid_transaction_state` naming the transaction, or `settlement_pending` where its wait ends first. A success that cannot be stored is answered `settlement_pending` naming its transaction, and a later `/settle` reads the chain again. ## The record, and what a repeat answers The record is one row per payment, its **instrument**, within its network: the single-use value its signer signed (an authorization nonce, a sequence number, an account nonce, with the token or nonce key it counts in), or the transaction id where the chain derives it from the signed content alone, or the digest of the signed payment where the pairing's single-use value is not shown. It is never the single-use value alone, which two payers can share, and never a hash that a copy signed again would change. An agreement and a payment of one payer under one H are two instruments. A row is **final** once its answer can never change: a success; a failed result that consumed the single-use value; a value another act consumed; a validity that passed with the value unconsumed; or a payment that landed by another route. A refused submission, one that cannot have reached the node, and a failed result that consumed nothing leave the row a claim, which a repeat reads again. A claim is never removed. | A repeated `/settle` finds | It answers | |---|---| | A final row | `invalid_transaction_state` naming the transaction the row holds. Never a second success, as x402's `exact` family requires: a consumed payment produces a settlement failure. | | A claim another settle holds | It reads the row every second and sends nothing, until that settle answers or its hold ends; then the row's answer, or lcp's read. It answers `settlement_pending` naming the transaction where one is known, and `unexpected_settle_error` where none is known when its wait ends. | | A claim whose hold has ended | It takes the claim and reads the chain. A payment the chain shows final is stored and answered. The identical signed payment is submitted again only where the pairing's `nonce` is `single-use` in lcp's registry, the row is not named by the digest of the signed payment, the read shows the value unconsumed and its validity open, the body is the one that claimed the row, and the class's verify passes again. Another body under the same instrument is answered `invalid_transaction_state`. Otherwise `settlement_pending` naming the transaction sent, or `unexpected_settle_error` where none is known. | | No row, and the store cannot be read | `settlement_pending` where the payment's transaction id is known before it is sent, else `unexpected_settle_error`: the settler cannot know whether it was sent. | When the wait ends first, `/settle` answers `{success: false, errorReason: "settlement_pending", transaction}`; x402 requires that `transaction` not be empty. Call `/settle` again with the same request: it reads the chain from where the last read stopped, never sends what it sent before unless the rule above admits it, and returns the final answer once there is one. A final row is kept at least 24 hours past the time its payment can last land (its signed validity, or the longest the rail keeps a signed payment payable), and for the settler's life where neither is known or the pairing's `nonce` is not `single-use`; a claim that is not final is kept until a repeat makes it final. ## Storage Postgres holds three tables, created at start where they do not exist. Postgres 11 or later; the role needs `CREATE` on the schema and owns the tables, since every start runs the statements below ([The database](https://lcp.integraledger.com/guides/settler.md#the-database)): ```sql CREATE TABLE IF NOT EXISTS instrument ( network text NOT NULL, key text NOT NULL, pairing text NOT NULL, claimed bigint NOT NULL, held_until bigint NOT NULL, final boolean NOT NULL DEFAULT false, outcome text, answer jsonb, transaction text, sent text[] NOT NULL DEFAULT '{}', body text, payer text, search jsonb, since jsonb, keep_until bigint, PRIMARY KEY (network, key) ); CREATE INDEX IF NOT EXISTS instrument_final_keep ON instrument (keep_until) WHERE final AND keep_until IS NOT NULL; CREATE TABLE IF NOT EXISTS fee ( network text NOT NULL, transaction text NOT NULL, at bigint NOT NULL, fee numeric(78, 0) NOT NULL, included boolean NOT NULL, PRIMARY KEY (network, transaction) ); CREATE INDEX IF NOT EXISTS fee_at ON fee (network, at); CREATE TABLE IF NOT EXISTS module_state ( module text NOT NULL, key text NOT NULL, value jsonb NOT NULL, PRIMARY KEY (module, key) ) ``` - `instrument` is the record: `key` is the instrument, its kind and parts as a JSON array. `held_until` is when the settle holding the claim may no longer send (0 once it answered); `answer` is the answer as first given, once `final`; `transaction` the transaction the row names; `sent` every transaction the settler's submissions for the claim named, any of which can be the one that lands; `body` the SHA-256 of the body that claimed the row, the only body sent again; `search` where the next read resumes; `since` the chain's position read just before the claim; times are Unix milliseconds. - `fee` is the fee count: one row per transaction a keyed module submitted on a network with a budget. - `module_state` is the modules' durable state, under each module's name: a class's pending settlements, Cardano's broadcast guard, Solana's channels. - A sweep every minute drops the final rows kept 24 hours past their keep, and the fees older than the longest budget period. The pool holds at most 10 connections; acquiring one, each query and each statement are bounded by 5 seconds. ## Bounds and logs - Each node call the settler makes itself has a timeout of at most 5 seconds and an answer of at most 4 MiB, except Polkadot's block reads, bounded by the runtime's `System.BlockLength` (at most 4 of them at once in a process). A published class's calls are bounded by the class, and its settle takes no deadline: `settleWaitMs` bounds the settler's own reads and store calls, and a class's settle runs on its own bounds. x402's EVM signer waits up to 180 s for a receipt unless `toFacilitatorEvmSigner`'s `confirmationTimeoutMs` is set: set it below `settleWaitMs`, or a `/settle` can outlast its wait. - `/settle`'s reads and submission end a second before `settleWaitMs` (a quarter of a shorter wait), the time kept for storing the answer. The server's request timeout is `settleWaitMs` plus 60 seconds. - An error names a node by its origin alone, since a URL's path or query can hold an API key. - The operator log (`operatorLog`; by default one JSON line on standard error) receives what the operator should see and the answer does not carry, each entry with `network`, `payer` and `transaction` where they are known, and the error that caused it as `cause`. The answer to the client is the same either way and carries nothing from the cause. A log that throws, or returns a promise that rejects, changes no answer: the entry is written by the default, with an `operator-log-failed` entry. The core's entries are `verify-error`, `settle-error` and `request-error` (an error the handling threw); `read-failed` and `position-unread` (lcp's read, or the position before a claim, could not be made); `store-call-failed` (with the `call`), `store-connection-error` and `answer-not-stored`; `settle-deadline-passed` (with `before`, the step not started); `claim-unread` (a held claim whose read told nothing); `success-not-stored`; and `fee-not-counted`. Each module adds its own, such as `node-call-failed` and `settlement-failed`. Every `unexpected_verify_error` and `unexpected_settle_error` has an entry that names why, written when it is first given. ## Tests (contributors) The package ships no tests: in a clone of this repository, the tests feed lcp's vectors for each module's pairings through the settler's `/verify` and `/settle`, against local node stubs that replay recorded node answers (`test/fixtures/tron-mainnet-answers.json`, Polkadot Asset Hub's runtime metadata in `test/fixtures/polkadot-asset-hub-2005000.json.gz`) or answers derived from the pairing's profile. They need Postgres: set `INTEGRA_DATABASE_URL` to a connection string whose user may create databases. Each test file makes and drops its own database, so test runs share one server. CI runs them against a Postgres 18 service. ```sh INTEGRA_DATABASE_URL=postgres://postgres@127.0.0.1:5432/postgres pnpm --filter @integraledger/profile-facilitator test ```