Verify a Base USDC payment (paid, x402)
verify_usdc_paymentVerify a Base (mainnet, default) or Base Sepolia transaction is a successful, confirmed transfer of native Circle USDC (not a look-alike token) to an expected recipient for an exact or minimum amount. Checks receipt status, canonical block, confirmations, optional payer, notBefore/maxAge windows; returns verdict valid|invalid|pending|not_found with machine-readable reasons and the matched Transfer log. Not charged on 4xx/5xx errors. PAID: 0.01 USD in USDC per successful call via x402 (eip155:8453). Malformed input is rejected before payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain of the tx being verified (default base) | |
| txHash | Yes | 0x-prefixed 32-byte transaction hash | |
| notBefore | No | Unix seconds; reject txs mined earlier (anti-replay) | |
| expectedTo | Yes | Recipient that must receive USDC | |
| amountMatch | No | exact (default) or atLeast | |
| expectedFrom | No | Optional required payer | |
| maxAgeSeconds | No | Reject txs older than this many seconds | |
| expectedAmount | No | Decimal USDC, max 6 decimals, e.g. "0.10" (or expectedAmountAtomic) | |
| minConfirmations | No | Default 3 | |
| expectedAmountAtomic | No | Integer atomic units (1 USDC = 1000000) |