Skip to main content

zks_getL1BatchDetails RPC Method

Returns data pertaining to a given batch.

Updated on
Oct 29, 2024

zks_getL1BatchDetails RPC Method

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
A module for emulating EVM behavior to ensure compatibility with EVM-based smart contracts
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
1
curl https://docs-demo.abstract-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"zks_getL1BatchDetails","params":[673],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free