zkevm_getBatchByNumber
Returns the details of a batch specified by its number or a special tag (earliest
, latest
). If includeTransactions
is true
, the full transaction objects are included; otherwise, only transaction hashes are returned.
Path parameters
apiKey
Request
This endpoint expects an object.
batchNumberOrTag
The batch number or a tag (earliest
, latest
) to identify the batch.
includeTransactions
If true
, returns full transaction objects; if false
, returns only transaction hashes.
Response
The batch details corresponding to the given number or tag.
number
globalExitRoot
mainnetExitRoot
rollupExitRoot
accInputHash
timestamp
sendSequencesTxHash
verifyBatchTxHash
closed
True if the batch is already closed, otherwise false
blocks
Array of block objects, or 32 Bytes block hashes depending on the last given parameter
transactions
Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter
stateRoot
coinbase