curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=543210 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "zks_L1BatchNumber",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x544c"
}
ZKS
zks_L1BatchNumber
Returns the latest L1 batch number.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=543210 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "zks_L1BatchNumber",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x544c"
}
Was this page helpful?