{"uid":"cap_r_ufvR5i6WmXKhDRjOR4s","slug":"blockscout-scroll-batch-count-62226bea","name":"Blockscout Scroll Batch Count","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/scroll/batches/count?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","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","properties":{"chain_id":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":0},"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_URz2X3x79B5D94eLwvLDv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0xcebA9300f2b948710d2653dD7B07f33A8B32118C","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the total count of Scroll L2 batches submitted to the Ethereum mainnet for a given chain","exampleAgentPrompt":"How many Scroll L2 batches have been submitted to Ethereum so far? Pull the total batch count from Blockscout for the Scroll chain.","exampleUseCases":[{"title":"Monitor Scroll rollup batch growth","prompt":"Check how many total Scroll batches have been committed to L1 on Blockscout right now — I want to track rollup throughput over time."},{"title":"Scroll chain health dashboard","prompt":"Pull the current total Scroll batch count from Blockscout so I can display it on my rollup monitoring dashboard alongside finality stats."},{"title":"Validate Scroll chain sync progress","prompt":"I need to know the total number of Scroll batches processed on-chain — use the Blockscout Scroll endpoint to get that count and compare it to what my node reports."}],"resultDescription":"Returns a single integer representing the total number of Scroll L2 batches that have been submitted to the Ethereum L1. The response is a raw numeric value (e.g., 0 or any positive integer), with no additional metadata.","failureModes":["Invalid or unsupported chain_id returns an error or empty response","Network timeout if Blockscout indexer is lagging","404 if the Scroll endpoint is unavailable or deprecated","Payment failure (402) if x402 USDC payment is not provided or rejected","Rate limiting or 429 if too many requests are made in quick succession"],"whenToPreferThis":"Choose this endpoint when you specifically need the total batch count for the Scroll L2 network as indexed by Blockscout. It is ideal for dashboards, monitoring scripts, or validation tools that need a simple scalar metric about Scroll rollup activity. Prefer this over general blockchain explorers when you need a programmatic, pay-per-call API response rather than a UI-based lookup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:49:49.335Z","isFirstParty":false,"canonicalSlug":"blockscout-scroll-batch-count-62226bea"}