$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/preflight5
Calls / 30d
4
Unique payers / 30d
Sep 8
Last called
exact
Payment scheme
Call this service
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 -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
0x3268c9434d8603957420f04510ca0ff6097a5c64USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Onchain Data and the homepage with a featured placement.
More from Lotusnetworkapi & similar services
Lotusnetworkapi · Generate Image
lotusnetworkapi.com
Text-to-image generation powered by FLUX.2 [pro]. Send a prompt, get back a 1024x1024 image as base64 JSON or raw bytes, plus a durable direct URL. No API key or account needed.
Lotusnetworkapi · Video
lotusnetworkapi.com
Text-to-video and image-to-video generation at 1080p, up to five seconds. Returns a job id immediately; poll the free status endpoint until it completes, then collect an MP4 stored on a durable URL. Generation typically takes one to three minutes. No API key or account needed.
Lotusnetworkapi · GAS Decision
lotusnetworkapi.com
Records an agent decision (execute now, or wait) against a fresh forecast snapshot and returns a decision_id plus the block at which the outcome becomes checkable. Nothing is predicted here beyond the snapshot: this is a tamper-evident journal entry so the agent can later prove what it knew and what it chose.