Skip to main content

Parameters

chainId
string
default:"11124"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"zks_getL1BatchBlockRange"
required
JSON-RPC method name.
params
object
required
Returns the L2 block range included in the given L1 batch.Positional parameters for zks_getL1BatchBlockRange:
  • params[]: The L1 batch number.

Returns

result
array
Hexadecimal range of block numbers included in the batch.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=11124 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "zks_getL1BatchBlockRange",
    "params": [
      12345
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x116fec",
    "0x117015"
  ]
}