Skip to main content

zks_getL1BatchDetails RPC Method

Returns data pertaining to a given batch.

Updated on
Feb 17, 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

The hash of the bootloader contract

default_aa

The hash of the default account contract

commitTxHash

The hash of the transaction committed to the network

committedAt

The timestamp when the transaction was committed to the network

executeTxHash

The hash of the transaction executed on the network

executedAt

The timestamp when the transaction was executed on the network

l1BatchNumber

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

l1GasPrice

The gas price used for the transaction on the L1 network

l1TxCount

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

l2FairGasPrice

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

l2TxCount

The total number of transactions on the L2 network

number

The transaction number

operatorAddress

The address of the operator who executed the transaction

proveTxHash

The hash of the proof transaction on the L1 network

provenAt

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

rootHash

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

status

The status of the transaction

timestamp

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