---
title: "Get step-by-step execution trace for a specific transaction"
method: GET
path: "/{chain_id}/api/v2/transactions/{transaction_hash_param}/raw-trace"
tags: ["transactions"]
---

# Get step-by-step execution trace for a specific transaction

`GET /{chain_id}/api/v2/transactions/{transaction_hash_param}/raw-trace`

Retrieves the raw execution trace for a transaction, showing the step-by-step execution path and all contract interactions.

## Path parameters

- `transaction_hash_param` string, required
- `chain_id` string, required

## Response `200`

Raw execution trace for the specified transaction.

- object[]
  - `action` object, required
    - `callType` 'call' | 'callcode' | 'delegatecall' | 'staticcall'
    - `from` string, required
    - `gas` string, required
    - `init` string
    - `input` string, required
    - `to` string
    - `value` string, required
  - `result` object
    - `gasUsed` string, required
    - `output` string, required
  - `subtraces` integer, required
  - `traceAddress` integer[], required
  - `transactionHash` string, nullable
  - `type` 'call' | 'create' | 'create2' | 'reward' | 'selfdestruct' | 'stop' | 'invalid', required

## Other responses

- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.dev/blockscout/apis/blockscout-pro-api.md) · [All operations](https://skmtc.dev/blockscout/apis/blockscout-pro-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockscout/blockscout-pro-api/revisions/59ac5466233b/schema)
