{"uid":"cap_0eF0KgAsH_dj-nwfBB1tz","slug":"blockscout-zksync-batch-details-66e987d4","name":"Blockscout ZKSync Batch Details","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/%7Bbatch_number_param%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":{"chain_id":{"type":"string"},"batch_number_param":{"type":"integer"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"number":0,"status":"string","root_hash":"string","timestamp":"string","l1_gas_price":"string","end_block_number":0,"l2_fair_gas_price":"string","start_block_number":0,"l1_transactions_count":0,"l2_transactions_count":0,"prove_transaction_hash":"string","commit_transaction_hash":"string","execute_transaction_hash":"string","prove_transaction_timestamp":"string","commit_transaction_timestamp":"string","execute_transaction_timestamp":"string"}},"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_2pbFxCgVZdY-D1bxRX0qb","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 ZKSync batch on a given blockchain network, including transaction counts, gas prices, root hash, and L1 commit/prove/execute transaction hashes.","exampleAgentPrompt":"Can you pull up the details for ZKSync batch number 1500 on the zkSync Era chain — I want to see the commit and prove transaction hashes, the root hash, and how many L1 and L2 transactions it included?","exampleUseCases":[{"title":"Verify ZKSync batch finality","prompt":"Has ZKSync batch 2000 on zkSync Era been fully executed and settled on L1 yet? I need the execute transaction hash and its timestamp to confirm finality."},{"title":"Debug rollup batch gas costs","prompt":"What were the L1 and L2 gas prices for ZKSync batch 850? I'm trying to figure out why our layer 2 transactions were so expensive that day."},{"title":"Audit batch block range coverage","prompt":"For ZKSync batch number 300, what was the start and end block number it covered, and what's the root hash? I need this for a rollup audit report."}],"resultDescription":"A JSON object with the batch number, status string, root hash, timestamp, L1 gas price, L2 fair gas price, start and end block numbers, L1 and L2 transaction counts, and the commit, prove, and execute transaction hashes along with their respective timestamps.","failureModes":["Invalid chain_id returns an error or empty response","Non-existent batch_number_param returns 404 or empty result","Batch not yet proven or executed will show null fields for those transaction hashes","Rate limiting may occur under high query volume","Malformed batch_number_param (non-integer) causes input validation failure"],"whenToPreferThis":"Use this endpoint when you need granular ZKSync-specific batch lifecycle data — including L1 commit, prove, and execute transaction hashes — that generic transaction lookup endpoints do not expose. Prefer this over generic block explorers when specifically investigating ZKSync rollup batch settlement, gas pricing across L1/L2, or verifying batch finality for a known batch number.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-09T18:40:14.223Z","isFirstParty":false}