{
  "about": "x402 on Algorand: facilitator /verify rejection reasons, reproduced against the live GoPlausible facilitator. Verify only; nothing settled.",
  "capturedOn": "2026-12-03",
  "facilitator": "https://facilitator.goplausible.xyz",
  "errors": [
    {
      "slug": "verify-returns-http-200-when-invalid",
      "question": "x402 facilitator /verify returns HTTP 200 even when the payment is invalid",
      "exampleResponseReason": "Payment amount does not match requirements: expected 10000, got 9999",
      "httpStatus": 200,
      "answer": "The facilitator answers 200 OK with {\"isValid\": false, \"invalidReason\": \"...\"} for a rejected payment. Read isValid, not the HTTP status.",
      "cause": "In the capture every rejected payment came back with HTTP 200 and isValid false. The only HTTP 400 was a request with no paymentPayload or paymentRequirements. A server that treats any 2xx as \"paid\" would let invalid payments through.",
      "fix": [
        "Always check response.isValid === true on /verify and response.success === true on /settle.",
        "Return a 402 with the invalidReason to the client when it is false."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "payment-amount-does-not-match",
      "question": "x402 Algorand: \"Payment amount does not match requirements: expected X, got Y\"",
      "exampleResponseReason": "Payment amount does not match requirements: expected 10000, got 9999",
      "httpStatus": 200,
      "answer": "The payment transaction sends a different amount than the paymentRequirements asked for. With the exact scheme the amount must match to the base unit.",
      "cause": "The capture sent 9999 base units against a requirement of 10000. USDC has 6 decimals, so 10000 base units is 0.01 USDC. The message prints the expected and actual numbers in base units.",
      "fix": [
        "Build the transfer from paymentRequirements.amount as a string, converted to an integer in base units, with no rounding.",
        "If you compute the price in dollars, multiply by 1,000,000 and use an integer."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "payment-receiver-does-not-match-payto",
      "question": "x402 Algorand: \"Payment receiver does not match payTo address\"",
      "exampleResponseReason": "Payment receiver does not match payTo address: expected T6IVURRNR2CDTPVHZLLBLFPEEYW73RQGOPQTIQRBT5ABFZPF7CQIUUYFBQ, got 3OC4NW7CALXIXNCY5NGOJW27TOWGEK3YYGOX7ART433KLB2XMZF4HKJ3BA",
      "httpStatus": 200,
      "answer": "The payment goes to an address other than payTo from the requirements.",
      "cause": "The capture paid a freshly generated address instead of payTo. The message prints both the expected payTo and the address actually used.",
      "fix": [
        "Use paymentRequirements.payTo as the receiver of the asset transfer, unchanged.",
        "If your server sets payTo per request, make sure the same value reaches both the 402 response and the verify call."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "payment-asset-does-not-match",
      "question": "x402 Algorand: \"Payment asset does not match requirements: expected X, got Y\"",
      "exampleResponseReason": "Payment asset does not match requirements: expected 31566704, got 312769",
      "httpStatus": 200,
      "answer": "The transfer is in a different asset than required.",
      "cause": "The capture used asset 312769 against a requirement of 31566704 (mainnet USDC). The message prints both asset ids.",
      "fix": [
        "Use paymentRequirements.asset (a string holding the ASA id) as the transfer's asset index.",
        "Mainnet USDC is 31566704; do not reuse a TestNet id on mainnet."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "unsigned-transaction-from-non-facilitator-address",
      "question": "x402 Algorand: \"Unsigned transaction from non-facilitator address\"",
      "exampleResponseReason": "Unsigned transaction from non-facilitator address: transaction at index 1 from 4FNL32QX2DXFUEOSUFKTFQMHFAGMZURHAHKPYA2F2WSYSXDE72ANW4OVPI",
      "httpStatus": 200,
      "answer": "The payer's transaction in the group has no signature. Only the facilitator's own fee-payer transaction may be unsigned.",
      "cause": "The capture sent the payer's asset transfer without signing it. The group is [fee-payer transaction (unsigned, signed later by the facilitator), payer transaction (must be signed)]. The message names the index and the sending address of the unsigned transaction.",
      "fix": [
        "Sign the payer transaction with the payer key (txn.signTxn(sk)) and put the signed bytes in paymentGroup.",
        "Leave only the transaction whose sender is the facilitator's feePayer unsigned."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "simulation-failed-should-have-been-authorized-by",
      "question": "x402 Algorand: \"Transaction simulation failed ... should have been authorized by\"",
      "exampleResponseReason": "Transaction simulation failed: transaction WDFAL4C5DPNZB3VR5WBYJ7V6KZ3ZOB5IZDNY5EMU7M5Z7VIB2MHQ: should have been authorized by 4FNL32QX2DXFUEOSUFKTFQMHFAGMZURHAHKPYA2F2WSYSXDE72ANW4OVPI but was actually authorized by 3OC4NW7CALXIXNCY5NGOJW27TOWGEK3YYGOX7ART433KLB2XMZF4HKJ3BA",
      "httpStatus": 200,
      "answer": "The payer transaction was signed with a key that does not control its sender address.",
      "cause": "The capture signed with another account's key. The facilitator simulates the group, and the node's message names both the address that should have signed and the one that did. A rekeyed payer account must sign with its auth key.",
      "fix": [
        "Sign with the secret key of the transaction's sender (or the auth-addr key if the account is rekeyed)."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "grouped-transactions-are-missing-a-group-id",
      "question": "x402 Algorand: \"Grouped transactions are missing a group ID\"",
      "exampleResponseReason": "Grouped transactions are missing a group ID",
      "httpStatus": 200,
      "answer": "The fee-payer transaction and the payment were not assigned a group id, so they are not an atomic group.",
      "cause": "The capture built the two transactions without calling assignGroupID. Without a shared group id the network would treat them as separate transactions, so the facilitator rejects the group.",
      "fix": [
        "Call algosdk.assignGroupID([feePayerTxn, paymentTxn]) before signing, and sign the grouped copies."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "close-to-transactions-are-not-allowed",
      "question": "x402 Algorand: \"Close-to transactions are not allowed\"",
      "exampleResponseReason": "Close-to transactions are not allowed: Transaction at index 1 has AssetCloseTo set",
      "httpStatus": 200,
      "answer": "The payment sets a close-to address, which would send the payer's whole asset balance somewhere. The facilitator refuses it.",
      "cause": "The capture set closeRemainderTo on the transfer and got \"Transaction at index 1 has AssetCloseTo set\". The index tells you which transaction in the group has it.",
      "fix": [
        "Do not set closeRemainderTo (or assetCloseTo) on any transaction in an x402 payment group."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "payer-asset-missing",
      "question": "x402 Algorand: payer error \"asset 31566704 missing from <address>\"",
      "exampleResponseReason": "Transaction simulation failed: transaction U7YIOHONYM5JXSL4JLNWCO3SVDBE4WBV2JKR7RPELIROZ5JXKJ7A: asset 31566704 missing from 3OC4NW7CALXIXNCY5NGOJW27TOWGEK3YYGOX7ART433KLB2XMZF4HKJ3BA",
      "httpStatus": 200,
      "answer": "The paying address does not hold the asset (it never opted in), so it cannot send it.",
      "cause": "The capture paid from an empty account. The facilitator's simulation returned the node's message \"asset 31566704 missing from \". The same wording appears for an address that exists but holds none of the asset.",
      "fix": [
        "Make sure the payer account has opted in to the asset and holds at least the amount: accountInformation(payer).assets.",
        "The payer also needs a little ALGO unless the facilitator sponsors fees; with a feePayer in the requirements the facilitator pays the network fee."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "txn-dead-in-simulation",
      "question": "x402 Algorand: \"Transaction simulation failed: txn dead: round X outside of A--B\"",
      "exampleResponseReason": "Transaction simulation failed: txn dead: round 67532259 outside of 1--900",
      "httpStatus": 200,
      "answer": "The payment transaction's validity window does not include the current round, so it expired or was built with stale parameters.",
      "cause": "The capture used a window of rounds 1 to 900. The facilitator's simulation reports the node's \"txn dead\" message with the current round and the window.",
      "fix": [
        "Fetch fresh suggested params right before building the payment and keep the default window (about 1000 rounds).",
        "Do not cache params across requests."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "genesis-hash-does-not-match-expected-network",
      "question": "x402 Algorand: \"Transaction genesis hash does not match expected network\"",
      "exampleResponseReason": "Transaction genesis hash does not match expected network",
      "httpStatus": 200,
      "answer": "The transaction was built for a different network (for example TestNet) than the network in paymentRequirements.",
      "cause": "The capture built the payment from TestNet parameters but required mainnet. The facilitator compares the genesis hash and answers with this message. Compare: sending the same mistake straight to a node gives \"txn dead\" instead.",
      "fix": [
        "Get suggested params from an algod on the same network named in paymentRequirements.network (CAIP-2 id)."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "fee-payer-amount-must-be-0",
      "question": "x402 Algorand: \"Fee payer transaction has invalid parameters: amount must be 0\"",
      "exampleResponseReason": "Fee payer transaction has invalid parameters: amount must be 0",
      "httpStatus": 200,
      "answer": "The transaction sent from the facilitator's fee-payer address must be a zero-amount payment. Anything that moves value is refused.",
      "cause": "The capture made the fee-payer transaction send 1 ALGO. The facilitator signs only a harmless zero-amount transaction from its own address, so it rejected this.",
      "fix": [
        "The fee-payer transaction is a payment of 0 from the feePayer address to itself that covers the group fee. Build it with amount 0."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "rekey-transactions-are-not-allowed",
      "question": "x402 Algorand: \"Rekey transactions are not allowed\"",
      "exampleResponseReason": "Rekey transactions are not allowed: Transaction at index 0 has rekeyTo set",
      "httpStatus": 200,
      "answer": "A transaction in the group sets rekeyTo. The facilitator refuses any rekey.",
      "cause": "The capture set rekeyTo on the fee-payer transaction and got \"Transaction at index 0 has rekeyTo set\". Rekeying would hand control of an account to someone else.",
      "fix": [
        "Never set rekeyTo on any transaction in an x402 payment group."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "payto-not-opted-in",
      "question": "x402 Algorand: \"receiver error: must optin\" for the payTo address",
      "exampleResponseReason": "Transaction simulation failed: transaction 4WSFAHJDATEACQ5XKGSG4DH5UAAUY65QCIUZVP2CWDZ6CPMNOOVA: receiver error: must optin, asset 31566704 missing from 3OC4NW7CALXIXNCY5NGOJW27TOWGEK3YYGOX7ART433KLB2XMZF4HKJ3BA",
      "httpStatus": 200,
      "answer": "The seller's payTo address has not opted in to the asset, so no buyer can pay it.",
      "cause": "The capture used a fresh payTo address. The facilitator's simulation returned the node's \"receiver error: must optin, asset 31566704 missing from \".",
      "fix": [
        "Opt the payTo address in to the asset first (a zero-amount transfer of the asset to itself), and keep 0.1 ALGO of extra minimum balance for it."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "missing-paymentpayload-or-paymentrequirements",
      "question": "x402 facilitator: HTTP 400 \"Missing paymentPayload or paymentRequirements\"",
      "exampleResponseReason": "Missing paymentPayload or paymentRequirements",
      "httpStatus": 400,
      "answer": "The request body to /verify or /settle lacks paymentPayload or paymentRequirements.",
      "cause": "This is the one case in the capture where the facilitator answered with an HTTP 400 and an error field. It is a malformed request, not a rejected payment.",
      "fix": [
        "Send both objects: { x402Version: 2, paymentPayload, paymentRequirements }.",
        "Forward the payload exactly as the client sent it in the PAYMENT-SIGNATURE header (decoded from base64 JSON)."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "invalid-x402-version",
      "question": "x402 facilitator: \"invalid_x402_version\"",
      "exampleResponseReason": "invalid_x402_version",
      "httpStatus": 200,
      "answer": "The payment payload says x402Version 1, but this facilitator expects 2 for Algorand.",
      "cause": "The capture sent x402Version 1 and got \"invalid_x402_version\".",
      "fix": [
        "Use x402Version 2, and the v2 header names (PAYMENT-REQUIRED, PAYMENT-SIGNATURE, PAYMENT-RESPONSE)."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "payment-index-out-of-bounds",
      "question": "x402 Algorand: \"Payment index out of bounds\"",
      "exampleResponseReason": "Payment index out of bounds",
      "httpStatus": 200,
      "answer": "paymentIndex points outside paymentGroup, or the group is empty.",
      "cause": "The capture sent an empty paymentGroup with paymentIndex 0 and got this message. paymentIndex is the position of the transaction that pays the seller, so it must be less than the group length.",
      "fix": [
        "Set paymentIndex to the index of the payer's asset transfer inside paymentGroup. With a fee-payer transaction first, that is usually 1."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "invalid-transaction-encoding",
      "question": "x402 Algorand: \"Invalid transaction encoding: Failed to decode transaction at index N\"",
      "exampleResponseReason": "Invalid transaction encoding: Failed to decode transaction at index 0",
      "httpStatus": 200,
      "answer": "An entry in paymentGroup is not a valid base64 MessagePack transaction.",
      "cause": "The capture put the string \"AAAA\" in the group. The message gives the index of the entry that failed to decode.",
      "fix": [
        "Each entry is the base64 of the encoded transaction: the signed bytes for the payer, the plain unsigned encoding for the fee-payer transaction.",
        "Do not wrap entries in JSON or send hex."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "unsupported-scheme",
      "question": "x402 facilitator: \"unsupported_scheme\"",
      "exampleResponseReason": "unsupported_scheme",
      "httpStatus": 200,
      "answer": "The scheme in the requirements is not one the facilitator handles. For Algorand it is \"exact\".",
      "cause": "The capture used scheme \"upto\" and got \"unsupported_scheme\".",
      "fix": [
        "Use scheme \"exact\" in both accepted and paymentRequirements."
      ],
      "capturedOn": "2026-12-03"
    },
    {
      "slug": "network-not-supported",
      "question": "x402 facilitator: \"Network ... not supported. Supported: ...\"",
      "exampleResponseReason": "Network algorand:doesnotexist not supported. Supported: eip155:8453, eip155:84532, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k, algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDe, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=, algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI=, base, base-sepolia, solana, solana-devnet, solana-testnet",
      "httpStatus": 200,
      "answer": "The network id is not one the facilitator serves. The message lists the ones it does.",
      "cause": "The capture used a made-up network id. The reply lists the supported CAIP-2 ids (Base, Solana and Algorand, mainnet and TestNet) in full, so the message itself is a quick way to see the exact strings. For Algorand the ids are algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k (mainnet) and algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDe (TestNet).",
      "fix": [
        "Copy the network id from the facilitator's GET /supported response instead of typing it."
      ],
      "capturedOn": "2026-12-03"
    }
  ]
}