A

Ai Rook · GAS Tracker

by Ai Rook

GETBaseSolana

$0.001

per call · USD Coin on Base

Current Base mainnet gas prices. Slow, standard, fast in gwei.

Endpoint

GET https://agents.ai-rook.com/api/gas-tracker

67

Calls / 30d

6

Unique payers / 30d

Sep 10

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://agents.ai-rook.com/api/gas-tracker", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agents.ai-rook.com/api/gas-tracker" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "elapsed_ms": 120,
  "fast_gwei": "0.02",
  "gas_price_gwei": "0.02",
  "gas_price_wei": "15000000",
  "network": "base",
  "slow_gwei": "0.02",
  "standard_gwei": "0.02"
}

Payment details

Pay to0xd5f96558fcb1f127c77c7d95eea067f526d08618
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from Ai Rook & similar services