# l2\_getBatchState

Return the state of batch.

### Parameters

* `batchIndex`: uint64|QUANTITY - specified batch number, enable hex-encoded and original string.

### Returns

Object - A batch state object with the following fields:

* `index`: QUANTITY - batch number
* `blockHash`: 32 bytes - the block hash that corresponding the batch
* `proposer`: Address - sequencer address
* `timestamp`: QUANTITY - the timestamp of the batch

### Example

Request

```
{
    "jsonrpc": "2.0",
    "method": "l2_getBatchState",
    "id": 0,
    "params": [
        "0x21"
    ]
}
```

Result

```
{
    "jsonrpc": "2.0",
    "id": 0,
    "result": {
        "index": "0x21",
        "proposer": "0xc86cb1fdd29765dc1f2fe8029f7b36a823fa50e8",
        "timestamp": "0x62e0e6ac",
        "blockHash": "0x47fca9736145ab867d394192b3846848909e1b8ca122d8c4c252676ea1a7cdb7"
    }
}
```
