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

# trace_get | BNB Chain

BNB API method `trace_get` retrieves a specific trace from a transaction by its index. This method is useful for developers, auditors, and analysts examining a particular step or operation within a transaction's execution path. It allows for a focused analysis of a segment of the transaction's trace, providing detailed information about a single operation, including calls to other contracts, state changes, and execution outcomes.

## Parameters

* `transactionHash` — The transaction hash from which you want to retrieve a trace, specified as a hexadecimal string.
* `traceIndex` — An array of integers specifying the trace index to retrieve. The index reflects the order of operations within the transaction's execution path.

## Response

* `result` — The trace data for the specified index within the transaction. This includes detailed information about the operation, such as the operation type, call data, value transferred, and the result of the operation. This focused trace can provide insights into specific actions taken by the transaction, including interactions with smart contracts and changes to the blockchain state.

## Use case

The \`trace\_getThe method is invaluable for detailed transaction analysis, especially when investigating complex transactions involving multiple steps or interactions with various contracts. Developers can use it to debug specific operations within a transaction, auditors can employ it to verify the correctness and security of particular steps, and analysts might use it to study the behavior of contracts and transactions on a granular level.


## OpenAPI

````yaml /openapi/bnb_node_api/trace_get.json POST /35848e183f3e3303c8cfeacbea831cab
openapi: 3.0.0
info:
  title: BNB Node API
  version: 1.0.0
  description: >-
    API for interacting with a BNB node, designed to retrieve specific trace
    data from a transaction.
servers:
  - url: https://bsc-mainnet.core.chainstack.com
security: []
paths:
  /35848e183f3e3303c8cfeacbea831cab:
    post:
      tags:
        - trace
      summary: trace_get
      operationId: getTrace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: trace_get
                params:
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: array
                        items:
                          type: string
                  default:
                    - >-
                      0xf6bc709b8086048bff62dba8275922f9bf1fc1f9d82994037d3e7179597b3d1d
                    - - '0x1'
      responses:
        '200':
          description: Specific trace data retrieved from the transaction.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````