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

# trace_replayBlockTransactions

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

**Requires enablement:** `trace_*` methods are not on Conduit's default method allowlist. Contact Conduit support to enable them for your chain. They are supported on Reth-based (op-reth) endpoints only; Geth- and Nitro-based endpoints return `-32601 method not found`.

Re-executes every transaction in a block, in order, and returns the requested trace types for each. On OP Stack chains the first entry is the L1 attributes deposit transaction.

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

Reference: https://docs.conduit.xyz/rpc-nodes/json-rpc-reference/trace-replay-block-transactions

## Request

### Body (application/json)

This endpoint expects an object.

- `blockIdentifier` (BlockNumberOrTagOrHash, required) — Block number, tag, or hash.
- `traceTypes` (list of enum, required) — Trace types to return.
  - Allowed values: `trace`, `vmTrace`, `stateDiff`

## Response

### 200

One replay result per transaction, with `transactionHash` set.

- `list of TraceResults`

## Types

### BlockNumberOrTagOrHash

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

### TraceResults

Result of `trace_call`, `trace_replay*`, and `trace_rawTransaction`. Fields that were not requested in `traceTypes` are `null`.

- `output` (string, optional)
- `trace` (list of ParityTrace, optional, nullable) — Call traces, when `trace` is requested.
- `vmTrace` (TraceResultsVmTrace, optional, nullable) — Opcode-level trace, when `vmTrace` is requested.
- `stateDiff` (TraceResultsStateDiff, optional, nullable) — State changes keyed by address, when `stateDiff` is requested.
- `transactionHash` (string, optional) — Set by `trace_replayBlockTransactions`.

### ParityTrace

Parity-style flat trace entry returned by `trace_*` methods. `traceAddress` is the entry's path in the call tree (`[]` = top-level call). Block-level methods also set `blockHash`, `blockNumber`, `transactionHash`, and `transactionPosition`.

- `type` (string, optional) — `call`, `create`, `suicide`, or `reward`.
- `action` (ParityTraceAction, optional) — Call or create inputs.
- `result` (ParityTraceResult, optional, nullable) — Call outputs; `null` if the call errored.
- `error` (string, optional) — Error message, if the call failed.
- `subtraces` (integer, optional) — Number of direct child calls.
- `traceAddress` (list of integer, optional)
- `blockHash` (string, optional)
- `blockNumber` (integer, optional)
- `transactionHash` (string, optional)
- `transactionPosition` (integer, optional)

### TraceResultsVmTrace

Opcode-level trace, when `vmTrace` is requested.

### TraceResultsStateDiff

State changes keyed by address, when `stateDiff` is requested.

### ParityTraceAction

Call or create inputs.

- `from` (string, optional)
- `to` (string, optional)
- `callType` (string, optional) — `call`, `delegatecall`, `staticcall`, or `callcode`.
- `gas` (string, optional)
- `input` (string, optional)
- `value` (string, optional)

### ParityTraceResult

Call outputs; `null` if the call errored.

- `gasUsed` (string, optional)
- `output` (string, optional)

## Examples

**Request**

```json
[
  "0x1053d01",
  [
    "trace"
  ]
]
```

**Response**

```json
{
  "id": "1",
  "jsonrpc": "2.0",
  "result": [
    {
      "output": "0x",
      "stateDiff": null,
      "trace": [
        {
          "action": {
            "callType": "call",
            "from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
            "gas": "0xee9bc",
            "input": "0x3db6be2b00000558000c3c9d0000000000000002000000006ade5abb000000000190e05b00000000000000000000000000000000000000000000000000000000029b2dbe0000000000000000000000000000000000000000000000000000000000240fca23c2e30c52d1fe3822aa103f956b847962dbfee085c3f872e1eed03cd791d6e0000000000000000000000000c4f94828b1f1c43a35783975b1c0c8703c834b150000000000000000000000000190",
            "to": "0x4200000000000000000000000000000000000015",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0x5c12",
            "output": "0x"
          },
          "subtraces": 1,
          "traceAddress": [],
          "type": "call"
        },
        {
          "action": {
            "callType": "delegatecall",
            "from": "0x4200000000000000000000000000000000000015",
            "gas": "0xe9b0f",
            "input": "0x3db6be2b00000558000c3c9d0000000000000002000000006ade5abb000000000190e05b00000000000000000000000000000000000000000000000000000000029b2dbe0000000000000000000000000000000000000000000000000000000000240fca23c2e30c52d1fe3822aa103f956b847962dbfee085c3f872e1eed03cd791d6e0000000000000000000000000c4f94828b1f1c43a35783975b1c0c8703c834b150000000000000000000000000190",
            "to": "0x3ba4007f5c922fbb33c454b41ea7a1f11e83df2c",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0x489b",
            "output": "0x"
          },
          "subtraces": 0,
          "traceAddress": [
            0
          ],
          "type": "call"
        }
      ],
      "transactionHash": "0x20e2d55abec2eec80e1e97bdd8c8983326b55f6de91c8b5aa4c51a4b622b75a7",
      "vmTrace": null
    },
    {
      "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
      "stateDiff": null,
      "trace": [
        {
          "action": {
            "callType": "call",
            "from": "0x5950baf9a858e3ea17fd6e753d3ac6f3e9152387",
            "gas": "0x6c41",
            "input": "0xa9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000",
            "to": "0x4e742319f6b0fec4afa504fc8ed3ceab0fb751a2",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0x586b",
            "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
          },
          "subtraces": 1,
          "traceAddress": [],
          "type": "call"
        },
        {
          "action": {
            "callType": "delegatecall",
            "from": "0x4e742319f6b0fec4afa504fc8ed3ceab0fb751a2",
            "gas": "0x582f",
            "input": "0xa9059cbb000000000000000000000000ed9ab5bc05a0152b9dc2f7902e8369af7bc187710000000000000000000000000000000000000000000110bb5e07796cd9900000",
            "to": "0xa18f62e70b0370df566b351dc3a155d26852ef16",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0x459e",
            "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
          },
          "subtraces": 0,
          "traceAddress": [
            0
          ],
          "type": "call"
        }
      ],
      "transactionHash": "0x26f210abcb961f7c351ccd0c58fc433c7e66316f4e46197fe8903bfa7dbb0df1",
      "vmTrace": null
    }
  ]
}
```

**SDK Code**

```python
import requests

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

payload = ["0x1053d01", ["trace"]]
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: '["0x1053d01",["trace"]]'
};

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  \"0x1053d01\",\n  [\n    \"trace\"\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  \"0x1053d01\",\n  [\n    \"trace\"\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  \"0x1053d01\",\n  [\n    \"trace\"\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' => '[
  "0x1053d01",
  [
    "trace"
  ]
]',
  '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  \"0x1053d01\",\n  [\n    \"trace\"\n  ]\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = ["0x1053d01", ["trace"]] 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()
```