v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
ZKSync API

zks_getL1BatchBlockRange

Returns the range of blocks contained within a specified L1 batch. The range is provided by the beginning and end block numbers in hexadecimal.

post/zks_getL1BatchBlockRange

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the range of blocks in the batch

jsonrpcstring
idinteger
resultstring[]

Array with two elements: the first and the last block number (inclusive) of the requested batch

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x1",
    "0x4"
  ]
}