{"uid":"cap_gcXVNJeIp3wMREY88YpAO","slug":"blockscout-optimism-batches-explorer-665cb83b","name":"Blockscout Optimism Batches Explorer","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","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":{"chain_id":{"type":"string"}}},"queryParams":{"type":"object","properties":{"id":{"type":"integer"},"items_count":{"type":"integer"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"items":[{"number":0,"l1_timestamp":"string","transactions_count":0,"l2_end_block_number":0,"batch_data_container":{},"l1_transaction_hashes":["string"],"l2_start_block_number":0}],"next_page_params":{}}},"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_OgzQ_xurFnqs1DaOPSyur","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 a paginated list of Optimism L2 batch submissions for a specified chain, including L1 transaction hashes, block ranges, and timestamps","exampleAgentPrompt":"Can you pull up the list of Optimism batch submissions for chain ID 10 on Blockscout — show me the first 25 batches with their L1 timestamps, transaction counts, and which L1 transaction hashes they were anchored in?","exampleUseCases":[{"title":"Auditing Optimism rollup batch history","prompt":"Show me the most recent Optimism batch submissions on chain 10 via Blockscout, including the L1 transaction hashes and block ranges covered, so I can audit the rollup's data availability."},{"title":"Investigating a specific batch submission","prompt":"Look up batch number 5000 on the Optimism network with chain ID 10 using Blockscout — I need the L1 timestamp, transaction count, and which L1 transactions it was submitted in."},{"title":"Paginating through all Optimism batches","prompt":"Fetch me the next page of Optimism L2 batches on chain ID 10 from Blockscout — give me 50 items per page and include the start and end L2 block numbers for each batch."}],"resultDescription":"Returns a paginated list of Optimism batch objects, each containing: batch number, L1 timestamp of submission, count of transactions in the batch, L2 start and end block numbers covered, batch data container metadata, and the L1 transaction hashes where the batch was anchored. Also includes next_page_params for pagination.","failureModes":["Invalid or unsupported chain_id returns an error or empty response","Batch ID out of range returns empty items array","Rate limiting or payment failure (x402) blocks the request","Malformed query parameters return a 400 error","Chain not supporting Optimism batches returns no results"],"whenToPreferThis":"Use this endpoint when you specifically need Optimism L2 batch submission data — including L1 anchoring transactions, block ranges, and batch-level transaction counts — for a chain served by Blockscout. Prefer this over generic transaction lookups when investigating rollup sequencing, data availability, or batch audit trails on Optimism-compatible networks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-11T18:58:10.313Z","isFirstParty":false}