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

BNB API method `trace_callMany` allows for multiple call transactions and returns their trace data. This method is particularly useful for developers who wish to simulate the execution of several transactions in sequence without broadcasting them to the network, enabling a comprehensive analysis of how a series of transactions would interact with the Ethereum Virtual Machine (EVM) and affect the blockchain state.

## Parameters

* `transactions` — an array of objects, each representing a transaction to be executed. Each transaction object includes fields such as `from`, `to`, `gas`, `gasPrice`, `value`, and `data`.
* `traceTypes` — an array of strings specifying the types of traces to return for each transaction, with options including:
  * `vmTrace` — virtual machine trace.
  * `trace` — standard execution trace.
  * `stateDiff` — state difference trace.
* `blockNumber` — the block number against which all the transactions should be executed, with values:
  * `specific block number` — execute against the specified block.
  * `earliest` — the earliest block (usually genesis).
  * `latest` — the most recent block.
  * `pending` — the current pending state and transactions.

## Response

* `result` — An array containing the trace data for each executed transaction, as specified by the `traceTypes`. This data provides detailed insights into the execution path of each transaction, including VM operations, state changes, and other relevant information that helps understand the transactions' impact on the blockchain state.

## Use case

The `trace_callMany`The method is invaluable for developers and analysts who must understand the cumulative effect of multiple transactions on the blockchain state. This could be used to test complex interactions between smart contracts, debug transaction sequences for decentralized applications (DApps), or estimate the gas usage for a series of transactions. It provides a sandbox environment for safely simulating transactions, allowing for thorough testing and analysis without the risk of consuming gas or affecting the live blockchain.


## OpenAPI

````yaml /openapi/bnb_node_api/trace_callMany.json POST /35848e183f3e3303c8cfeacbea831cab
openapi: 3.0.0
info:
  title: BNB Node API
  version: 1.0.0
  description: This is an API for interacting with a BNB node.
servers:
  - url: https://bsc-mainnet.core.chainstack.com
security: []
paths:
  /35848e183f3e3303c8cfeacbea831cab:
    post:
      tags:
        - trace
      summary: trace_callMany
      operationId: traceCallMany
      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_callMany
                params:
                  type: array
                  items:
                    anyOf:
                      - type: array
                        items:
                          anyOf:
                            - type: array
                              items:
                                anyOf:
                                  - type: object
                                    properties:
                                      from:
                                        type: string
                                        nullable: true
                                      to:
                                        type: string
                                      data:
                                        type: string
                                  - type: array
                                    items:
                                      type: string
                            - type: string
                  default:
                    - - - from: '0x407d73d8a49eeb85d32cf465507dd71d507100c1'
                          to: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b'
                          data: >-
                            0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100
                        - - trace
                          - vmTrace
                      - - from: null
                          to: '0x8965349fb649A33a30cbFDa057D8eC2C48AbE2A2'
                          data: >-
                            0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59
                        - - trace
                          - vmTrace
                    - latest
      responses:
        '200':
          description: The call's traces.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````