onchaincheck.dev/gas/compare
Multichain gas prices right now on Base, Ethereum, Arbitrum, Optimism and Polygon, side by side: gas price, base and priority fee, USD cost of a native transfer, an ERC-20 transfer and a DEX swap (L2 L1-data fees included), the cheapest chain for each, and how each chain's gas price ranks against its own last 7 days of 10-minute samples, with the usually cheapest UTC hour. Errors return 4xx/5xx JS
GET
https://onchaincheck.dev/gas/compareUptime100% 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
// 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://onchaincheck.dev/gas/compare");
console.log(await res.json());Example input
{}