{"uid":"cap_xfqGJ9NUJ9ukcJinuRk2F","slug":"blockscout-optimism-batch-details-by-number-55caf4c7","name":"Blockscout Optimism Batch Details by Number","description":"Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data","url":"https://api.blockscout.com/%7Bchain_id%7D/api/v2/optimism/batches/%7Bnumber%7D","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","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","properties":{"number":{"type":"string"},"chain_id":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{}},"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_Zz-ItWZL5TiorvuYgNmER","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves detailed information about a specific Optimism L2 batch by its batch number on a given chain","exampleAgentPrompt":"Can you look up the details for Optimism batch number 12345 on Blockscout? I want to know the L1 transaction hash and how many L2 transactions it included.","exampleUseCases":[{"title":"Verify Optimism batch submission","prompt":"What are the details of Optimism batch 9876 on chain 10 — specifically when it was submitted to L1 and the L1 tx hash?"},{"title":"Debug missing L2 transaction","prompt":"I'm trying to trace an Optimism transaction that might be in batch 45231 — can you pull up that batch from Blockscout and tell me what's in it?"},{"title":"Monitor rollup batch finality","prompt":"Check batch number 100500 on the Optimism chain using Blockscout and tell me if it's been finalized on L1 yet and how many transactions it contains."}],"resultDescription":"Returns a JSON object containing details about the specified Optimism batch, including batch number, timestamp, transaction count, L1 transaction hash, block range covered, and status/finalization information.","failureModes":["Batch number not found — returns 404 if the batch does not exist","Invalid chain_id — returns error if the chain is not supported","Malformed path parameters — returns 422 or 400 for non-numeric batch numbers","Rate limiting or payment failure — returns 402 if x402 payment is not provided","Network timeout — upstream blockchain node may be slow or unavailable"],"whenToPreferThis":"Use this endpoint when you need detailed information about a specific Optimism L2 batch by its sequential number, particularly for tracing L2-to-L1 submission, verifying batch finality, or debugging transaction inclusion. Prefer this over general transaction search when you already know the batch number and need structured batch-level metadata rather than individual transaction details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-11T18:51:05.822Z","isFirstParty":false}