L

Lotusnetworkapi · GAS Preflight

by Lotusnetworkapi

GETBase

$0.002

per call · USD Coin on Base

Read-only Base L2 gas conditions computed directly from chain data: current base fee, recent percentiles, realised volatility, congestion state, and an 80% forecast range for a chosen horizon. This is supporting context for timing a transaction, not a trade instruction. Every figure is reproducible from public Base RPC data.

Endpoint

GET https://lotusnetworkapi.com/api/v1/gas/preflight

5

Calls / 30d

4

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://lotusnetworkapi.com/api/v1/gas/preflight", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://lotusnetworkapi.com/api/v1/gas/preflight?horizonMinutes=5" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "block": 24881003,
  "chain": "base-mainnet",
  "current": {
    "baseFeeGwei": 0.0142,
    "congestion": "calm",
    "gasUsedRatio": 0.31
  },
  "forecast": {
    "centerGwei": 0.0139,
    "highGwei": 0.0182,
    "horizonMinutes": 5,
    "interval": 0.8,
    "lowGwei": 0.0106,
    "method": "mean-reverting log random walk on realised block volatility",
    "targetBlock": 24881153
  },
  "observedAt": "2026-07-30T04:12:00.000Z",
  "recent": {
    "blocks": 300,
    "medianGwei": 0.0138,
    "p10Gwei": 0.0119,
    "p90Gwei": 0.0181,
    "volatility": 0.041
  },
  "success": true
}

Payment details

Pay to0x3268c9434d8603957420f04510ca0ff6097a5c64
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 Lotusnetworkapi & similar services