Parameters
- batchNumber/TagstringREQUIRED
The batch number or tag for which the information is to be retrieved
Returns
- accInputHashstring
The hash of the accumulated input data
- batchL2Datastring
The batch L2 data included in this block
- blocksarray
An array of block hashes included in this batch
- closedboolean
Indicates whether the batch is closed
- coinbasestring
The address of the current block miner
- globalExitRootstring
The root hash of the global exit queue
- localExitRootstring
The root hash of the local exit queue
- mainnetExitRootstring
The root hash of the mainnet exit queue
- numberstring
The current block number in hexadecimal format
- rollupExitRootstring
The root hash of the rollup exit queue
- sendSequencesTxHashstring
The transaction hash of the most recent send sequence, or null if not available
- stateRootstring
The root hash of the current state trie
- timestampstring
The timestamp of the current block in hexadecimal format
- transactionsarray
An array of transactions included in the current block
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}