> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# trace_replayTransaction

> Replays a transaction, returning the traces.

### Parameters

**chainId** `string` *required* (default: 10)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: trace\_replayTransaction)

JSON-RPC method name.

**params** `object` *required*

Parameters for method trace\_replayTransaction: \[hash, traceTypes].

Positional parameters for `trace_replayTransaction`:

<ul>
  <li>`params[0]`: 32 Bytes - Hash of the transaction.</li>
  <li>`params[1]`: Types of traces to collect: "vmTrace", "trace", and/or "stateDiff".</li>
</ul>

### Returns

**result** `object`

Object - Block traces.

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "trace_replayTransaction",
    "params": [
      "0x02d4a872e096445e80d05276ee756cefef7f3b376bcec14246469c0cd97dad8f",
      [
        "trace"
      ]
    ]
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "output": "0x",
    "stateDiff": null,
    "trace": [
      {
        "action": {
          "__truncated": true
        },
        "result": {
          "__truncated": true
        },
        "subtraces": 0,
        "traceAddress": [
          "..."
        ],
        "type": "call"
      }
    ],
    "vmTrace": null
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.