{"uid":"cap_Z6rN0ftsUealcwM4Xy7tl","slug":"saylor-innovations-evm-block-lookup-optimism-latest-block-fc7c77ab","name":"Saylor Innovations EVM Block Lookup — Optimism (Latest Block)","description":"EVM Block (optimism) — On-Chain Data","url":"https://saylorinnovations.com/api/evm/optimism/block/latest?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","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","number","hash"],"properties":{"hash":{"type":"string"},"time":{"type":"string"},"chain":{"type":"string"},"miner":{"type":"string"},"number":{"type":["number","null"]},"gas_used":{"type":["number","null"]},"tx_count":{"type":["number","null"]},"gas_limit":{"type":["number","null"]},"timestamp":{"type":["number","null"]},"base_fee_gwei":{"type":["number","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ln3Kquv_stfUuwwJ_zHWN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches on-chain data for the latest block on the Optimism EVM network, including block number, hash, timestamp, gas metrics, miner, and transaction count.","exampleAgentPrompt":"What does the latest block on the Optimism network look like right now — give me the block number, hash, gas used, base fee, and how many transactions are in it.","exampleUseCases":[{"title":"Real-time Optimism gas fee monitoring","prompt":"What's the current base fee in gwei on Optimism? I want to know if it's cheap enough to submit my transaction right now."},{"title":"DeFi app chain-tip health check","prompt":"Check the latest Optimism block and tell me the block number and timestamp — I need to confirm the chain is still producing blocks and not stalled."},{"title":"Transaction throughput dashboard","prompt":"How many transactions were included in the most recent Optimism block, and what was the gas used versus the gas limit?"}],"resultDescription":"A JSON object containing the latest Optimism block's chain identifier, block number, block hash, miner address, timestamp (Unix and ISO string), gas used, gas limit, transaction count, and base fee in gwei. Some numeric fields may be null if not available.","failureModes":["Network or RPC node unavailable — may return 5xx or timeout","Payment failure (x402) — request rejected if USDC micropayment not included or insufficient","Null numeric fields if the node is syncing or data is temporarily unavailable","Rate limiting if request volume exceeds provider thresholds"],"whenToPreferThis":"Choose this endpoint when you need real-time, current Optimism block data including gas metrics and transaction count without running your own Optimism node. It is ideal for lightweight agents that need a pay-per-call model (x402 micropayment) rather than managing API keys or subscriptions. Prefer this over generic EVM RPC endpoints when you want a clean JSON abstraction instead of raw RPC responses.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:48:32.913Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-evm-block-lookup-optimism-latest-block-fc7c77ab"}