84trust / 100

Evm Gas

by ApiToll Multi-Chain EVM Gas in Onchain & crypto

x402 APIPassing, checked 4 h ago

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.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
152 ms typical, 152 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://evm-gas.apitoll.cloud/v1/evm/gas?blocks=20&chain=ethereum"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fevm-gas.apitoll.cloud%2Fv1%2Fevm%2Fgas
const res = await pay("https://evm-gas.apitoll.cloud/v1/evm/gas?blocks=20&chain=ethereum");
console.log(await res.json());

Example input

{
  "blocks": 20,
  "chain": "ethereum"
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402152 ms$0.001