{"uid":"cap_5Y-kh-zo1Nwg6La_R6Qrw","slug":"otto-ai-base-chain-status-f5e5e3d0","name":"Otto AI Base Chain Status","description":"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.","url":"https://x402.ottoai.services/chain-status","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"safe":{"blockNumber":50738532,"blockTimeIso":"2026-09-01T12:00:11.000Z","gasUsedRatio":0.1893,"blockTimestamp":1788266411,"baseFeePerGasWei":"5000000","baseFeePerGasGwei":0.005},"chain":"base","latest":{"blockNumber":50738555,"blockTimeIso":"2026-09-01T12:00:57.000Z","gasUsedRatio":0.1088,"blockTimestamp":1788266457,"baseFeePerGasWei":"5000000","baseFeePerGasGwei":0.005},"chainId":8453,"pending":{"note":"in-progress block (Flashblocks preconfirmation head); hash is not yet final","blockNumber":50738556,"blockTimeIso":"2026-09-01T12:00:59.000Z","gasUsedRatio":0.0413,"blockTimestamp":1788266459,"baseFeePerGasWei":"5000000","baseFeePerGasGwei":0.005},"finalized":{"blockNumber":50738081,"blockTimeIso":"2026-09-01T11:45:09.000Z","gasUsedRatio":0.0825,"blockTimestamp":1788265509,"baseFeePerGasWei":"5000000","baseFeePerGasGwei":0.005},"congestion":"low","blockAgeSec":3,"generatedAt":"2026-09-01T12:01:00.000Z","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.","finalityLagSec":948,"finalityLagBlocks":474,"pendingLeadBlocks":1},"meta":{"degraded":false,"validUntil":"","generatedAt":"","stalenessSec":0},"status":"success"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iF1_7BR987Sgn4J9oeQP6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the four key block heads on Base (latest, safe, L1-finalized, pending Flashblocks) with base fee, congestion level, block age, and finality lag metrics.","exampleAgentPrompt":"What's the current state of the Base chain — give me the latest, safe, and finalized block numbers, the current base fee in gwei, and whether the network is congested right now.","exampleUseCases":[{"title":"Pre-trade gas check for DeFi bot","prompt":"Before I submit this swap on Base, check what the current base fee is and whether the network is congested — I only want to transact if gas is low."},{"title":"Finality lag monitor for bridge withdrawal","prompt":"I'm waiting for a bridge withdrawal from Base to Ethereum — tell me how far behind the L1-finalized block is from the latest block right now so I know how long to expect."},{"title":"Chain health dashboard for agentic DeFi system","prompt":"Pull the current Base chain status for my dashboard — I need the latest block number, block age, congestion level, and the finality lag in both seconds and blocks."}],"resultDescription":"A flat JSON object with four block head objects (latest, safe, finalized, pending), each containing block number, ISO timestamp, Unix timestamp, gas used ratio, base fee in wei and gwei. Top-level fields include chain name, chain ID, congestion label (e.g. 'low'), block age in seconds, finality lag in seconds and blocks, pending lead blocks, a human-readable finality note, and a meta object with staleness info and degraded flag.","failureModes":["RPC unavailable: upstream Base RPC node unreachable, returns degraded flag in meta","Stale data: cache not refreshed within expected window, stalenessSec elevated","Invalid response: malformed JSON if Otto service is down","Payment failure: x402 payment not accepted, returns 402 without data"],"whenToPreferThis":"Choose this endpoint when you need a single, pre-parsed snapshot of all four Base block heads simultaneously — especially when you need to compare latest vs safe vs finalized vs pending in one call. Prefer over raw RPC eth_blockNumber calls when you need finality lag, congestion label, and Flashblocks pending head together without writing multi-call aggregation logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:21.988Z","isFirstParty":false}