Skip to main content

zks_getL1BatchDetails RPC Method

Returns data pertaining to a given batch.

Updated on
Apr 03, 2026

Parameters

batch
integer
REQUIRED

The layer 1 batch number

Returns

baseSystemContractsHashes
object

An object containing hashes of the base system contracts used in the transaction

bootloader
string

The hash of the bootloader contract

default_aa
string

The hash of the default account contract

evm_emulator
string | null

(Optional) A module for emulating EVM behavior to ensure compatibility with EVM-based smart contracts, or null when not applicable

commitTxHash
string

The hash of the transaction committed to the network

committedAt
string

The timestamp when the transaction was committed to the network

executeTxHash
string

The hash of the transaction executed on the network

executedAt
string

The timestamp when the transaction was executed on the network

l1BatchNumber
integer

(Optional) The batch number of the transaction on the L1 (Ethereum) network

l1GasPrice
integer

The gas price used for the transaction on the L1 network

l1TxCount
integer

The number of transactions related to this batch on the L1 network

l2FairGasPrice
integer

The fair gas price used for the transaction on the L2 (zkSync) network

l2TxCount
integer

The total number of transactions on the L2 network

number
integer

The transaction number

operatorAddress
string

(Optional) The address of the operator who executed the transaction

proveTxHash
string

The hash of the proof transaction on the L1 network

provenAt
string

The timestamp when the proof transaction was done on the L1 network

rootHash
string

The root hash representing the state of the network after the transaction

status
string

The status of the transaction

timestamp
integer

The timestamp of the transaction

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"number": 12345,
6
"timestamp": 1681063384,
7
"l1TxCount": 9,
8
"l2TxCount": 294,
9
"rootHash": "0x994d2738f7ac89b45c8381a7816307b501c00b3127afc79e440dbf1b3e3b5a8c",
10
"status": "verified",
11
"commitTxHash": "0xe5e76d1e17cff2b7232d40ddf43c245e29c76e5354571aa8083d73e793efb64a",
12
"committedAt": "2023-04-09T18:05:40.548203Z",
13
"commitTxFinality": "finalized",
14
"commitChainId": null,
15
"proveTxHash": "0xe980f58feed22a4dbc46fe0339bfcbc09f51c99b2f3bc4f9f60e710ea5f0a2da",
16
"proveTxFinality": "finalized",
17
"provenAt": "2023-04-09T22:51:16.200810Z",
18
"proveChainId": null,
19
"executeTxHash": "0x19c125a6104f731bcc1ce378f090c808e97c6d634fc32cb786694a94fc8219a1",
20
"executeTxFinality": "finalized",
21
"executedAt": "2023-04-10T18:48:25.009708Z",
22
"executeChainId": null,
23
"precommitTxHash": null,
24
"precommitTxFinality": null,
25
"precommittedAt": null,
26
"precommitChainId": null,
27
"l1GasPrice": 29424338466,
28
"l2FairGasPrice": 250000000,
29
"fairPubdataPrice": null,
30
"baseSystemContractsHashes": {
31
"bootloader": "0x010007793a328ef16cc7086708f7f3292ff9b5eed9e7e539c184228f461bf4ef",
32
"default_aa": "0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc",
33
"evm_emulator": null
34
}
35
}
36
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"number": 12345,
6
"timestamp": 1681063384,
7
"l1TxCount": 9,
8
"l2TxCount": 294,
9
"rootHash": "0x994d2738f7ac89b45c8381a7816307b501c00b3127afc79e440dbf1b3e3b5a8c",
10
"status": "verified",
11
"commitTxHash": "0xe5e76d1e17cff2b7232d40ddf43c245e29c76e5354571aa8083d73e793efb64a",
12
"committedAt": "2023-04-09T18:05:40.548203Z",
13
"commitTxFinality": "finalized",
14
"commitChainId": null,
15
"proveTxHash": "0xe980f58feed22a4dbc46fe0339bfcbc09f51c99b2f3bc4f9f60e710ea5f0a2da",
16
"proveTxFinality": "finalized",
17
"provenAt": "2023-04-09T22:51:16.200810Z",
18
"proveChainId": null,
19
"executeTxHash": "0x19c125a6104f731bcc1ce378f090c808e97c6d634fc32cb786694a94fc8219a1",
20
"executeTxFinality": "finalized",
21
"executedAt": "2023-04-10T18:48:25.009708Z",
22
"executeChainId": null,
23
"precommitTxHash": null,
24
"precommitTxFinality": null,
25
"precommittedAt": null,
26
"precommitChainId": null,
27
"l1GasPrice": 29424338466,
28
"l2FairGasPrice": 250000000,
29
"fairPubdataPrice": null,
30
"baseSystemContractsHashes": {
31
"bootloader": "0x010007793a328ef16cc7086708f7f3292ff9b5eed9e7e539c184228f461bf4ef",
32
"default_aa": "0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc",
33
"evm_emulator": null
34
}
35
}
36
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free