Skip to main content

zks_L1BatchNumber

Returns the latest L1 batch number.

Parameters

None.

Response

The latest L1 batch number in hexidecimal format.

Example

Replace <YOUR-API-KEY> with an API key from your Infura dashboard.

Request

curl https://zksync-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "zks_L1BatchNumber", "params": []}'

Response

{
"jsonrpc": "2.0",
"result": "0x544c",
"id": 1
}