contractlens-api.appin60.com/gas
Live EIP-1559 gas on Ethereum, Base, Arbitrum, Optimism, Polygon or BNB: base fee, slow/standard/fast priority tiers from the last 20 blocks, ready-to-use maxFeePerGas values, and estimated cost of an ETH transfer, ERC-20 transfer, approve and Uniswap swap.
GET
https://contractlens-api.appin60.com/gasUptime100% of 4 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://contractlens-api.appin60.com/gas?chainId=8453");
console.log(await res.json());Example input
{
"chainId": "8453"
}