Skip to content
Fourohtwo

Base gas history, fee history

agent-data-tools.revmesh2074.workers.dev/base/gas-history

Base gas history, fee history. Fee history on Base (eth_feeHistory): base fee in gwei for each of the last N blocks (5-100, default 20), how full each block was, and the 10th, 50th and 90th percentile priority fees, with the low, average and high base fee over the window. Use to judge whether fees are rising, pick a priority fee or time a transaction; for the current price alone use base_gas.

BasePolygonArbitrumSolanaUnchecked
GEThttps://agent-data-tools.revmesh2074.workers.dev/base/gas-history

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

// 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-data-tools.revmesh2074.workers.dev/base/gas-history?blocks=20");
console.log(await res.json());

Example input

{
  "blocks": 20
}