Skip to main content
GET
/
{chain_id}
/
api
/
v2
/
main-page
/
zksync
/
batches
/
latest-number
Get the latest batch number.
curl --request GET \
  --url https://api.blockscout.com/{chain_id}/api/v2/main-page/zksync/batches/latest-number \
  --header 'Authorization: Bearer <token>'
1

Authorizations

Authorization
string
header
required

API key passed as a Bearer token in the Authorization header.

Path Parameters

chain_id
string
required

The ID of the blockchain

Response

Latest ZkSync batch number.

The response is of type integer.

Required range: x >= 0