> For a complete page index, fetch https://docs.conduit.xyz/llms.txt

# eth_callBundle

POST https://rpc.plume.org/YOUR_API_KEY
Content-Type: application/json

**Availability:** Supported on Reth-based (op-reth) endpoints only. Geth- and Nitro-based endpoints return `-32601 method not found`.

Simulates a Flashbots-style bundle of signed raw transactions on top of `stateBlockNumber`, as if they were included in `blockNumber`. Returns per-transaction gas, fees, and return values without broadcasting anything.

⚡ Compute Units: [120 CU](https://docs.conduit.xyz/rpc-nodes/information/compute-units)

Reference: https://docs.conduit.xyz/rpc-nodes/json-rpc-reference/eth-call-bundle

## Request

### Body (application/json)

This endpoint expects an object.

- `bundle` (eth_callBundle_Param_bundle, required) — Bundle to simulate.

## Response

### 200

Aggregate and per-transaction simulation results. Fee fields are decimal strings in wei.

- `bundleHash` (string, optional)
- `bundleGasPrice` (string, optional)
- `coinbaseDiff` (string, optional)
- `ethSentToCoinbase` (string, optional)
- `gasFees` (string, optional)
- `stateBlockNumber` (integer, optional)
- `totalGasUsed` (integer, optional)
- `results` (list of EthCallBundleResultResultsItems, optional)

## Types

### eth_callBundle_Param_bundle

- `txs` (list of string, required) — Signed raw transactions, in order.
- `blockNumber` (string, required) — Block number the bundle would be included in.
- `stateBlockNumber` (BlockNumberOrTag, required) — Block whose state to simulate on top of.
- `timestamp` (string, optional) — Optional timestamp override for the simulated block.

### EthCallBundleResultResultsItems

- `txHash` (string, optional)
- `fromAddress` (string, optional)
- `toAddress` (string, optional)
- `gasUsed` (integer, optional)
- `gasPrice` (string, optional)
- `gasFees` (string, optional)
- `coinbaseDiff` (string, optional)
- `ethSentToCoinbase` (string, optional)
- `value` (string, optional) — Return data.
- `revert` (string, optional) — Revert reason, if the transaction reverted.

### BlockNumberOrTag

- block tag: enum
  - Allowed values: `latest`, `earliest`, `pending`, `finalized`, `safe`
- block number: string

## Examples

**Request**

```json
[
  {
    "blockNumber": "0x1053d01",
    "stateBlockNumber": "0x1053d00",
    "txs": [
      "0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64"
    ]
  }
]
```

**Response**

```json
{
  "id": "1",
  "jsonrpc": "2.0",
  "result": {
    "bundleGasPrice": "149750",
    "bundleHash": "0xc65ffb37c506c121a1ba57817f13c50075e35ba764bfbd95c97642118a9f67ba",
    "coinbaseDiff": "5915574250",
    "ethSentToCoinbase": "0",
    "gasFees": "5915574250",
    "results": [
      {
        "coinbaseDiff": "5915574250",
        "ethSentToCoinbase": "0",
        "fromAddress": "0x5950baf9a858e3ea17fd6e753d3ac6f3e9152387",
        "gasFees": "5915574250",
        "gasPrice": "149750",
        "gasUsed": 39503,
        "toAddress": "0x4e742319f6b0fec4afa504fc8ed3ceab0fb751a2",
        "txHash": "0x26f210abcb961f7c351ccd0c58fc433c7e66316f4e46197fe8903bfa7dbb0df1",
        "value": "0x0000000000000000000000000000000000000000000000000000000000000001"
      }
    ],
    "stateBlockNumber": 17120512,
    "totalGasUsed": 39503
  }
}
```

**SDK Code**

```python
import requests

url = "https://rpc.plume.org/YOUR_API_KEY"

payload = [
    {
        "blockNumber": "0x1053d01",
        "stateBlockNumber": "0x1053d00",
        "txs": ["0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64"]
    }
]
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://rpc.plume.org/YOUR_API_KEY';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '[{"blockNumber":"0x1053d01","stateBlockNumber":"0x1053d00","txs":["0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64"]}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://rpc.plume.org/YOUR_API_KEY"

	payload := strings.NewReader("[\n  {\n    \"blockNumber\": \"0x1053d01\",\n    \"stateBlockNumber\": \"0x1053d00\",\n    \"txs\": [\n      \"0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64\"\n    ]\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://rpc.plume.org/YOUR_API_KEY")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"blockNumber\": \"0x1053d01\",\n    \"stateBlockNumber\": \"0x1053d00\",\n    \"txs\": [\n      \"0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64\"\n    ]\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://rpc.plume.org/YOUR_API_KEY")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"blockNumber\": \"0x1053d01\",\n    \"stateBlockNumber\": \"0x1053d00\",\n    \"txs\": [\n      \"0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64\"\n    ]\n  }\n]")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://rpc.plume.org/YOUR_API_KEY', [
  'body' => '[
  {
    "blockNumber": "0x1053d01",
    "stateBlockNumber": "0x1053d00",
    "txs": [
      "0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64"
    ]
  }
]',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://rpc.plume.org/YOUR_API_KEY");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"blockNumber\": \"0x1053d01\",\n    \"stateBlockNumber\": \"0x1053d00\",\n    \"txs\": [\n      \"0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64\"\n    ]\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  [
    "blockNumber": "0x1053d01",
    "stateBlockNumber": "0x1053d00",
    "txs": ["0x02f8b2830a7679820121830249f0830249f082c0e5944e742319f6b0fec4afa504fc8ed3ceab0fb751a280b844a9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000c080a0b380169cf085839adb10299cf2b1d1925e3afaeccedf42e4f6b9e35f95329d7ca05e6da65415846c7d25b5e818000c28951b69182b8e70c616d2803be15a8f3b64"]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://rpc.plume.org/YOUR_API_KEY")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```