curl --request POST \
--url https://api.mainnet.abs.xyz/zks_L1BatchNumber \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_L1BatchNumber",
"params": []
}'
{
"jsonrpc": "2.0",
"result": "0x2b13",
"id": 1
}
Returns the latest L1 batch number
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_L1BatchNumber \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_L1BatchNumber",
"params": []
}'
{
"jsonrpc": "2.0",
"result": "0x2b13",
"id": 1
}
Returns the latest L1 batch number
The response is of type object
.
Was this page helpful?