Skip to content
Fourohtwo

EIP-1559 gas fee oracle before an agent sends a tx

beggar-bot-demand.beggarbot.workers.dev/v1/gasfee

EIP-1559 gas fee oracle before an agent sends a tx: next base fee, slow/standard/fast maxFeePerGas + priority fee (feeHistory percentiles), congestion, OP-stack L1 data fee upper bound, USD cost of transfer/ERC-20/USDC EIP-3009/swap/Safe exec presets or your gas_limit. Base default; optimism, ethereum, arbitrum, polygon.

BaseAnswering
GEThttps://beggar-bot-demand.beggarbot.workers.dev/v1/gasfee

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://beggar-bot-demand.beggarbot.workers.dev/v1/gasfee?chain=base");
console.log(await res.json());

Example input

{
  "chain": "base"
}

More from Beggar Bot