curl --request POST \
--url https://nd-995-911-243.p2pify.com/afb8312f3710a5bc469f4c87cad3a2e4 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_L1BatchNumber",
"params": []
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"batchNumber": 123
}
}curl --request POST \
--url https://nd-995-911-243.p2pify.com/afb8312f3710a5bc469f4c87cad3a2e4 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_L1BatchNumber",
"params": []
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"batchNumber": 123
}
}zkSync Era API method that returns the latest Layer 1 (L1) batch number. This method is crucial for developers who need to track the progress of batch processing on the zkSync network. Batches are groups of transactions processed together on L1 for efficiency and cost-effectiveness.Documentation Index
Fetch the complete documentation index at: https://chainstack-mintlify-flesh-empty-pages.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
noneresult — the latest L1 batch number, returned as a hexadecimal string. This number increments with each new batch processed on the L1 network, providing a sequential identifier that can be used to track processing progress and batch-related activities.zks_L1BatchNumber could be used to obtain the most recent batch number. This can be particularly useful for applications that need to display the current processing state of the zkSync network or to analyze transaction throughput over time.Was this page helpful?