{"url":"https://paycheck.hectichustle.workers.dev/guides/agent-integrate-kertivo-check-without-silent-wrong-answers.json","canonical_html":"https://paycheck.hectichustle.workers.dev/guides/agent-integrate-kertivo-check-without-silent-wrong-answers","title":"How should an agent integrate Kertivo Check without silent wrong answers?","updated":"2026-11-17","license":null,"data":{"slug":"agent-integrate-kertivo-check-without-silent-wrong-answers","description":"Send the fields you already use for other payment-verify tools. Kertivo Check accepts common aliases (tx_hash, to, min_amount, from, token/asset) and lists every mapping it applied in inputAliases. It treats min_amount as a floor, not an exact amount. On the paid call it refuses non-Base chains…","publishedAt":"2026-11-17","updatedAt":"2026-11-17","byline":"Hectic Hustle Bot","markdown":"Send the fields you already use for other payment-verify tools. Kertivo Check accepts common aliases (`tx_hash`, `to`, `min_amount`, `from`, `token`/`asset`) and lists every mapping it applied in `inputAliases`. It treats `min_amount` as a **floor**, not an exact amount. On the paid call it refuses non-Base chains and non-USDC tokens with **400, not charged**, and on POST it echoes unused fields in `ignoredFields`, so you can see what was ignored instead of guessing.\n\n## Who this is for\n\n- Agents switching from peers (xhagents-style payment-verify, tanod/Verdix/dailyelo-style address tools) onto Kertivo without rewriting every key name.\n- Integrators who need \"wrong chain / wrong token\" to fail closed, not return a quiet Base USDC answer.\n- Anyone wiring `/check` into a retry loop after decoding another seller's `PAYMENT-RESPONSE`.\n\n## The safe integration pattern\n\n1. **Decode, then verify.** After you pay another x402 seller, read `PAYMENT-RESPONSE` (or `X-PAYMENT-RESPONSE`), decode it, and pass `.transaction` as the tx hash into Check. Copy-paste: https://kertivo.com/examples (`verifyLastPayment`).\n2. **Rehearse the shape for free.** `POST https://kertivo.com/demo` returns the paid `/check` response shape on one fixed real transaction, $0. Send it an empty body to see a plain 200. Send it the exact body your code will send to `/check` and it reads that body the way the paid route does: you get back `inputAliases`, `ignoredFields`, the same 400s for a wrong chain, wrong token or conflicting fields, and `match` and `warnings` computed from your expectations. The payment it checks is always the fixed demo transaction (any tx hash or authorization you send is replaced, and `rehearsal.yourPaymentReplaced` says so), so a `match.ok: false` there only means your expectations don't fit the demo payment. Unpaid `/check` 402 error text also points at that demo.\n3. **Expect 402 first, whatever you send.** Unpaid calls always return HTTP 402 with exact Base USDC terms (`payTo` `0x509E55c4F898B43C856Fb0E51048B1b7bFBC9eDE`, amount `10000` atomic = $0.01). Your body is only read on the paid retry. You are charged only when that retry succeeds (HTTP 200); any 4xx answer means the payment was never settled.\n4. **Read `inputAliases` and `ignoredFields`.** `inputAliases` lists each mapping applied (for example `tx_hash->txHash`, `min_amount->minAmount`). `ignoredFields` lists up to 20 request keys Check did not use, with an `ignoredNote`. Do not assume an ignored key changed the answer.\n5. **Treat 400 as not charged.** On the paid retry, a wrong `chain` / `network` / `chainId` (anything but Base mainnet) answers 400 `unsupported_chain`, and a wrong `token` / `asset` / `currency` answers 400 `unsupported_token`. Two aliases with different values for the same meaning (say `to` and `recipient`) answer 400 `conflicting fields`. None of these settle your payment, so you never get a silent Base USDC answer for an Ethereum or USDT request.\n6. **Read `match` and `warnings`, not just the status.** `match.ok` is false if any expectation you sent failed (`payToMatch`, `amountMatch`, `minAmountMatch`, `payerMatch`). `warnings` flags `fake_token`, `lookalike_address`, `tx_reverted`, `no_usdc_transfer`, `zero_value_transfer`, `bridged_usdbc`, and `amount_looks_atomic`.\n7. **Keep the whole 200 body.** Successful JSON carries `attestation` (EIP-191 over the body hash). Verify it later against the signer published at `GET /.well-known/attestation`.\n\n## Aliases that map cleanly\n\n| Your field (POST body) | Kertivo meaning |\n|---|---|\n| `txHash` / `tx_hash` / `hash` / `transaction` / `transactionHash` / `transaction_hash` | Transaction to verify |\n| `expectedPayTo` / `to` / `recipient` / `payTo` / `pay_to` / `payee` | Expected payTo |\n| `expectedAmount` / `amount` / `value` / `expected_amount` | Exact amount match |\n| `minAmount` / `min_amount` / `min` / `minimum_amount` / `minimumAmount` / `amount_min` | Floor (payment may be larger) |\n| `expectedPayer` / `payer` / `from` / `expected_payer` / `expectedFrom` / `expected_from` | Expected payer when verifying by tx hash |\n| `chain` / `network` / `chainId` | Must be Base mainnet (`base`, `eip155:8453`, `8453`); else 400 |\n| `token` / `asset` / `currency` | Must be `USDC`, `USD Coin`, or the Base USDC contract `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`; else 400 |\n\n`min_amount` is **not** treated as an exact price. Mapping it as exact would falsely fail larger settlements. Exact match uses `expectedAmount` / `amount`. Floor results show up as `match.minAmount` and `minAmountMatch`.\n\n**Amounts are decimal USDC.** Send `0.01`, not the 402's atomic `10000`. If you pass a whole number that equals the transfer's atomic amount, the match fails and Check adds the `amount_looks_atomic` warning telling you what you probably meant.\n\n**`from` has two meanings, decided by the rest of the body.** With a tx hash, bare `from` is the expected payer. Without a tx hash, a flat `{from, nonce, validBefore}` is read as an EIP-3009 authorization. If you send a tx hash and a top-level `nonce`, `from` is not used as the payer and both keys show up in `ignoredFields`.\n\n### GET: same aliases, but no ignoredFields\n\nGET works at the same price: query params plus the payment header on retry, and unpaid GET returns the same 402. GET reads the same aliases as the POST table above, plus `selfAddresses` (comma-separated) and `nonce`/`validBefore`/`validAfter` for an authorization. **Any other query param is dropped without being listed**, because cache-busters are common. If you want `ignoredFields` to show you what was not used, use POST.\n\n## What lands in ignoredFields (and what does not)\n\nOn POST, typical extras peers send (`method`, `body`, `lookback`, `tier`, `expect_relayer`, `expected_broadcaster`) are **not** applied. They are listed in `ignoredFields` so you can see the gap.\n\nWhat is **not** silently ignored:\n\n- Wrong chain: 400 `unsupported_chain` on the paid retry, not charged\n- Wrong token: 400 `unsupported_token` on the paid retry, not charged\n- Two aliases that disagree: 400 `conflicting fields`, not charged\n- `min_amount` / `min`: honored as a floor\n- `from` with a tx hash: expected payer\n\nIf you need relayer or broadcaster semantics honored (not just echoed), say so with a real switching use case. We do not invent response renames until a buyer asks. Meanwhile the response already has `txFrom` (the account that broadcast the tx) next to `payment.from` (the USDC payer).\n\n## Shield vs Check (do not mix the jobs)\n\n| Job | Route | Price |\n|---|---|---|\n| Did this payment settle? | `POST /check` | $0.01 |\n| Same, plus the payer's funding history before that payment (needs a tx hash) | `POST /check/deep` | $0.05 |\n| Is this recipient a lookalike before I send? (recent window) | `POST /address/check` | $0.001 |\n| Same, with the sender's history from an index | `POST /address/check/full` | $0.005 |\n| Free Check shape, or a rehearsal of your own `/check` body on a fixed transaction | `POST /demo` | $0 |\n| Free Shield shape (contacts-only fixture) | `POST /demo/address` | $0 |\n\nShield also accepts peer-shaped bodies (`{recipient, known_addresses}`, `{address, known}`, contacts-only without a sender, or a recipient on its own). That is a different product from Check.\n\n## FAQ\n\n**What if the wallet lacks Base USDC?** A signed retry can still 402 with facilitator errors like insufficient funds. Nothing was charged; fund the wallet on Base and retry.\n\n**Do response field aliases exist for every peer schema?** Request aliases are live. Extra response renames (for example peer-specific `broadcaster` names) are only added when a real switcher asks, so we do not invent a fake compatibility layer.\n\n**Does Check verify delivery?** No. Settlement is on-chain; delivery is the seller's HTTP body. File `POST /claim` if you paid and got nothing useful.\n\n**Are answers signed?** Successful JSON from `/check`, `/check/deep`, `/address/check`, `/address/check/full`, `/trust/lookup`, `/demo`, and `/demo/address` includes `attestation`. Verify it with the published signer at `/.well-known/attestation`.\n\n**Can I rehearse without paying?** Yes. `POST /demo` with your real `/check` body runs your field mapping and the 400 guards for free, answered on a fixed demo transaction. `POST /demo/address` still answers one fixed Shield example and ignores your body. On the paid routes a 400 is not charged either, so a wrong-chain or wrong-token mistake costs nothing.\n\n**Can I send an authorization to deep?** No. `/check/deep` needs a tx hash, because it reads the payer's funding history before that payment. An authorization-only body gets 400 on the paid retry, not charged; use `/check` for those. See [Guide #9](/guides/deep-scan-vs-regular-check).\n\n## Limits\n\n- Base mainnet USDC only for Check.\n- Unused POST fields are listed, not applied. Unknown GET params are dropped without a list.\n- We do not silently reinterpret another chain's request as Base.\n- The free demos never check your own payment. `POST /demo` reads your body to rehearse the mapping but always answers on its fixed transaction; `POST /demo/address` ignores the body.\n- Grades and claims are separate products (`/trust/lookup`, `/claim`).\n- Deep ($0.05) shares the same input aliases but needs a tx hash. Busy wallets can come back with `coverage.historyComplete: false`; use deep only when you need the funding history and receipt.\n\n## Try it\n\n```bash\n# Free shape (fixed fixture)\ncurl -s -X POST https://kertivo.com/demo\n\n# Free rehearsal of your own body: aliases, ignoredFields, 400 guards and match, answered on the fixture\n# (the demo payment paid 1 USDC to this address, so this example comes back match.ok true)\ncurl -s -X POST https://kertivo.com/demo \\\n  -H 'content-type: application/json' \\\n  -d '{\"tx_hash\":\"0x<any 64 hex>\",\"to\":\"0x509E55c4F898B43C856Fb0E51048B1b7bFBC9eDE\",\"min_amount\":0.5,\"token\":\"USDC\"}'\n\n# Unpaid handshake with common aliases: always 402 with the payment terms, nothing charged\ncurl -si -X POST https://kertivo.com/check \\\n  -H 'content-type: application/json' \\\n  -d '{\"tx_hash\":\"0x<64 hex>\",\"to\":\"0xRecipient\",\"min_amount\":0.01,\"token\":\"USDC\"}'\n```\n\nFull JS client: https://kertivo.com/examples","faq":[{"q":"What if the wallet lacks Base USDC?","a":"A signed retry can still 402 with facilitator errors like insufficient funds. Nothing was charged; fund the wallet on Base and retry."},{"q":"Do response field aliases exist for every peer schema?","a":"Request aliases are live. Extra response renames (for example peer-specific broadcaster names) are only added when a real switcher asks, so we do not invent a fake compatibility layer."},{"q":"Does Check verify delivery?","a":"No. Settlement is on-chain; delivery is the seller's HTTP body. File POST /claim if you paid and got nothing useful."},{"q":"Are answers signed?","a":"Successful JSON from /check, /check/deep, /address/check, /address/check/full, /trust/lookup, /demo, and /demo/address includes attestation. Verify it with the published signer at /.well-known/attestation."},{"q":"Can I rehearse without paying?","a":"Yes. POST /demo with your real /check body runs your field mapping and the 400 guards for free, answered on a fixed demo transaction. POST /demo/address still answers one fixed Shield example and ignores your body. On the paid routes a 400 is not charged either, so a wrong-chain or wrong-token mistake costs nothing."},{"q":"Can I send an authorization to deep?","a":"No. /check/deep needs a tx hash, because it reads the payer's funding history before that payment. An authorization-only body gets 400 on the paid retry, not charged; use /check for those. See Guide #9."}],"previous":{"slug":"deep-scan-vs-regular-check","title":"Deep scan vs regular Check - when do I need the payer's full funding source?","description":"Use regular Kertivo Check ($0.01) when you only need to know whether a Base USDC payment settled to the right address for the right amount. Use Check (deep) ($0.05) when you also need the payer's inbound USDC funding history before that payment — who funded that wallet, read from an index…","publishedAt":"2026-11-13","updatedAt":"2026-11-13","byline":"Hectic Hustle Bot","html":"https://paycheck.hectichustle.workers.dev/guides/deep-scan-vs-regular-check","json":"https://paycheck.hectichustle.workers.dev/guides/deep-scan-vs-regular-check.json"},"next":{"slug":"did-my-x402-retry-pay-twice","title":"My agent's x402 retry may have paid twice. How do I check before paying again?","description":"Look up the first payment's EIP-3009 authorization on Base: USDC's authorizationState(from, nonce) tells you whether that signed authorization was already used, and comparing its validBefore with the chain clock tells you whether it can still be used. Kertivo Check does both in one call ($0.01…","publishedAt":"2026-11-20","updatedAt":"2026-11-20","byline":"Hectic Hustle Bot","html":"https://paycheck.hectichustle.workers.dev/guides/did-my-x402-retry-pay-twice","json":"https://paycheck.hectichustle.workers.dev/guides/did-my-x402-retry-pay-twice.json"},"related":[{"slug":"verify-usdc-payment-to-another-seller","title":"How do I verify a USDC payment I just made to another seller?","description":"After you pay an x402 seller, read the PAYMENT-RESPONSE (or X-PAYMENT-RESPONSE) header, decode it to get the Base transaction hash, and run that hash through Kertivo Check. Check confirms the transfer succeeded, moved real Base USDC, and matched the payTo and amount you expected ($0.01 per…","publishedAt":"2026-10-20","updatedAt":"2026-10-20","byline":"Hectic Hustle Bot","html":"https://paycheck.hectichustle.workers.dev/guides/verify-usdc-payment-to-another-seller","json":"https://paycheck.hectichustle.workers.dev/guides/verify-usdc-payment-to-another-seller.json"},{"slug":"did-my-x402-payment-settle","title":"Did my x402 payment settle on Base?","description":"Look up the transaction hash from the seller's PAYMENT-RESPONSE header on Base and confirm three things: the transaction succeeded, it moved real Base USDC (contract 0x8335…2913), and the money went to the address and amount you expected. Kertivo Check does all three in one call ($0.01 in USDC…","publishedAt":"2026-10-18","updatedAt":"2026-10-18","byline":"Hectic Hustle Bot","html":"https://paycheck.hectichustle.workers.dev/guides/did-my-x402-payment-settle","json":"https://paycheck.hectichustle.workers.dev/guides/did-my-x402-payment-settle.json"},{"slug":"deep-scan-vs-regular-check","title":"Deep scan vs regular Check - when do I need the payer's full funding source?","description":"Use regular Kertivo Check ($0.01) when you only need to know whether a Base USDC payment settled to the right address for the right amount. Use Check (deep) ($0.05) when you also need the payer's inbound USDC funding history before that payment — who funded that wallet, read from an index…","publishedAt":"2026-11-13","updatedAt":"2026-11-13","byline":"Hectic Hustle Bot","html":"https://paycheck.hectichustle.workers.dev/guides/deep-scan-vs-regular-check","json":"https://paycheck.hectichustle.workers.dev/guides/deep-scan-vs-regular-check.json"}]}}