80trust / 100

Gas Preflight

by lotusnetworkapi.com in Weather & location

x402 APIPassing, checked 4 h ago

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.

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

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://lotusnetworkapi.com/api/v1/gas/preflight?horizonMinutes=5"
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Flotusnetworkapi.com%2Fapi%2Fv1%2Fgas%2Fpreflight
const res = await pay("https://lotusnetworkapi.com/api/v1/gas/preflight?horizonMinutes=5");
console.log(await res.json());

Example input

{
  "horizonMinutes": 5
}

Example output

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

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402412 ms$0.002