A

ApiToll Multi-Chain EVM Gas · EVM GAS

by ApiToll Multi-Chain EVM Gas

GETBase

$0.001

per call · USD Coin on Base

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.

Endpoint

GET https://evm-gas.apitoll.cloud/v1/evm/gas

31

Calls / 30d

9

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://evm-gas.apitoll.cloud/v1/evm/gas", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://evm-gas.apitoll.cloud/v1/evm/gas?blocks=20&chain=ethereum" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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
    }
  }
}

Payment details

Pay to0xcc69d619e6053f88a4845066518f465bd06fc96c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from ApiToll Multi-Chain EVM Gas & similar services