{"slug":"x402-halowerk-com-reconcile-31bd5c","title":"Reads all incoming ERC-20 transfers of one token to one address within a block o","host":"x402.halowerk.com","method":"POST","resource":"https://x402.halowerk.com/reconcile","category":"market","description":"Reads all incoming ERC-20 transfers of one token to one address within a block or time window and matches them against the receipts you supply. Matching runs first over the transaction hash, which is the strongest link, and otherwise over amount plus payer plus a stated time tolerance; the method us","price_listed":0.008,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"address":"0x42d950fe675181f396c319c38d0a0296d710ccf6","chain":"base","receipts":[{"amount_units":"10000","receipt_id":"halowerk-audit-fixture-01"}],"window":{"from_block":38700000,"to_block":38700000}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"address":{"description":"Your receiving address whose incoming transfers should be read.","pattern":"^0x[0-9a-fA-F]{40}$","type":"string"},"asset":{"description":"Token contract address to reconcile. Defaults to the canonical USDC of that chain.","type":"string"},"chain":{"description":"Chain as CAIP-2, short name or chain id.","enum":["arb","arbitrum","arbitrum-one","avalanche","avax","base","base-mainnet","base-sepolia","basesepolia","eip155:1","eip155:10","eip155:137","eip155:42161","eip155:43114","eip155:8453","eip155:84532","eth","ethereum","ethereum-mainnet","mainnet","matic","op","op-mainnet","optimism","polygon"],"type":"string"},"receipts":{"description":"Your receipts. Each needs at least amount_units; tx_hash makes the match strong, payer and ts make the fallback match possible.","items":{"additionalProperties":false,"properties":{"amount_units":{"description":"Amount as an integer in the smallest unit of the token.","pattern":"^[0-9]{1,78}$","type":"string"},"payer":{"description":"Address you believe paid.","pattern":"^0x[0-9a-fA-F]{40}$","type":"string"},"payment_id":{"description":"Payment identifier, used to detect duplicate receipts.","maxLength":200,"type":"string"},"receipt_id":{"description":"Your own identifier for this receipt. Echoed back in every result.","maxLength":200,"type":"string"},"ts":{"description":"Unix seconds when the receipt was issued. Needed for the amount-and-time fallback match.","type":"integer"},"tx_hash":{"description":"Settlement transaction hash, if you recorded one.","pattern":"^0x[0-9a-fA-F]{64}$","type":"string"}},"required":["amount_units"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"},"time_tolerance_seconds":{"default":300,"description":"How far a receipt timestamp may sit from the block time of a payment and still match. Receipt and chain rarely carry the same second.","maximum":86400,"minimum":0,"type":"integer"},"window":{"additionalProperties":false,"properties":{"from":{"description":"Start of the window as unix seconds. Resolved to a block by reading real blocks.","type":"integer"},"from_block":{"description":"Start block. Takes precedence over from.","minimum":0,"type":"integer"},"to":{"description":"End of the window as unix seconds.","type":"integer"},"to_block":{"description":"End block. Takes precedence over to.","minimum":0,"type":"integer"}},"type":"object"}},"required":["chain","address","receipts"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Reads all incoming ERC-20 transfers of one token to one address within a block or time window and matches them against the receipts you supply. Matching runs first over the transaction hash, which is the strongest link, and otherwise over amount plus payer plus a stated time tolerance; the method used is named for every single match, so a weak match is never mistaken for a strong one. The answer lists matched pairs, receipts without a payment, payments without a receipt, amount mismatches with e","last_updated":"2026-11-25T09:57:08.515Z","schemes":["exact"]}