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

apiKeystringRequired

Request

This endpoint expects an object.
batchNumberOrTagstring or enumRequired

The batch number or a tag (earliest, latest) to identify the batch.

includeTransactionsbooleanRequired

If true, returns full transaction objects; if false, returns only transaction hashes.

Response

The batch details corresponding to the given number or tag.
numberstring or nullformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"
globalExitRootstring or nullformat: "^0x[0-9a-f]{64}$"
mainnetExitRootstring or nullformat: "^0x[0-9a-f]{64}$"
rollupExitRootstring or nullformat: "^0x[0-9a-f]{64}$"
accInputHashstring or nullformat: "^0x[0-9a-f]{64}$"
timestampstring or nullformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"
sendSequencesTxHashstring or nullformat: "^0x[0-9a-f]{64}$"
verifyBatchTxHashstring or nullformat: "^0x[0-9a-f]{64}$"
closedboolean or null
True if the batch is already closed, otherwise false
blockslist of objects or strings or null
Array of block objects, or 32 Bytes block hashes depending on the last given parameter
transactionslist of objects or strings or null
Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter
stateRootstring or nullformat: "^0x[0-9a-f]{64}$"
coinbasestring or nullformat: "^0x[0-9a-fA-F]{40}$"