base-onchain-data
x402-paid

Base gas price and fee suggestions

Changed on

Next-block base fee, priority-fee p25/p50/p90 over the last 20 blocks, slow, normal and fast maxFeePerGas suggestions, L1 data-fee upper bounds and total cost estimates for an ETH and an ERC-20 transfer, live from Base RPC. 0.0015 USDC on Base; a failed read is not charged. Estimates, not inclusion guarantees.

get/api/x402/base/gas

Request

  • Base URL: https://ontarioprotocol.com
  • URL: https://ontarioprotocol.com/api/x402/base/gas
  • Auth: none required

Query parameters

blocksinteger

Optional number of recent blocks the fee percentiles cover, 5 to 50. Default 20.

Response

Successful live read; the payment settled

base_fee_weistring required
blockinteger required
estimate_includes_l1_feeboolean
l1_fee_upper_bound_weiobject nullable required
network'eip155:8453' required
read_atstring required
schema'ontario.base_gas.v1' required
source'Base RPC' required

Changes