{"uid":"cap_1mF3Jm01jQzc0O7xxQI4Z","slug":"base-blockchain-latest-block-info-5d3ca94d","name":"Base Blockchain Latest Block Info","description":"Get the latest Base block with its age in seconds, base fee and gas used. The latest Base block: number, hash, timestamp, age in seconds (so you know the node is not lagging), base fee, gas used. Public RPC, no key. Query: none.","url":"https://api.x-402.online/v1/chain/block?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xlEGs41rHdmUFuXtGyiJ0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest Base L2 block number, hash, timestamp, age in seconds, base fee, and gas used — no API key required.","exampleAgentPrompt":"What's the latest block on Base right now — give me the block number, how old it is, the base fee, and how much gas was used?","exampleUseCases":[{"title":"Check Base node liveness","prompt":"Is the Base node I'm using up to date? Tell me the latest block number and how many seconds ago it was produced."},{"title":"Monitor current Base gas fees","prompt":"What's the current base fee on Base so I can decide whether to send my transaction now or wait for cheaper gas?"},{"title":"Log Base chain stats for dashboard","prompt":"Pull the latest Base block details — number, hash, timestamp, base fee, and gas used — so I can update my blockchain monitoring dashboard."}],"resultDescription":"A JSON object containing the latest Base L2 block's number, hash, Unix timestamp, age in seconds since the block was produced, base fee (in wei or gwei), and total gas used. The age in seconds is especially useful for detecting whether the node is lagging.","failureModes":["Node temporarily unavailable returns 5xx error","Stale data if underlying Base RPC is lagging (detectable via age field being large)","Payment failure (402) if USDC balance is insufficient","Rate limiting if too many requests in quick succession"],"whenToPreferThis":"Use this endpoint when you need a quick, no-auth, pay-per-call lookup of the latest Base block with node-freshness verification (age field). Prefer it over self-managing a Base RPC connection when you want a lightweight, agent-friendly REST call rather than a raw JSON-RPC interface. Ideal for agents that need to check gas conditions or confirm chain liveness before submitting a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T00:39:37.642Z","isFirstParty":false,"canonicalSlug":"base-blockchain-latest-block-info-5d3ca94d"}