Skip to content
Fourohtwo

Estimate gas, Gnosis

agent-data-tools.revmesh2074.workers.dev/gnosis/estimate-gas

Estimate gas, Gnosis. Estimate the gas a transaction would use on Gnosis (eth_estimateGas) and what it would cost at the current gas price, in gas units, gwei and xDAI. Give to, plus value in xDAI and calldata for a contract call, and the sender when the call depends on it. Use before sending a transaction or to price a batch; for the gas price alone use gnosis_gas. A transaction that would revert

BasePolygonArbitrumSolanaAnswering
GEThttps://agent-data-tools.revmesh2074.workers.dev/gnosis/estimate-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://agent-data-tools.revmesh2074.workers.dev/gnosis/estimate-gas?to=0x000000000000000000000000000000000000dEaD");
console.log(await res.json());

Example input

{
  "to": "0x000000000000000000000000000000000000dEaD"
}