Skip to content
Fourohtwo

Gas oracle for Base, Ethereum, Arbitrum, Optimism and Polygon

x402-toolbox.vercel.app/gas

Gas oracle for Base, Ethereum, Arbitrum, Optimism and Polygon: next base fee, slow, standard and fast priority-fee tiers (median of the last 10 blocks), max fee per gas, and the cost of a 21000-gas transfer in native coin and USD via Chainlink. Sorted cheapest first. Not charged for bad input or when every chain fails. No API key.

BaseAnswering
GEThttps://x402-toolbox.vercel.app/gas

Uptime100% of 1 check 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

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://x402-toolbox.vercel.app/gas?chains=base%2Cethereum");
console.log(await res.json());

Example input

{
  "chains": "base,ethereum"
}

More from Gas Price Oracle