POST
/
zks_getL1BatchBlockRange
curl --request POST \
  --url https://api.mainnet.abs.xyz/zks_getL1BatchBlockRange \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "zks_getL1BatchBlockRange",
  "params": [
    12345
  ]
}'
{
  "jsonrpc": "2.0",
  "result": [
    "0x1",
    "0x4"
  ],
  "id": 1
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:zks_getL1BatchBlockRange
required

The method to call

params
any[]
required

Call parameters

id
integer
default:1
required

Request identifier

Response

200 - application/json
Returns the range of blocks in the batch
jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string[]

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

Block number in hexadecimal format

Example:
["0x1", "0x4"]