How should an agent integrate Kertivo Check without silent wrong answers?

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.

Who this is for

The safe integration pattern

  1. 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).
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

Aliases that map cleanly

Your field (POST body)Kertivo meaning
txHash / tx_hash / hash / transaction / transactionHash / transaction_hashTransaction to verify
expectedPayTo / to / recipient / payTo / pay_to / payeeExpected payTo
expectedAmount / amount / value / expected_amountExact amount match
minAmount / min_amount / min / minimum_amount / minimumAmount / amount_minFloor (payment may be larger)
expectedPayer / payer / from / expected_payer / expectedFrom / expected_fromExpected payer when verifying by tx hash
chain / network / chainIdMust be Base mainnet (base, eip155:8453, 8453); else 400
token / asset / currencyMust be USDC, USD Coin, or the Base USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913; else 400

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.

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.

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.

GET: same aliases, but no ignoredFields

GET 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.

What lands in ignoredFields (and what does not)

On 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.

What is not silently ignored:

If 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).

Shield vs Check (do not mix the jobs)

JobRoutePrice
Did this payment settle?POST /check$0.01
Same, plus the payer's funding history before that payment (needs a tx hash)POST /check/deep$0.05
Is this recipient a lookalike before I send? (recent window)POST /address/check$0.001
Same, with the sender's history from an indexPOST /address/check/full$0.005
Free Check shape, or a rehearsal of your own /check body on a fixed transactionPOST /demo$0
Free Shield shape (contacts-only fixture)POST /demo/address$0

Shield 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.

FAQ

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.

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.

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.

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.

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.

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.

Limits

Try it

# Free shape (fixed fixture)
curl -s -X POST https://kertivo.com/demo

# Free rehearsal of your own body: aliases, ignoredFields, 400 guards and match, answered on the fixture
# (the demo payment paid 1 USDC to this address, so this example comes back match.ok true)
curl -s -X POST https://kertivo.com/demo \
  -H 'content-type: application/json' \
  -d '{"tx_hash":"0x<any 64 hex>","to":"0x509E55c4F898B43C856Fb0E51048B1b7bFBC9eDE","min_amount":0.5,"token":"USDC"}'

# Unpaid handshake with common aliases: always 402 with the payment terms, nothing charged
curl -si -X POST https://kertivo.com/check \
  -H 'content-type: application/json' \
  -d '{"tx_hash":"0x<64 hex>","to":"0xRecipient","min_amount":0.01,"token":"USDC"}'

Full JS client: https://kertivo.com/examples