{"uid":"cap_Oqc77LW-u7gB_ufU3oWzB","slug":"phantom-api-optimism-latest-block-2fcff021","name":"Phantom API — Optimism Latest Block","description":"Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.","url":"https://phantom-api-omega.vercel.app/api/optimism/block/latest","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OQFs2Bij93FcmTi31CQ2V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the most recent block data from the Optimism (OP Mainnet) blockchain in real time.","exampleAgentPrompt":"What's the latest block on Optimism right now — give me the block number, hash, and timestamp?","exampleUseCases":[{"title":"Monitor Optimism chain head","prompt":"Keep checking the latest block on Optimism and let me know whenever a new block comes in — I want to track how fast the chain is progressing."},{"title":"Verify transaction inclusion timing","prompt":"I need to know the timestamp and block number of the latest Optimism block so I can confirm whether my transaction was included before a certain deadline."},{"title":"Dashboard live block feed","prompt":"Pull the current Optimism block data including block number, hash, gas used, and transaction count so I can update my L2 analytics dashboard."}],"resultDescription":"Returns on-chain metadata for the most recently confirmed block on Optimism, including block number, hash, parent hash, timestamp, gas used, and the list of transactions included in that block.","failureModes":["Network or RPC node downtime causing 503 or timeout","Payment failure via x402 protocol returning 402 if USDC balance is insufficient","Invalid request body format returning 400 bad request","Rate limiting or quota exceeded returning 429","Temporary Optimism node sync lag causing slightly stale block data"],"whenToPreferThis":"Choose this endpoint when you need real-time Optimism (OP Mainnet) block data via a pay-per-call model with no subscription required, especially useful for agents that need on-demand chain-head checks without committing to a node provider plan. Prefer over generic RPC providers when operating in an x402 micropayment context at $0.01 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:55:13.255Z","isFirstParty":false}