Otto AI · Chain Status

by Otto AI

GETBaseSolana

$0.001

per call · USD Coin on Base

Base chain status from Otto's own RPC: the four heads an agent needs before it acts — latest (~2s soft), safe, L1-finalized and the pending Flashblocks preconfirmation head — with base fee (wei+gwei), congestion, block age and the finality lag between them. Makes the Base pending-vs-latest gap explicit. Flat JSON, refreshed every minute, honest staleness meta. Base chain status, block height, base fee, finality, chain health. $0.001 per call.

Endpoint

GET https://x402.ottoai.services/chain-status

4

Calls / 30d

3

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://x402.ottoai.services/chain-status", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.ottoai.services/chain-status" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "blockAgeSec": 3,
    "chain": "base",
    "chainId": 8453,
    "congestion": "low",
    "finalityLagBlocks": 474,
    "finalityLagSec": 948,
    "finalityNote": "Base is an OP-Stack L2: ~2s soft-confirmed blocks (latest), L2-safe once the sequencer batch is submitted (safe), and L1-finalized after that batch is finalized on Ethereum (finalized, ~15 min behind). `pending` is the Flashblocks preconfirmation head.",
    "finalized": {
      "baseFeePerGasGwei": 0.005,
      "baseFeePerGasWei": "5000000",
      "blockNumber": 50738081,
      "blockTimeIso": "2026-09-01T11:45:09.000Z",
      "blockTimestamp": 1788265509,
      "gasUsedRatio": 0.0825
    },
    "generatedAt": "2026-09-01T12:01:00.000Z",
    "latest": {
      "baseFeePerGasGwei": 0.005,
      "baseFeePerGasWei": "5000000",
      "blockNumber": 50738555,
      "blockTimeIso": "2026-09-01T12:00:57.000Z",
      "blockTimestamp": 1788266457,
      "gasUsedRatio": 0.1088
    },
    "pending": {
      "baseFeePerGasGwei": 0.005,
      "baseFeePerGasWei": "5000000",
      "blockNumber": 50738556,
      "blockTimeIso": "2026-09-01T12:00:59.000Z",
      "blockTimestamp": 1788266459,
      "gasUsedRatio": 0.0413,
      "note": "in-progress block (Flashblocks preconfirmation head); hash is not yet final"
    },
    "pendingLeadBlocks": 1,
    "safe": {
      "baseFeePerGasGwei": 0.005,
      "baseFeePerGasWei": "5000000",
      "blockNumber": 50738532,
      "blockTimeIso": "2026-09-01T12:00:11.000Z",
      "blockTimestamp": 1788266411,
      "gasUsedRatio": 0.1893
    }
  },
  "meta": {
    "degraded": false,
    "generatedAt": "",
    "stalenessSec": 0,
    "validUntil": ""
  },
  "status": "success"
}

Payment details

Pay to0x0e84ddedaae6a779c462c22a59f301ec31b6b808
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 Otto AI & similar services