Data tools / On-chain reads and wallet balances
Use when you need the current gas price before signing a transaction: EIP-1559 base fee of the next block plus slow, standard and fast priority-fee estimates and maxFeePerGas in gwei, computed from eth_feeHistory of the last 20 blocks on Ethereum (default) or Base, with block number and time. $0.02 per call (USDC or USDT). Or pay by stablecoin transfer with a one-time quote: see /pay.
&payfirst=1 to the call, send exactly the amount it names (about $0.02 plus a few millionths of a dollar), then repeat the call with "e=<token>. A transfer without a quote token is never matched to a call; see /pay.curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/v1/gas-oracle?chain=ethereum'| Parameter | Required | What it is |
|---|---|---|
chain | no | ethereum (default) or base |
Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.
Top-level fields of the JSON answer, read from the example below:
count (number)items (list): type, chain, chain_id, unit, baseFeePerGas, base_fee_per_gas_wei, base_fee_for_block, estimates, block_number, block_timequery_time_ms (number)checked_at (string)note (string)errors (list){
"count": 1,
"items": [
{
"type": "gas_oracle",
"chain": "ethereum",
"chain_id": 1,
"unit": "gwei",
"baseFeePerGas": 0.219353678,
"base_fee_per_gas_wei": "219353678",
"base_fee_for_block": 26536793,
"estimates": [
{
"tier": "slow",
"percentile": 10,
"price": 0.21935525,
"maxPriorityFeePerGas": 0.000001572,
"maxFeePerGas": 0.438708928,
"price_wei": "219355250",
"max_priority_fee_per_gas_wei": "1572",
"max_fee_per_gas_wei": "438708928",
"blocks_used": 20
},
{
"tier": "standard",
"percentile": 50,
"price": 0.26633441,
"maxPriorityFeePerGas": 0.046980732,
"maxFeePerGas": 0.485688088,
"price_wei": "266334410",
"max_priority_fee_per_gas_wei": "46980732",
"max_fee_per_gas_wei": "485688088",
"blocks_used": 20
},
{
"tier": "fast",
"percentile": 90,
"price": 1.719353678,
"maxPriorityFeePerGas": 1.5,
"maxFeePerGas": 1.938707356,
"price_wei": "1719353678",
"max_priority_fee_per_gas_wei": "1500000000",
"max_fee_per_gas_wei": "1938707356",
"blocks_used": 20
}
],
"block_number": 26536792,
"block_time": "2026-12-01T17:35:23.000Z",
"latest_block_base_fee_wei": "201196270",
"blocks_sampled": 20,
"blocks_with_transactions": 20,
"oldest_block": 26536773,
"raw": {
"baseFeePerGas": [
"0xd13124e"
],
"gasUsedRatio": [
0.47910678333333334
],
"reward": [
[
"0x8dbcb",
"0x3ab6a7b",
"0x77359400"
]
],
"rewardPercentiles": [
10,
50,
90
]
},
"source": {
"node": "eth.drpc.org",
"method": "eth_feeHistory",
"block_node": "eth.drpc.org"
}
}
],
"query_time_ms": 808,
"checked_at": "2026-12-01T17:35:26.926Z",
"note": "Computed by P0 from eth_feeHistory of the last 20 blocks on a public node (no third-party estimator): base fee of the next block; each tier = median over those blocks of the 10th / 50th / 90th percentile priority fee (empty blocks left out); maxFe…Free sample, no payment: /v1/gas-oracle/sample. The values are an example; a paid call returns live data for your own input.
Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/evm-wallet-onchain, tool gas_oracle. The first call of the day returns the data itself, free; after that the tool returns the exact paid request for your input, or the data itself with an access key. The core tools are also on https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp, and any tool can be called there by name.
Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools · Trust and limits