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
- Agents switching from peers (xhagents-style payment-verify, tanod/Verdix/dailyelo-style address tools) onto Kertivo without rewriting every key name.
- Integrators who need "wrong chain / wrong token" to fail closed, not return a quiet Base USDC answer.
- Anyone wiring
/checkinto a retry loop after decoding another seller'sPAYMENT-RESPONSE.
The safe integration pattern
- Decode, then verify. After you pay another x402 seller, read
PAYMENT-RESPONSE(orX-PAYMENT-RESPONSE), decode it, and pass.transactionas the tx hash into Check. Copy-paste: https://kertivo.com/examples (verifyLastPayment). - Rehearse the shape for free.
POST https://kertivo.com/demoreturns the paid/checkresponse 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/checkand it reads that body the way the paid route does: you get backinputAliases,ignoredFields, the same 400s for a wrong chain, wrong token or conflicting fields, andmatchandwarningscomputed from your expectations. The payment it checks is always the fixed demo transaction (any tx hash or authorization you send is replaced, andrehearsal.yourPaymentReplacedsays so), so amatch.ok: falsethere only means your expectations don't fit the demo payment. Unpaid/check402 error text also points at that demo. - Expect 402 first, whatever you send. Unpaid calls always return HTTP 402 with exact Base USDC terms (
payTo0x509E55c4F898B43C856Fb0E51048B1b7bFBC9eDE, amount10000atomic = $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. - Read
inputAliasesandignoredFields.inputAliaseslists each mapping applied (for exampletx_hash->txHash,min_amount->minAmount).ignoredFieldslists up to 20 request keys Check did not use, with anignoredNote. Do not assume an ignored key changed the answer. - Treat 400 as not charged. On the paid retry, a wrong
chain/network/chainId(anything but Base mainnet) answers 400unsupported_chain, and a wrongtoken/asset/currencyanswers 400unsupported_token. Two aliases with different values for the same meaning (saytoandrecipient) answer 400conflicting fields. None of these settle your payment, so you never get a silent Base USDC answer for an Ethereum or USDT request. - Read
matchandwarnings, not just the status.match.okis false if any expectation you sent failed (payToMatch,amountMatch,minAmountMatch,payerMatch).warningsflagsfake_token,lookalike_address,tx_reverted,no_usdc_transfer,zero_value_transfer,bridged_usdbc, andamount_looks_atomic. - Keep the whole 200 body. Successful JSON carries
attestation(EIP-191 over the body hash). Verify it later against the signer published atGET /.well-known/attestation.
Aliases that map cleanly
| Your field (POST body) | Kertivo meaning |
|---|---|
txHash / tx_hash / hash / transaction / transactionHash / transaction_hash | Transaction to verify |
expectedPayTo / to / recipient / payTo / pay_to / payee | Expected payTo |
expectedAmount / amount / value / expected_amount | Exact amount match |
minAmount / min_amount / min / minimum_amount / minimumAmount / amount_min | Floor (payment may be larger) |
expectedPayer / payer / from / expected_payer / expectedFrom / expected_from | Expected payer when verifying by tx hash |
chain / network / chainId | Must be Base mainnet (base, eip155:8453, 8453); else 400 |
token / asset / currency | Must 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:
- Wrong chain: 400
unsupported_chainon the paid retry, not charged - Wrong token: 400
unsupported_tokenon the paid retry, not charged - Two aliases that disagree: 400
conflicting fields, not charged min_amount/min: honored as a floorfromwith a tx hash: expected payer
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)
| Job | Route | Price |
|---|---|---|
| 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 index | POST /address/check/full | $0.005 |
Free Check shape, or a rehearsal of your own /check body on a fixed transaction | POST /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
- Base mainnet USDC only for Check.
- Unused POST fields are listed, not applied. Unknown GET params are dropped without a list.
- We do not silently reinterpret another chain's request as Base.
- The free demos never check your own payment.
POST /demoreads your body to rehearse the mapping but always answers on its fixed transaction;POST /demo/addressignores the body. - Grades and claims are separate products (
/trust/lookup,/claim). - 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.
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