Skip to content
Fourohtwo

Multi-chain EVM gas price oracle for AI agents

evm-gas.apitoll.cloud/v1/evm/gas

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

BaseAnswering
GEThttps://evm-gas.apitoll.cloud/v1/evm/gas

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
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"
}