Skip to main content

zkevm_batchNumberByBlockNumber RPC Method

Returns the batch number that a given block number belongs to.

Updated on
Apr 16, 2026

Parameters

blockNumber
string
REQUIRED

The block number for which the batch number is to be retrieved

Returns

result
string

The batch number that the input block number belongs to

Request
Response
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"error": {
5
"code": -32601,
6
"message": "the method zkevm_batchNumberByBlockNumber does not exist/is not available"
7
}
8
}
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"error": {
5
"code": -32601,
6
"message": "the method zkevm_batchNumberByBlockNumber does not exist/is not available"
7
}
8
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free