Skip to content

trace_callMany ​

served · same as reth

Runs several calls one after another on the state of a block and returns the trace types of each. Nothing changes on the chain.

When to use ​

Use it to trace a sequence of calls where each call sees the effects of the calls before it.

Example ​

bash
curl -s -X POST -H 'Content-Type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "trace_callMany", "params": [[[{"to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "data": "0x18160ddd"}, ["trace"]]], "0x18facad"]}' \
  http://127.0.0.1:8547
json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "trace_callMany",
  "params": [
    [
      [
        {
          "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
          "data": "0x18160ddd"
        },
        [
          "trace"
        ]
      ]
    ],
    "0x18facad"
  ]
}

Response ​

Live mainnet, block 26193069, 2026-10-14. Checked against reth 2.7: equal.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "output": "0x00000000000000000000000000000000000000000000000000ab38d270bbc858",
      "stateDiff": null,
      "trace": [
        {
          "type": "call",
          "action": {
            "from": "0x0000000000000000000000000000000000000000",
            "callType": "call",
            "gas": "0x1dcd12b8",
            "input": "0x18160ddd",
            "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0x25df",
            "output": "0x00000000000000000000000000000000000000000000000000ab38d270bbc858"
          },
          "subtraces": 1,
          "traceAddress": []
        },
        {
          "type": "call",
          "action": {
            "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "callType": "delegatecall",
            "gas": "0x1d55c298",
            "input": "0x18160ddd",
            "to": "0x43506849d7c04f9138d1a2050bbf3a0c054402dd",
            "value": "0x0"
          },
          "result": {
            "gasUsed": "0x96c",
            "output": "0x00000000000000000000000000000000000000000000000000ab38d270bbc858"
          },
          "subtraces": 0,
          "traceAddress": [
            0
          ]
        }
      ],
      "vmTrace": null
    }
  ]
}

Full response

Parameters ​

NameTypeRequiredMeaning
callslist of [call, traceTypes] pairs, see Transaction call objectyesEach item is a list with a call object and its list of trace types.
blockblock number in hex, or a tag, see Block parameternoThe block whose state the calls use. The head or one of the 128 blocks before it. Default: latest.

Returns ​

A list with one result per call. Each has output, trace, vmTrace and stateDiff. See Trace (trace_*).

Errors ​

CodeMessageWhen
-32602Invalid paramsA parameter is missing or does not parse. data has the text of reth, with the position.
-32003insufficient funds for gas * price + value: have X want YA value is above the balance. The call has a gas price and no gas.
-32000max fee per gas less than block base feeA fee field of a call is not valid. The fee errors of eth_call apply.

Compared with reth ​

The live example above gives the same answer on Cinder and on reth 2.7.

trace_call, eth_callMany.

Schema (OpenRPC) ​

More: trace_callMany.

Parameter calls: [CallObject, ParityTraceTypes][][]
json
{
  "type": "array",
  "items": {
    "type": "array",
    "minItems": 2,
    "maxItems": 2,
    "items": [
      {
        "title": "Call object",
        "description": "The transaction fields that Cinder reads for a call. Other fields are ignored. Either data or input holds the call data.",
        "type": "object",
        "properties": {
          "from": {
            "title": "hex encoded address",
            "type": "string",
            "pattern": "^0x[0-9a-fA-F]{40}$"
          },
          "to": {
            "oneOf": [
              {
                "title": "hex encoded address",
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{40}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "gas": {
            "title": "hex encoded unsigned integer",
            "type": "string",
            "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
          },
          "gasPrice": {
            "title": "hex encoded unsigned integer",
            "type": "string",
            "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
          },
          "maxFeePerGas": {
            "title": "hex encoded unsigned integer",
            "type": "string",
            "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
          },
          "maxPriorityFeePerGas": {
            "title": "hex encoded unsigned integer",
            "type": "string",
            "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
          },
          "maxFeePerBlobGas": {
            "title": "hex encoded unsigned integer",
            "type": "string",
            "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
          },
          "value": {
            "title": "hex encoded unsigned integer",
            "type": "string",
            "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
          },
          "nonce": {
            "title": "hex encoded unsigned integer",
            "type": "string",
            "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
          },
          "data": {
            "title": "hex encoded bytes",
            "type": "string",
            "pattern": "^0x[0-9a-f]*$"
          },
          "input": {
            "title": "hex encoded bytes",
            "type": "string",
            "pattern": "^0x[0-9a-f]*$"
          },
          "accessList": {
            "title": "Access list",
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "address",
                "storageKeys"
              ],
              "properties": {
                "address": {
                  "title": "hex encoded address",
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "storageKeys": {
                  "type": "array",
                  "items": {
                    "title": "32 byte hex value",
                    "type": "string",
                    "pattern": "^0x[0-9a-f]{64}$"
                  }
                }
              }
            }
          },
          "authorizationList": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "chainId": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "address": {
                  "title": "hex encoded address",
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "nonce": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "yParity": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "v": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "r": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "s": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                }
              }
            }
          },
          "blobVersionedHashes": {
            "type": "array",
            "items": {
              "title": "32 byte hex value",
              "type": "string",
              "pattern": "^0x[0-9a-f]{64}$"
            }
          }
        }
      },
      {
        "title": "Trace types",
        "description": "Which parts of the result to return.",
        "type": "array",
        "items": {
          "type": "string",
          "enum": [
            "trace",
            "stateDiff",
            "vmTrace"
          ]
        }
      }
    ]
  }
}
Parameter block: BlockSelector
json
{
  "title": "Block number, tag or block identifier",
  "description": "A block number, a tag, or an object with blockHash or blockNumber. Null means latest.",
  "oneOf": [
    {
      "title": "hex encoded unsigned integer",
      "type": "string",
      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
    },
    {
      "title": "Block tag",
      "type": "string",
      "enum": [
        "earliest",
        "finalized",
        "safe",
        "latest",
        "pending"
      ],
      "description": "latest is the head of the last forkchoice update, as reth. pending is the block that Cinder builds from its transaction pool after latest, as reth. safe and finalized are the blocks of the last forkchoice update, as reth. Before the first update, they name no block. earliest is the first block that the node stored, as reth."
    },
    {
      "type": "object",
      "properties": {
        "blockHash": {
          "title": "32 byte hex value",
          "type": "string",
          "pattern": "^0x[0-9a-f]{64}$"
        },
        "blockNumber": {
          "title": "hex encoded unsigned integer",
          "type": "string",
          "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
        }
      },
      "additionalProperties": false
    },
    {
      "type": "null"
    }
  ]
}
Result: ParityReplay[]
json
{
  "type": "array",
  "items": {
    "title": "Parity replay result",
    "description": "The parts that the trace types asked for. A part not asked for is null.",
    "type": "object",
    "properties": {
      "output": {
        "title": "hex encoded bytes",
        "type": "string",
        "pattern": "^0x[0-9a-f]*$"
      },
      "trace": {
        "oneOf": [
          {
            "type": "array",
            "items": {
              "title": "Parity call trace",
              "type": "object",
              "properties": {
                "action": {
                  "title": "Parity trace action",
                  "type": "object",
                  "description": "A call, create or self-destruct action. The fields depend on the type.",
                  "properties": {
                    "callType": {
                      "type": "string"
                    },
                    "from": {
                      "title": "hex encoded address",
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "to": {
                      "title": "hex encoded address",
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "gas": {
                      "title": "hex encoded unsigned integer",
                      "type": "string",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "input": {
                      "title": "hex encoded bytes",
                      "type": "string",
                      "pattern": "^0x[0-9a-f]*$"
                    },
                    "value": {
                      "title": "hex encoded unsigned integer",
                      "type": "string",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "init": {
                      "title": "hex encoded bytes",
                      "type": "string",
                      "pattern": "^0x[0-9a-f]*$"
                    },
                    "address": {
                      "title": "hex encoded address",
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    },
                    "balance": {
                      "title": "hex encoded unsigned integer",
                      "type": "string",
                      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                    },
                    "refundAddress": {
                      "title": "hex encoded address",
                      "type": "string",
                      "pattern": "^0x[0-9a-fA-F]{40}$"
                    }
                  }
                },
                "result": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "gasUsed": {
                          "title": "hex encoded unsigned integer",
                          "type": "string",
                          "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                        },
                        "output": {
                          "title": "hex encoded bytes",
                          "type": "string",
                          "pattern": "^0x[0-9a-f]*$"
                        },
                        "address": {
                          "title": "hex encoded address",
                          "type": "string",
                          "pattern": "^0x[0-9a-fA-F]{40}$"
                        },
                        "code": {
                          "title": "hex encoded bytes",
                          "type": "string",
                          "pattern": "^0x[0-9a-f]*$"
                        }
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "error": {
                  "type": "string"
                },
                "subtraces": {
                  "type": "integer"
                },
                "traceAddress": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "call",
                    "create",
                    "suicide",
                    "reward"
                  ]
                }
              }
            }
          },
          {
            "type": "null"
          }
        ]
      },
      "stateDiff": {
        "oneOf": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ],
        "description": "An object that maps an address to the change of its balance, nonce, code and storage."
      },
      "vmTrace": {
        "oneOf": [
          {
            "type": "object"
          },
          {
            "type": "null"
          }
        ]
      }
    }
  }
}