Multi-chain EVM gas price oracle for AI agents — 17 chains (Ethereum, Base, Arbitrum, Opti
Multi-chain EVM gas price oracle for AI agents — 17 chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB, Avalanche…). One x402 call returns slow/standard/fast EIP-1559 tiers as DROP-IN maxFeePerGas + maxPriorityFeePerGas in wei (plug straight into a viem/ethers tx, no conversion, exact even on sub-gwei L2s), plus base fee, head block, and fullness, from a live eth_feeHistory call. Pass ?chain= to switch chains.
1000 (raw units)
price
12
calls / 30d
9
unique payers
2026-09-14
updated
Provider
evm-gas.apitoll.cloud · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xcc69d619E6053F88A4845066518f465bD06Fc96c",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"blocks": 20,
"chain": "ethereum"
},
"type": "http"
},
"output": {
"example": {
"base_fee_gwei": 8.421,
"base_fee_wei": "8421000000",
"block_number": 21403217,
"caip2": "eip155:1",
"chain": "ethereum",
"chain_name": "Ethereum mainnet",
"gas_model": "eip1559",
"stats": {
"blocks_sampled": 20,
"median_fullness_pct": 45.5,
"ts": "2026-05-28T15:42:30.000Z"
},
"tiers": {
"fast": {
"maxFeePerGas": "14831000000",
"maxPriorityFeePerGas": "2200000000",
"max_fee_gwei": 14.831,
"max_priority_gwei": 2.2
},
"slow": {
"maxFeePerGas": "12631000000",
"maxPriorityFeePerGas": "1000000",
"max_fee_gwei": 12.631,
"max_priority_gwei": 0.001
},
"standard": {
"maxFeePerGas": "13731000000",
"maxPriorityFeePerGas": "1100000000",
"max_fee_gwei": 13.731,
"max_priority_gwei": 1.1
}
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"blocks": {
"description": "Recent blocks to sample for percentile reward (1..50, clamped).",
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"chain": {
"description": "Target EVM chain id. One of: ethereum, base, optimism, arbitrum, polygon, avalanche, gnosis, linea, scroll, blast, mode, opbnb, celo, bsc, fantom, zksync, mantle. Also accepts common aliases (eth, arb, op, matic, avax, bnb). Default: ethereum.",
"enum": [
"ethereum",
"base",
"optimism",
"arbitrum",
"polygon",
"avalanche",
"gnosis",
"linea",
"scroll",
"blast",
"mode",
"opbnb",
"celo",
"bsc",
"fantom",
"zksync",
"mantle"
],
"type": "string"
}
},
"required": [
"chain"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"base_fee_gwei": {
"description": "Base fee for the next block (gwei, human-readable).",
"type": "number"
},
"base_fee_wei": {
"description": "Base fee in wei (exact, BigInt-ready decimal string).",
"type": "string"
},
"block_number": {
"type": "integer"
},
"caip2": {
"type": "string"
},
"chain": {
"enum": [
"ethereum",
"base",
"optimism",
"arbitrum",
"polygon",
"avalanche",
"gnosis",
"linea",
"scroll",
"blast",
"mode",
"opbnb",
"celo",
"bsc",
"fantom",
"zksync",
"mantle"
],
"type": "string"
},
"chain_name": {
"type": "string"
},
"gas_model": {
"enum": [
"eip1559",
"mostly-legacy",
"non-standard"
],
"type": "string"
},
"gas_note": {
"type": "string"
},
"stats": {
"properties": {
"blocks_sampled": {
"type": "integer"
},
"median_fullness_pct": {
"type": "number"
},
"ts": {
"format": "date-time",
"type": "string"
}
},
"type": "object"
},
"tiers": {
"description": "Slow (p10) / standard (p50) / fast (p90) EIP-1559 fee tiers. Each carries human gwei (max_fee_gwei/max_priority_gwei) AND DROP-IN wei (maxFeePerGas/maxPriorityFeePerGas, BigInt-ready) to plug straight into a viem/ethers tx.",
"properties": {
"fast": {
"properties": {
"maxFeePerGas": {
"type": "string"
},
"maxPriorityFeePerGas": {
"type": "string"
},
"max_fee_gwei": {
"type": "number"
},
"max_priority_gwei": {
"type": "number"
}
},
"type": "object"
},
"slow": {
"properties": {
"maxFeePerGas": {
"type": "string"
},
"maxPriorityFeePerGas": {
"type": "string"
},
"max_fee_gwei": {
"type": "number"
},
"max_priority_gwei": {
"type": "number"
}
},
"type": "object"
},
"standard": {
"properties": {
"maxFeePerGas": {
"type": "string"
},
"maxPriorityFeePerGas": {
"type": "string"
},
"max_fee_gwei": {
"type": "number"
},
"max_priority_gwei": {
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://evm-gas.apitoll.cloud/v1/evm/gas" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://evm-gas.apitoll.cloud/v1/evm/gas");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://evm-gas.apitoll.cloud/v1/evm/gas")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1191.json, and this resource appears in /discovery/resources and /discovery/search.