# 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"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.goshen.network/dev-docs/json-rpc-api/l2_getpendingtxbatches.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
