Skip to main content

zkevm_getBatchByNumber RPC Method

Returns information about a specific batch in the ZK-EVM layer, based on its batch number.

Updated on
Apr 16, 2026

Parameters

batchNumber/Tag
string
REQUIRED

The batch number or tag for which the information is to be retrieved

Returns

accInputHash
string

The hash of the accumulated input data

batchL2Data
string

The batch L2 data included in this block

blocks
array

An array of block hashes included in this batch

closed
boolean

Indicates whether the batch is closed

coinbase
string

The address of the current block miner

globalExitRoot
string

The root hash of the global exit queue

localExitRoot
string

The root hash of the local exit queue

mainnetExitRoot
string

The root hash of the mainnet exit queue

number
string

The current block number in hexadecimal format

rollupExitRoot
string

The root hash of the rollup exit queue

sendSequencesTxHash
string

The transaction hash of the most recent send sequence, or null if not available

stateRoot
string

The root hash of the current state trie

timestamp
string

The timestamp of the current block in hexadecimal format

transactions
array

An array of transactions included in the current block

Request
Response
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"error": {
5
"code": -32601,
6
"message": "the method zkevm_getBatchByNumber 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_getBatchByNumber 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