L

Lotusnetworkapi · GAS Decision

by Lotusnetworkapi

POSTBase

$0.003

per call · USD Coin on Base

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.

Endpoint

POST https://lotusnetworkapi.com/api/v1/gas/decision

1

Calls / 30d

1

Unique payers / 30d

Aug 12

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/decision", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "horizonMinutes": 15,
    "maxFeeGwei": 0.012,
    "stance": "wait"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://lotusnetworkapi.com/api/v1/gas/decision" \
  -H "Content-Type: application/json" \
  -d '{"horizonMinutes":15,"maxFeeGwei":0.012,"stance":"wait"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "auditUrl": "https://lotusnetworkapi.com/api/v1/gas/audit/7c1f9a2b4d6e8f0a1b2c3d4e5f607182",
  "auditableAt": "2026-07-30T04:27:00.000Z",
  "decisionId": "7c1f9a2b4d6e8f0a1b2c3d4e5f607182",
  "recordedAt": "2026-07-30T04:12:00.000Z",
  "snapshot": {
    "baseFeeGwei": 0.0142,
    "highGwei": 0.0182,
    "lowGwei": 0.0106
  },
  "stance": "wait",
  "success": true,
  "targetBlock": 24881453
}

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