# Bundle API

Our Anti-MEV RPC on BSC supports the method `eth_sendBundle`to send multiple private transactions in a bundle.

{% hint style="success" %}
RPC Endpoint: <https://bsc.rpc.blocksec.com>
{% endhint %}

## eth\_sendBundle

<mark style="color:green;">`POST`</mark> `/`

Send private transactions in a bundle

### Request Parameters

<table><thead><tr><th width="167.0546875">Parameter</th><th>Mandatory</th><th>Format</th><th>Example</th><th>Description</th></tr></thead><tbody><tr><td>txs</td><td><strong>Mandatory</strong></td><td>array[hex]</td><td>["0x…35", "0x…4e"]</td><td>List of signed raw transactions.</td></tr><tr><td>maxBlockNumber</td><td>Optional</td><td>uint64</td><td>47793530</td><td>Maximum block number for the bundle's validity. Default is current block number + 100.</td></tr><tr><td>revertingTxHashes</td><td>Optional</td><td>array[hash]</td><td>["0x…2c", "0x…3d"]</td><td>List of transaction hashes allowed for revert.</td></tr></tbody></table>

### Request Example

```shell
curl https://bsc.rpc.blocksec.com \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
         "jsonrpc": "2.0",
         "id": "1", 
         "method": "eth_sendBundle", 
         "params": {
            ...
          }
        }'     
```

One example of the detailed request.&#x20;

```json
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "eth_sendBundle",
  "params": [
    {
      "txs":["0x…3e", "0x…1f"],    // List of signed raw transactions
      "maxBlockNumber":47793594,   // The maximum block number for the bundle to be valid, with the default set to the current block number + 100
      "revertingTxHashes":[
        "07c956724f0fd00a9fb1ea71e111d87dc8dae099c914b8b4859f1e6e667d4ea8"
        ],                         // List of transaction hashes allowed for revert
    }
  ]
}
```

### Response Example

```json
{
 "jsonrpc":"2.0",
 "id":"1",
 "result":"0x1e5e……fbd1"  //bundle hash
}
```

```json
{
  "jsonrpc":"2.0",
  "id":"1",
  "error":{
    "code":-38000,
    "message":"the maxBlockNumber should not be smaller than currentBlockNum"
    }
}
```
