# l2\_getPendingTxBatches

Return the encoded batch data to be submitted

### Parameters

Null

### Returns

`DATA`: string - a hex-encoded batch raw data.

### Example

Request

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

Result

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