Skip to content
Fourohtwo

Stop opening five explorers to price one transaction

x402-catalog-history.ai-business-surface.workers.dev/gas

Stop opening five explorers to price one transaction: one GET returns what each chain is charging for gas right now — for base, eth, arbitrum, optimism and polygon: the current gas price in gwei (with the raw wei the RPC returned), the latest block's base fee, the priority fee a 50th-percentile transaction actually paid across the last five blocks, the next block's base fee under the EIP-1559 form

BaseAnswering
GEThttps://x402-catalog-history.ai-business-surface.workers.dev/gas

Uptime100% 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://x402-catalog-history.ai-business-surface.workers.dev/gas?chains=base%2Ceth");
console.log(await res.json());

Example input

{
  "chains": "base,eth"
}