Skip to content
Fourohtwo

api.kit-rx.com/v1/chain/gas

Live gas fees and estimated USD transaction costs on Base, Ethereum, Arbitrum, OP Mainnet, Polygon and Avalanche: base fee and next-block estimate, priority fee p25/p50/p75 over 10 blocks, gas price, 10-block base-fee trend, suggested max fee, and USD cost of a native transfer, ERC-20 transfer and swap (upper-bound rollup L1 fees included), plus the cheapest chain per action. Sources: JSON-RPC via

BaseAvalancheSeiAnswering
GEThttps://api.kit-rx.com/v1/chain/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://api.kit-rx.com/v1/chain/gas?speed=standard&chains=base%2Cethereum%2Cpolygon");
console.log(await res.json());

Example input

{
  "speed": "standard",
  "chains": "base,ethereum,polygon"
}

More from Kit Rx