> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# zks_L1BatchNumber | zkSync Era

> zkSync Era API method that returns the latest Layer 1 (L1) batch number. Reference for zks_L1BatchNumber on zkSync Era via Chainstack.

zkSync Era API method that returns the latest Layer 1 (L1) batch number. This method is crucial for developers who need to track the progress of batch processing on the zkSync network. Batches are groups of transactions processed together on L1 for efficiency and cost-effectiveness.

## Parameters

* `none`

## Response

* `result` — the latest L1 batch number, returned as a hexadecimal string. This number increments with each new batch processed on the L1 network, providing a sequential identifier that can be used to track processing progress and batch-related activities.

<Note>
  You can use the Chainstack [EVM Swiss Army Knife](https://web3tools.chainstacklabs.com/) to convert values.
</Note>

## **Use case**

For developers implementing monitoring tools or analytics for zkSync, `zks_L1BatchNumber` could be used to obtain the most recent batch number. This can be particularly useful for applications that need to display the current processing state of the zkSync network or to analyze transaction throughput over time.


## OpenAPI

````yaml openapi/zksync_node_api/zks_L1BatchNumber.json POST /afb8312f3710a5bc469f4c87cad3a2e4
openapi: 3.0.0
info:
  title: JSON-RPC API
  version: 1.0.0
servers:
  - url: https://nd-995-911-243.p2pify.com
security: []
paths:
  /afb8312f3710a5bc469f4c87cad3a2e4:
    post:
      summary: zks_L1BatchNumber | zkSync Era
      operationId: zks_L1BatchNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JsonRpcRequestForL1BatchNumber'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonRpcResponseForL1BatchNumber'
components:
  schemas:
    JsonRpcRequestForL1BatchNumber:
      type: object
      required:
        - jsonrpc
        - id
        - method
        - params
      properties:
        jsonrpc:
          type: string
          example: '2.0'
          default: '2.0'
        id:
          type: integer
          example: 1
          default: 1
        method:
          type: string
          example: zks_L1BatchNumber
          default: zks_L1BatchNumber
        params:
          type: array
          default: []
    JsonRpcResponseForL1BatchNumber:
      type: object
      required:
        - jsonrpc
        - id
        - result
      properties:
        jsonrpc:
          type: string
          example: '2.0'
          default: '2.0'
        id:
          type: integer
          default: 1
        result:
          type: object
          properties:
            batchNumber:
              type: integer
              description: The latest L1 batch number.

````