Skip to main content

trace_callMany

Overview

The 'trace_callMany' method allows users to execute a new message call immediately without creating a transaction on the blockchain. This is useful for scenarios where you want to simulate a transaction without actually sending it.

Request

{
"calls": [
{
"from": "0x...",
"to": "0x...",
"gas": "...",
"gasPrice": "...",
"value": "...",
"data": "0x..."
},
...
],
"blockParameter": "latest"
}

Request Parameters

  • calls: An array of call objects.
  • from: (Optional) The address the call is from.
  • to: The address the call is to.
  • gas: (Optional) The gas provided for the call.
  • gasPrice: (Optional) The gas price for the call.
  • value: (Optional) The value sent with the call.
  • data: The call data.
  • blockParameter: The block number or one of "latest", "earliest" or "pending".

Response

[
{
"output": "0x...",
"stateDiff": null,
"trace": [...],
"vmTrace": null
},
...
]

Errors

  • Invalid Request: This error is returned if the request format is incorrect.
  • Internal Error: This error is returned if there's a server-side issue processing the request.

Rate Limits

Please note that there are rate limits applied to the API to ensure fair usage. Free-tier users are limited to 100 requests per day, while premium users can make up to 1000 or more requests per day.

Support

If you encounter any issues or have further questions regarding the eth_getBlockByHash method, please contact our support team at [email protected].