# l2\_getBatchIndex

return the index of rollup batch which contains specific block

### Parameters

* `blockNumber`: uint64 - the chosen block number.

### Returns

* `batchIndex`: QUANTITY - the index of rollup batch which containing specific block

### Example

Request

```
{
    "jsonrpc": "2.0",
    "method": "l2_getBatchIndex",
    "id": 0,
    "params": [1]
}
```

Result

```
{"jsonrpc":"2.0","id":0,"result":"0x0"}
```
