Skip to main content

zks_getBlockDetails RPC Method

Returns additional zkSync-specific information about the L2 block.

Updated on
Nov 2, 2023

zks_getBlockDetails RPC Method

Parameters

block
string
REQUIRED
The number of the block

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