> ## 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_replayBlockTransactions

> Replays all transactions in a block returning the requested traces for each transaction.

### Parameters

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

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\_replayBlockTransactions)

JSON-RPC method name.

**params** `object` *required*

Parameters for the trace\_replayBlockTransactions method: \[defaultBlock, traceTypes].

Positional parameters for `trace_replayBlockTransactions`:

<ul>
  <li>`params[0]`: Block identifier. Can be an integer block number or a string tag: "latest", "earliest", or "pending".</li>
  <li>`params[1]`: Types of traces to collect: "vmTrace", "trace", and/or "stateDiff".</li>
</ul>

### Returns

**result** `array`

Array - Block transactions traces.

**items**

**items\[]** `object`

Single block-level trace result.

**properties**

**action** `object`

Details of the action performed (e.g., call, create, suicide).

**properties**

**callType** `string`

Type of call (e.g., call, delegatecall, staticcall, etc.).

**from** `string`

Address that initiated the action.

**to** `string`

Recipient address (if applicable).

**input** `string`

Input data sent along with the call.

**value** `string`

Value transferred in Wei.

**init** `string`

Contract creation code (only for create).

**address** `string`

Contract address created or affected.

**balance** `string`

Balance involved in suicide actions.

**result** `object`

Result of the action (if successful).

**properties**

**gasUsed** `string`

Gas used for this action.

**output** `string`

Returned data (if any).

**code** `string`

Deployed contract code (if applicable).

**address** `string`

Address created (for contract creations).

**subtraces** `integer`

Number of nested trace steps inside this one.

**traceAddress** `array`

Path to this trace in nested trace structure.

**items**

**items\[]** `integer`

**type** `string`

Type of trace (e.g., call, create, suicide).

**error** `string`

Error message if the trace step failed.

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

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


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