base-onchain-data
x402-paid

Check a Base transaction or x402 settlement

Changed on

Status, 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

blockinteger required
confirmationsinteger required
fromstring nullable
hashstring required
network'eip155:8453' required
schema'ontario.base_tx_check.v1' required
source'Base RPC' required
status'success' | 'reverted' required
timestampstring nullable required
timestamp_notestring
tostring nullable
usdc_paymentobject nullable

Changes