Skip to content
Fourohtwo

api.agentmercantile.com/v1/transaction-gas-preflight

Return bounded factual eth_estimateGas units and recent eth_feeHistory execution-fee evidence for one unsigned Ethereum or Base transaction. Not execution, signing, custody, trading, or a guaranteed final cost. Call when you need point-in-time gas units and recent execution-fee context before signing or submitting.

BaseAnswering
POSThttps://api.agentmercantile.com/v1/transaction-gas-preflight

Uptime100% of 2 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://api.agentmercantile.com/v1/transaction-gas-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"chain":"eip155:8453","data":"0x","to":"0x0000000000000000000000000000000000000001","value_wei":"0"}),
});
console.log(await res.json());

Example input

{
  "chain": "eip155:8453",
  "data": "0x",
  "to": "0x0000000000000000000000000000000000000001",
  "value_wei": "0"
}

More from Agent MercantileProvider status