Skip to content
Fourohtwo

agents.crowdspark.me/v1/chain/gas

Gas estimate and fee quote for Base, Ethereum, Optimism, Arbitrum and Polygon: eth_estimateGas for your transaction (to, from, value, data) or a plain transfer if no 'to', current base fee, slow/standard/fast priority tips from recent blocks, max fee suggestions, L1 data fee on OP-stack chains and total cost in native coin and USD (Chainlink price). Reports reverts instead of failing. Use before s

BaseAnswering
GEThttps://agents.crowdspark.me/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://agents.crowdspark.me/v1/chain/gas?to=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&data=0x70a082310000000000000000000000000dea0030a17bf886543a757c55924710258c2eec&from=0x0dEA0030A17BF886543a757c55924710258c2eec&chain=base");
console.log(await res.json());

Example input

{
  "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "data": "0x70a082310000000000000000000000000dea0030a17bf886543a757c55924710258c2eec",
  "from": "0x0dEA0030A17BF886543a757c55924710258c2eec",
  "chain": "base"
}

More from Agent Tools