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

***

## **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/xlayer/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": "0x000000000000000000000000000000000000000000002f8496e4c770fd4b4e84",
      "stateDiff": null,
      "trace": [
        {
          "type": "call",
          "action": {
            "from": "0x0000000000000000000000000000000000000000",
            "callType": "call",
            "gas": "0xffffffffffffadb7",
            "input": "0x18160ddd",
            "to": "0xe538905cf8410324e03a5a23c1c177a474d59b2b",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0x15f",
            "output": "0x000000000000000000000000000000000000000000002f8496e4c770fd4b4e84"
          },
          "subtraces": 0,
          "traceAddress": []
        }
      ],
      "vmTrace": null
    }
  ]
}
```

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


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