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

# debug_traceCallMany

> Executes a list of bundles (a bundle is a collection of transactions), without creating transactions on the blockchain. Returns their traces.

### Parameters

**chainId** `string` *required* (default: 100)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: debug\_traceCallMany)

JSON-RPC method name.

**params** `object` *required*

Parameters for debug\_traceCallMany. 1. Bundles (required): an array of bundles. Each bundle is an object with:    - transactions: an array of transaction objects (each with fields such as from, to, value, data),    - blockOverride (optional): an object with overrides (blockNumber, blockHash mapping, coinbase, timestamp, difficulty, gasLimit, baseFee). 2. Simulation context (required): an object with blockIdentifier (a hex block number or one of "latest", "earliest", "pending", "safe", "finalized") and transactionIndex (integer, default -1). 3. State overrides (optional): an object mapping addresses to state override objects (here, at least a balance override as a hex string). 4. Timeout (optional): integer timeout in milliseconds (default 5000). 5. Trace type (optional): an object with tracer (string, enum: callTracer, prestateTracer), tracerConfig (object), and onlyTopCall (boolean).

Positional parameters for `debug_traceCallMany`:

<ul>
  <li>`params[0]`: List of bundles. Each bundle is an object with transactions and an optional blockOverride.</li>
  <li>`params[1]`: Simulation context. Contains blockIdentifier (a hex block number or tag) and transactionIndex (default -1).</li>
  <li>`params[2]`: Optional state overrides: a mapping from address to an override object (e.g. balance).</li>
  <li>`params[3]`: Simulation timeout in milliseconds.</li>
  <li>`params[4]`: Tracer configuration (optional). Contains tracer type, optional tracerConfig, and onlyTopCall flag.</li>
</ul>

### Returns

**result** `array`

Array of trace responses corresponding to each simulated bundle. Each trace response is one of: callTracer response, prestateTracer response, or opcode (struct) response.

**items**

**items\[]** `oneOf`

CallTracer response.

**variants**

**variant1** `object`

CallTracer response.

**properties**

**type** `string`

Type of the call.

**from** `string`

Sender address.

**to** `string`

Recipient address.

**gas** `string`

Gas provided by the sender.

**transactionValue** `string`

Actual value deducted from the sender (per gas).

**gasUsed** `string`

Total gas used by the call.

**input** `string`

Input data (4-byte method selector).

**output** `string`

Return value (hex).

**error** `string`

Error message if execution failed.

**calls** `array`

List of sub-calls (nested call frames).

**items**

**items\[]** `object`

A nested call frame with additional details.

**revertReason** `string`

Revert reason, if available.

**variant2** `object`

PrestateTracer response.

**properties**

**contractAddress** `string`

Smart contract address associated with the result.

**balance** `string`

Balance of the contract in wei (hex).

**code** `string`

Bytecode of the contract (hex).

**nonce** `integer`

Nonce of the contract account.

**storage** `object`

Mapping of storage slots (hex keys and values).

**variant3** `object`

Opcode (struct) trace response.

**properties**

**failed** `boolean`

Indicates whether the execution failed.

**gas** `string`

Total consumed gas (hex).

**returnValue** `string`

Return value of the executed call (hex).

**structLogs** `array`

Array of execution step logs.

**items**

**items\[]** `object`

**properties**

**pc** `integer`

Program counter.

**op** `string`

Operation name.

**gas** `string`

Available gas at this step.

**gasCost** `string`

Gas cost of the operation.

**depth** `integer`

Call depth.

**stack** `array`

Stack values at this step.

**items**

**items\[]** `string`

**storage** `object`

Storage state at this step.

**refund** `string`

Refund amount (hex).

**error** `string`

Error message, if any.

**memory** `array`

Memory snapshot at this step (array of hex strings).

**items**

**items\[]** `string`

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=100 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "debug_traceCallMany",
    "params": [
      [],
      {},
      {},
      5000,
      {}
    ]
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": []
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.