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

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

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



## OpenAPI

````yaml /openapi-specs/pro-api-v11.yaml get /v2/transactions/{transaction_hash_param}/raw-trace
openapi: 3.0.0
info:
  contact:
    email: info@blockscout.com
  title: Blockscout
  version: 11.0.3
servers:
  - url: http://localhost/api
    variables: {}
security: []
tags:
  - name: blocks
  - name: transactions
  - name: addresses
  - name: internal-transactions
  - name: tokens
  - name: token-transfers
  - name: smart-contracts
  - name: config
  - name: main-page
  - name: search
  - name: stats
  - name: csv-export
  - name: account-abstraction
  - name: withdrawals
  - name: advanced-filters
  - name: arbitrum
  - name: legacy
  - name: optimism
  - name: mud
  - name: celo
  - name: scroll
  - name: zilliqa
paths:
  /v2/transactions/{transaction_hash_param}/raw-trace:
    get:
      tags:
        - transactions
      summary: Get step-by-step execution trace for a specific transaction
      description: >-
        Retrieves the raw execution trace for a transaction, showing the
        step-by-step execution path and all contract interactions.
      operationId: BlockScoutWeb.API.V2.TransactionController.raw_trace
      parameters:
        - description: Transaction hash in the path
          in: path
          name: transaction_hash_param
          required: true
          schema:
            $ref: '#/components/schemas/FullHash'
        - description: API key for rate limiting or for sensitive endpoints
          in: query
          name: apikey
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Secret key for getting access to restricted resources
          in: query
          name: key
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RawTrace'
          description: Raw execution trace for the specified transaction.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
      callbacks: {}
components:
  schemas:
    FullHash:
      nullable: false
      pattern: ^0x([A-Fa-f0-9]{64})$
      title: FullHash
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FullHash
      x-validate: null
    RawTrace:
      items:
        additionalProperties: false
        properties:
          action:
            additionalProperties: false
            properties:
              callType:
                enum:
                  - call
                  - callcode
                  - delegatecall
                  - staticcall
                type: string
                x-struct: null
                x-validate: null
              from:
                $ref: '#/components/schemas/AddressHash'
              gas:
                $ref: '#/components/schemas/HexString'
              init:
                $ref: '#/components/schemas/HexString'
              input:
                $ref: '#/components/schemas/HexString'
              to:
                $ref: '#/components/schemas/AddressHash'
              value:
                $ref: '#/components/schemas/HexString'
            required:
              - from
              - gas
              - input
              - value
            type: object
            x-struct: null
            x-validate: null
          result:
            additionalProperties: false
            properties:
              gasUsed:
                $ref: '#/components/schemas/HexString'
              output:
                $ref: '#/components/schemas/HexString'
            required:
              - gasUsed
              - output
            type: object
            x-struct: null
            x-validate: null
          subtraces:
            minimum: 0
            type: integer
            x-struct: null
            x-validate: null
          traceAddress:
            items:
              type: integer
              x-struct: null
              x-validate: null
            type: array
            x-struct: null
            x-validate: null
          transactionHash:
            $ref: '#/components/schemas/FullHashNullable'
          type:
            enum:
              - call
              - create
              - create2
              - reward
              - selfdestruct
              - stop
              - invalid
            type: string
            x-struct: null
            x-validate: null
        required:
          - action
          - subtraces
          - traceAddress
          - type
        type: object
        x-struct: null
        x-validate: null
      title: RawTrace
      type: array
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.Transaction.RawTrace
      x-validate: null
    NotFoundResponse:
      description: Response returned when the requested resource is not found
      properties:
        message:
          description: Error message indicating the requested resource was not found
          example: Resource not found
          type: string
          x-struct: null
          x-validate: null
      title: NotFoundResponse
      type: object
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.ErrorResponses.NotFoundResponse
      x-validate: null
    JsonErrorResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: null value where string expected
                type: string
                x-struct: null
                x-validate: null
              source:
                properties:
                  pointer:
                    example: /data/attributes/petName
                    type: string
                    x-struct: null
                    x-validate: null
                required:
                  - pointer
                type: object
                x-struct: null
                x-validate: null
              title:
                example: Invalid value
                type: string
                x-struct: null
                x-validate: null
            required:
              - title
              - source
              - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      required:
        - errors
      title: JsonErrorResponse
      type: object
      x-struct: Elixir.OpenApiSpex.JsonErrorResponse
      x-validate: null
    AddressHash:
      nullable: false
      pattern: ^0x([A-Fa-f0-9]{40})$
      title: AddressHash
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.AddressHash
      x-validate: null
    HexString:
      nullable: false
      pattern: ^0x([A-Fa-f0-9]*)$
      title: HexString
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.HexString
      x-validate: null
    FullHashNullable:
      nullable: true
      pattern: ^0x([A-Fa-f0-9]{64})$
      title: FullHashNullable
      type: string
      x-struct: Elixir.BlockScoutWeb.Schemas.API.V2.General.FullHashNullable
      x-validate: null

````