base-onchain-data
x402-paid
Check a Base transaction or x402 settlement
Changed onStatus, block, timestamp and confirmations for one Base transaction, with its ERC-20 Transfers decoded (up to 100 listed; transfers_total gives the full count), EIP-3009 authorizations used, and match flags for an optional expected payTo and USDC amount. 0.002 USDC on Base; a hash that is not found is not charged.
get/api/x402/base/tx-check
Request
- Base URL: https://ontarioprotocol.com
- URL: https://ontarioprotocol.com/api/x402/base/tx-check
- Auth: none required
Query parameters
hashstring required
Base mainnet transaction hash.
expected_tostring
Optional payTo address the USDC transfer should reach.
expected_amountstring
Optional USDC amount in atomic units, for example 500000 for 0.5 USDC.
Response
Successful live read; the payment settled
Changes
- info
endpoint added
- info