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

> Returns all execution traces of a given transaction. This is a basic trace endpoint supported on OpenEthereum and Erigon (trace mode required) for blocks before 22207816.

### Parameters

<ParamField query="chainId" type="string" default="42161" 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_transaction" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0xa3a97b9d1de234efb2ca9374c5918f9a7fc2adff4102aff686df01b6a3dc74f7"]} placeholder="[&#x22;0xa3a97b9d1de234efb2ca9374c5918f9a7fc2adff4102aff686df01b6a3dc74f7&#x22;]" required>
  Array with a single element: the hash of the transaction.

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

  <ul>
    <li><code>params\[]</code>: The transaction hash (32-byte hex string).</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  Array of Parity trace objects for the specified 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">
              Sender address
            </ResponseField>

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

            <ResponseField name="callType" type="string">
              Call type (e.g., call, delegatecall)
            </ResponseField>

            <ResponseField name="gas" type="string">
              Gas sent (hex)
            </ResponseField>

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

            <ResponseField name="value" type="string">
              Transferred value in wei (hex)
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="blockHash" type="string">
          Block hash where the tx was included
        </ResponseField>

        <ResponseField name="blockNumber" type="string">
          Block number (hex)
        </ResponseField>

        <ResponseField name="error" type="string">
          Error message if any
        </ResponseField>

        <ResponseField name="result" type="object">
          <Expandable title="properties">
            <ResponseField name="gasUsed" type="string">
              Gas used for the call (hex)
            </ResponseField>

            <ResponseField name="output" type="string">
              Return data from the call (hex)
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="subtraces" type="integer">
          Number of sub-calls
        </ResponseField>

        <ResponseField name="traceAddress" type="array">
          Execution path hierarchy (list of integers).

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

        <ResponseField name="transactionHash" type="string">
          Hash of the transaction
        </ResponseField>

        <ResponseField name="transactionPosition" type="integer">
          Index of tx in block
        </ResponseField>

        <ResponseField name="type" type="string">
          Type of the trace (e.g., call, create)
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

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

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