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
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
(Optional) 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
(Optional) 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
1
curl https://docs-demo.abstract-testnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"zks_getL1BatchDetails","params":[5244],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free