> For the complete documentation index, see [llms.txt](https://docs.blockpi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockpi.io/build/api-reference/merlin/zkevm_batchnumberbyblocknumber.md).

# zkevm\_batchNumberByBlockNumber

Returns the batch number connected to the block

**Parameters:**

An array of strings

**String** - the hex representation of the block's height

**Returns:**

**String** - the hex representation of latest batch number

#### Example:

{% code overflow="wrap" %}

```json
// Request
curl https://merlin.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data 
'{
    "jsonrpc": "2.0",
    "method": "zkevm_batchNumberByBlockNumber",
    "params": [
        "0x2"
    ],
    "id": 1
}'

// Result
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": "0x3"
}
```

{% endcode %}
