Sonic gas price
agent-data-tools.revmesh2074.workers.dev/sonic/gas
Sonic gas price. Current gas price on Sonic (eth_gasPrice): gas price, base fee and suggested priority fee in gwei, plus what a plain S transfer (21,000 gas) costs right now. Takes no input. Use before sending a transaction or to decide whether to wait; for the fee a past transaction actually paid use sonic_receipt.
GET
https://agent-data-tools.revmesh2074.workers.dev/sonic/gasUptimeNot checked yet
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://agent-data-tools.revmesh2074.workers.dev/sonic/gas");
console.log(await res.json());Example input
{}