A

Agenttoll · GAS

by Agenttoll

GETBase

$0.001

per call · USD Coin on Base

Base gas price check: the current gas price and latest block number; add ?gasLimit=150000 to also get what a transaction that size costs in ETH and USD

Endpoint

GET https://agenttoll.app/api/gas

9

Calls / 30d

7

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agenttoll.app/api/gas", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agenttoll.app/api/gas?gasLimit=150000" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "at": "2026-08-05T13:32:13.596Z",
  "chain": "base",
  "estimate": {
    "ethCost": 9.06263e-7,
    "ethUsd": 1867.28,
    "gasLimit": 150000,
    "usdCost": 0.001692
  },
  "gasPriceGwei": 0.006041753,
  "gasPriceWei": "6041753",
  "latestBlock": 49573693
}

Payment details

Pay to0xe55359021a6a22d8385b827405991c56075f56f8
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Agenttoll & similar services