zks_getBlockDetails

Retrieves details for a given block.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
Block numberstringRequiredformat: "^0x[0-9a-fA-F]{1,8}$"

The number of the block.

Response

Detailed information about the specified block.

numberinteger

Number of the block.

l1BatchNumberinteger

Corresponding L1 batch number.

timestampinteger

Unix timestamp when the block was committed.

l1TxCountinteger

Number of L1 transactions included in the block.

l2TxCountinteger

Number of L2 transactions included in the block.

rootHashstringformat: "^0x[0-9a-f]{64}$"

Root hash of the block’s state after execution.

statusstring

Current status of the block (e.g., verified, executed).

commitTxHashstringformat: "^0x[0-9a-f]{64}$"

Transaction hash of the commit operation on L1.

committedAtstring

Timestamp when the block was committed on L1.

proveTxHashstringformat: "^0x[0-9a-f]{64}$"

Transaction hash of the proof submission on L1.

provenAtstring

Timestamp when the proof was submitted on L1.

executeTxHashstringformat: "^0x[0-9a-f]{64}$"

Transaction hash of the execution on L1.

executedAtstring

Timestamp when the block execution was completed on L1.

l1GasPriceinteger

L1 gas price at the time of the block’s execution.

l2FairGasPriceinteger

Fair gas price on L2 at the time of the block’s execution.

baseSystemContractsHashesobject
operatorAddressstringformat: "^0x[0-9a-fA-F]{40}$"

Address of the operator who committed the block.

protocolVersionstring

Version of the zkSync protocol the block was committed under.