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

# arbtrace_replayBlockTransactions

> Replays all transactions in a given block and returns execution traces for each transaction. Supported only on OpenEthereum and Erigon (trace mode required) for blocks prior to 22207816.

### Parameters

<ParamField query="chainId" type="string" default="421614" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="arbtrace_replayBlockTransactions" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0xb48c3c",["trace"]]} placeholder="[&#x22;0xb48c3c&#x22;,[&#x22;trace&#x22;]]" required>
  Array with the block number and trace types to return.

  Positional parameters for <code>arbtrace\_replayBlockTransactions</code>:

  <ul>
    <li><code>params\[0]</code>: Block number to replay (hex format).</li>
    <li><code>params\[1]</code>: Trace types to include for each transaction in the block.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  Array of trace objects, one per transaction in the block.

  <Expandable title="items">
    <ResponseField name="items[]" type="object">
      <Expandable title="properties">
        <ResponseField name="output" type="string">
          Output returned by the contract call (hex).
        </ResponseField>

        <ResponseField name="trace" type="array">
          Execution trace of the transaction.

          <Expandable title="items">
            <ResponseField name="items[]" type="object">
              <Expandable title="properties">
                <ResponseField name="action" type="object">
                  <Expandable title="properties">
                    <ResponseField name="from" type="string" />

                    <ResponseField name="to" type="string" />

                    <ResponseField name="callType" type="string" />

                    <ResponseField name="gas" type="string" />

                    <ResponseField name="input" type="string" />

                    <ResponseField name="value" type="string" />
                  </Expandable>
                </ResponseField>

                <ResponseField name="result" type="object">
                  <Expandable title="properties">
                    <ResponseField name="gasUsed" type="string" />

                    <ResponseField name="output" type="string" />
                  </Expandable>
                </ResponseField>

                <ResponseField name="subtraces" type="integer" />

                <ResponseField name="traceAddress" type="array">
                  <Expandable title="items">
                    <ResponseField name="items[]" type="integer" />
                  </Expandable>
                </ResponseField>

                <ResponseField name="transactionHash" type="string" />

                <ResponseField name="type" type="string" />
              </Expandable>
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="vmTrace" type="object">
          Full virtual machine trace if requested.
        </ResponseField>

        <ResponseField name="stateDiff" type="object">
          State diff for the transaction if requested.
        </ResponseField>

        <ResponseField name="destroyedContracts" type="array">
          Contracts destroyed during execution.

          <Expandable title="items">
            <ResponseField name="items[]" type="string" />
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

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

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": []
  }
  ```
</ResponseExample>
