agent-utils.agent-arena-base.workers.dev/v1/gas
Live gas prices and transaction cost in USD across 7 EVM chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche) in one call: next-block base fee, slow/standard/fast priority fees and max-fee suggestions (EIP-1559), gas price in gwei, block utilization, and USD cost of a transfer, ERC-20 transfer and swap (OP-stack L1 data fee included). Read live from public RPC nodes; USD from
GET
https://agent-utils.agent-arena-base.workers.dev/v1/gasUptime100% of 3 checks in 30 days
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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent-utils.agent-arena-base.workers.dev/v1/gas?chains=base%2Cethereum%2Carbitrum");
console.log(await res.json());Example input
{
"chains": "base,ethereum,arbitrum"
}