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

> Returns all traces of given transaction

### Parameters

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

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

JSON-RPC method name.

**params** `object`

Parameters for method trace\_transaction: \[transactionHash].

Positional parameters for `trace_transaction`:

<ul>
  <li>`params[]`: 32 Bytes - Hash of the transaction.</li>
</ul>

### Returns

**result** `array`

Array - Traces of given transaction

**items**

**items\[]** `array`

Traces matching given filter.

**items**

**items\[]** `object`

**properties**

**action** `object`

Details of the trace action.

**properties**

**callType** `string`

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

**from** `string`

Address that initiated the action.

**gas** `string`

Gas provided for the action (hex string).

**input** `string`

Input data for the action (hex string).

**to** `string`

Recipient address (if applicable).

**value** `string`

Value transferred in Wei (hex string).

**blockHash** `string`

Hash of the block in which this trace occurred.

**blockNumber** `integer`

Block number in which this trace occurred.

**result** `object`

Result of the trace action.

**properties**

**gasUsed** `string`

Gas used during this action (hex string).

**output** `string`

Returned output data (hex string).

**subtraces** `integer`

Number of nested trace steps inside this trace.

**traceAddress** `array`

Path to this trace in the nested trace structure.

**items**

**items\[]** `integer`

**transactionHash** `string`

Hash of the transaction this trace belongs to.

**transactionPosition** `integer`

Index position of the transaction within the block.

**type** `string`

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

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

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "callType": "call",
        "from": "0x1c39ba39e4735cb65978d4db400ddd70a72dc750",
        "gas": "0x13e99",
        "input": "0x16c72721",
        "to": "0x2bd2326c993dfaef84f696526064ff22eba5b362",
        "value": "0x0"
      },
      "blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
      "blockNumber": 3068185,
      "result": {
        "gasUsed": "0x183",
        "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
      },
      "subtraces": 0,
      "traceAddress": [
        0
      ],
      "transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
      "transactionPosition": 2,
      "__truncated": true
    }
  ]
}
```


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