> For the complete documentation index, see [llms.txt](/llms.txt).

# `zks_L1BatchNumber`

Returns the latest L1 batch number.

## Parameters[​](#parameters "Direct link to Parameters")

None.

## Response[​](#response "Direct link to Response")

The latest L1 batch number in hexadecimal format.

## Example[​](#example "Direct link to Example")

Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://app.infura.io/).

### Request[​](#request "Direct link to Request")

- curl
- WSS

```
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": []}'

```

```
wscat -c wss://zksync-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_L1BatchNumber", "params": []}'

```

### Response[​](#response-1 "Direct link to Response")

- JSON

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

```
