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

# trace_get

Returns a single trace of a transaction, selected by its position in the transaction's trace tree.

This method will use `80` [Compute Units](/nodeapi/about/billing).

***

## **Parameters**

`hash` - String - <span style={{color: "red"}}>Required</span> - The hash of a transaction

`indices` - Array - <span style={{color: "red"}}>Required</span> - The index positions of the trace to return, as hexadecimal strings. `["0x0"]` returns the top-level call; `["0x0", "0x1"]` returns the second sub-call of the first call.

## **Returns**

`object` - The selected trace, which has the following fields (all return types are hexadecimal unless otherwise noted):

* `action` - object - The ParityTrace action object containing call details
  * `from` - string - The address of the sender
  * `callType` - string - The type of method such as call, staticcall, delegatecall
  * `gas` - string - The gas provided by the sender, encoded as hexadecimal
  * `input` - string - The input data sent along with the transaction
  * `to` - string - The address of the receiver
  * `value` - string - The integer of the value sent with this transaction, encoded as hexadecimal
* `blockHash` - string - The hash of the block where this transaction was included
* `blockNumber` - integer - The block number where this transaction was in
* `result` - object - The result of the trace execution
  * `gasUsed` - string - The amount of gas used by this specific trace
  * `output` - string - The return value of the contract call, empty if no RETURN executed
* `subtraces` - integer - The number of subtraces (internal calls) made by this trace
* `traceAddress` - array - The list of addresses where the call executed, including parent addresses and call order
* `transactionHash` - string - The hash of the transaction
* `transactionPosition` - integer - The transaction index position within the block
* `type` - string - The type of the trace, such as call or create

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "action": {
            "from": "0xe1d9b2b918e7bf4c27b108c7d78c839356b7c69f",
            "callType": "call",
            "gas": "0x2d7308",
            "input": "0x322f62ba00000000000000000000000035e4876102389f13d78381d317ff4612412a56c9",
            "to": "0xf0542ed44d268c85875b3b84b0e7ce0773e9aeef",
            "value": "0x16345785d8a0000"
        },
        "blockHash": "0xaa20f7bde5be60603f11a45fc4923aab7552be775403fc00c2e6b805e6297dbe",
        "blockNumber": 10000000,
        "result": {
            "gasUsed": "0x3ed3d",
            "output": "0x"
        },
        "subtraces": 1,
        "traceAddress": [],
        "transactionHash": "0xc2f74145a896b6a5b938216d130f5c382d3d77d5d501ab41e43681cbebcf3b97",
        "transactionPosition": 21,
        "type": "call"
    }
}
```

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
      -X POST \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","method":"trace_get","params":["0xc2f74145a896b6a5b938216d130f5c382d3d77d5d501ab41e43681cbebcf3b97",["0x0"]],"id":1}'
  ```

  ```bash title="testnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://sepolia.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
      -X POST \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","method":"trace_get","params":["0x556e73d7a40c0a55dd675d4e0803033454c27e6c17158ea55e59546eb79b6e65",["0x0"]],"id":1}'
  ```
</CodeGroup>


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