> ## 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.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/bnb-replayblocktransactions",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# trace_replayBlockTransactions

BNB API method `trace_replayBlockTransactions` replays transactions in a specified block individually, returning the trace data for each transaction. This method is invaluable for developers, auditors, and analysts who wish to inspect the execution path of transactions within a block, including calls to other contracts, state changes, and execution outcomes, without affecting the live blockchain.

## Parameters

* `blockHash` or `blockNumber` — The hash or number of the block whose transactions you want to replay, specified as:

  * `Hexadecimal` — for the block hash.
  * `Hexadecimal` or `decimal number` — for the block number.
* `traceTypes` — An array of strings specifying the types of traces to return for each transaction, with options including:

  * `vmTrace` — virtual machine trace.
  * `trace` — standard trace.
  * `stateDiff` — state difference.

## Response

* `result` — An array containing the trace data for each transaction in the specified block. Each item in the array represents the trace of a single transaction, detailing calls to contracts, value transfers, and other relevant state changes that occurred during its execution.

## Use case

The `trace_replayBlockTransactions` method is particularly useful for conducting detailed analyses of block transactions. Developers can use it to debug contract interactions within a specific block, auditors can use it to verify the correctness and security of transactions, and analysts might use it to study transaction patterns or detect anomalies. This method provides a granular view of transaction execution, which is essential for understanding complex interactions on the blockchain.


## OpenAPI

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

````