zksync
main-page

Get the latest batch number.

Retrieves the number of the most recent ZkSync rollup batch. Returns 0 if no batches exist.

get/{chain_id}/api/v2/main-page/zksync/batches/latest-number

Request

Path parameters

chain_idstring required

The ID of the blockchain

Response

Latest ZkSync batch number.

integer required

Changes

No recorded changes to this operation across all 1 revision of this API.