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

# trace_callMany

Executes several message calls in sequence against the same state and returns the traces of each, without creating transactions on the block chain.

This method will use `80` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

> [!NOTE]
>
> World Chain Mainnet keeps state for the last 10,064 blocks, about 5.6 hours at World Chain's 2-second block time. Requests for an older block return JSON-RPC error `-32603` with a message that contains `insufficient changesets to revert to block`.

## **Parameters**

1. `array` - A list of `[transaction, traceTypes]` pairs, executed in order, each later call seeing the state changes of the earlier ones:
   * `transaction` - Object - The call object with the same fields as [eth\_call](https://docs.validationcloud.io/nodeapi/worldchain/execution-api/eth_call.md) (`from`, `to`, `gas`, `gasPrice`, `value`, `data`).
   * `traceTypes` - Array - Any of `trace`, `vmTrace`, `stateDiff`.
2. `QUANTITY | TAG` - Integer block number, or the string `"latest"`, `"earliest"` or `"pending"`.

## **Returns**

`array` - One result per call, each with `output`, `trace`, `stateDiff` and `vmTrace` as requested.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003...",
      "stateDiff": null,
      "trace": [
        {
          "type": "call",
          "action": {
            "from": "0x009dcf67cc6d08394d72ddff30c14b7012896c29",
            "callType": "call",
            "gas": "0x2fa9e38",
            "input": "0x95d89b41",
            "to": "0x2cfc85d8e48f8eab294be644d9e25c3030863003",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0xcc0",
            "output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003..."
          },
          "subtraces": 0,
          "traceAddress": []
        }
      ],
      "vmTrace": null
    },
    {
      "output": "0x000000000000000000000000000000000000000002a3cdb1665e043f7657b400",
      "stateDiff": null,
      "trace": [
        {
          "type": "call",
          "action": {
            "from": "0x009dcf67cc6d08394d72ddff30c14b7012896c29",
            "callType": "call",
            "gas": "0x2fa9e38",
            "input": "0x18160ddd",
            "to": "0x2cfc85d8e48f8eab294be644d9e25c3030863003",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0x943",
            "output": "0x000000000000000000000000000000000000000002a3cdb1665e043f7657b400"
          },
          "subtraces": 0,
          "traceAddress": []
        }
      ],
      "vmTrace": null
    }
  ]
}
```

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.worldchain.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"trace_callMany","params":[[[{"from":"0x009dcf67cc6d08394d72ddff30c14b7012896c29","to":"0x2cfc85d8e48f8eab294be644d9e25c3030863003","data":"0x95d89b41"},["trace"]],[{"from":"0x009dcf67cc6d08394d72ddff30c14b7012896c29","to":"0x2cfc85d8e48f8eab294be644d9e25c3030863003","data":"0x18160ddd"},["trace"]]],"latest"],"id":1}'
```


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