> ## 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_replayTransaction | BNB Chain

BNB API method `trace_replayTransaction` replays a single transaction using the trace module, returning detailed trace data about its execution. This method is crucial for developers, auditors, and analysts who need to understand the precise execution flow of a transaction, including calls made to other contracts, state changes, and the execution outcome.

## Parameters

* `transactionHash` — the hash of the transaction you want to replay, specified as a hexadecimal string.
* `traceTypes` — an array of strings specifying the types of traces to return, with options including:
  * `vmTrace` — virtual machine trace.
  * `trace` — standard execution trace.
  * `stateDiff` — state difference trace.

## Response

* `result` — The trace data for the specified transaction. Depending on the `traceTypes` requested, this may include a detailed execution trace (`vmTrace`), a step-by-step list of executed operations (`trace`), or a summary of state changes (`stateDiff`).

## Use case

The `trace_replayTransaction` method is invaluable for a detailed analysis of individual transactions. It can be used by developers to debug smart contract interactions, by auditors to verify transaction integrity and security, and by analysts to understand the effects of a transaction on the blockchain state. This method provides a deep dive into the transaction's execution, offering insights not readily available through standard transaction receipts.


## OpenAPI

````yaml /openapi/bnb_node_api/trace_replayTransaction.json POST /35848e183f3e3303c8cfeacbea831cab
openapi: 3.0.0
info:
  title: BNB Node API
  version: 1.0.0
  description: >-
    API for interacting with a BNB node, focusing on replaying specific
    transactions with trace options.
servers:
  - url: https://bsc-mainnet.core.chainstack.com
security: []
paths:
  /35848e183f3e3303c8cfeacbea831cab:
    post:
      tags:
        - trace
      summary: trace_replayTransaction
      operationId: replayTransaction
      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_replayTransaction
                params:
                  type: array
                  items:
                    anyOf:
                      - type: string
                      - type: array
                        items:
                          type: string
                  default:
                    - >-
                      0xf6bc709b8086048bff62dba8275922f9bf1fc1f9d82994037d3e7179597b3d1d
                    - - trace
      responses:
        '200':
          description: Results of replaying the transaction with trace.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````