{"uid":"cap_cG29QqRLHSPXLGCgqQ7V7","slug":"blockscout-zksync-batch-count-ec3fa6c2","name":"Blockscout ZKSync 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/zksync/batches/count","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_o3kSeQ-86imvk6_wkwVC5","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":"Returns the total number of ZKSync batches on a specified blockchain network via Blockscout's explorer API","exampleAgentPrompt":"How many ZKSync batches have been processed so far on chain ID 324? Pull the count from Blockscout.","exampleUseCases":[{"title":"Monitor ZKSync rollup growth","prompt":"Check the current total number of ZKSync batches on the zkSync Era mainnet (chain ID 324) using Blockscout — I want to track how quickly batches are accumulating."},{"title":"Dashboard batch statistics widget","prompt":"For my blockchain analytics dashboard, fetch the total ZKSync batch count on chain 324 from Blockscout so I can display it as a live stat."},{"title":"Automated ZKSync health check","prompt":"Every hour, grab the ZKSync batch count for chain ID 324 from Blockscout and alert me if it hasn't increased since the last check — I want to know if the sequencer stalls."}],"resultDescription":"Returns a single integer representing the total count of ZKSync batches processed on the specified blockchain network. The response is a plain JSON number (e.g., 0 or any positive integer).","failureModes":["Invalid or unsupported chain_id returns an error or empty response","Chain does not support ZKSync batches, returning 0 or an error","Network timeout or API unavailability","Payment failure due to insufficient x402 USDC balance"],"whenToPreferThis":"Use this endpoint when you need a lightweight, single-number count of total ZKSync batches on a specific chain via Blockscout. Prefer this over full batch list endpoints when you only need the aggregate count for dashboards, health checks, or monitoring, and do not require individual batch details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T00:57:30.490Z","isFirstParty":false}