Skip to content
Alchemy Logo

zkevm_batchNumberByBlockNumber

POST
/{apiKey}

Retrieves the batch number of the batch that is connected to the specified block number.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"required

The block number for which to retrieve the associated batch number.

Responses

200

The batch number connected to the given block number, as a hexadecimal string.

Was this page helpful?