83trust / 100

Gas

by agenttoll.app in Onchain & crypto

x402 APIPassing, checked 1 h ago

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

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
276 ms typical, 316 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttoll.app/api/gas?gasLimit=150000"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttoll.app%2Fapi%2Fgas
const res = await pay("https://agenttoll.app/api/gas?gasLimit=150000");
console.log(await res.json());

Example input

{
  "gasLimit": 150000
}

Example output

{
  "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
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402276 ms$0.001
4 h agoPassed402316 ms$0.001
7 h agoPassed402234 ms$0.001
12 h agoPassed402346 ms$0.001