Skip to content

debug_traceCallMany ​

served · same as reth

Runs bundles of calls one after another on the state of one block, and returns a trace for each call.

When to use ​

Use it to trace a sequence of calls, as eth_callMany runs them.

Example ​

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

Response ​

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

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    [
      {
        "failed": false,
        "gas": 30759,
        "returnValue": "0x00000000000000000000000000000000000000000000000000ab38d270bbc858",
        "structLogs": [
          {
            "pc": 0,
            "op": "PUSH1",
            "gas": 499978936,
            "gasCost": 3,
            "depth": 1,
            "stack": [],
            "refund": 0
          },
          {
            "pc": 2,
            "op": "PUSH1",
            "gas": 499978933,
            "gasCost": 3,
            "depth": 1,
            "stack": [
              "0x80"
            ],
            "refund": 0
          },
          {
            "pc": 4,
            "op": "MSTORE",
            "gas": 499978930,
            "gasCost": 12,
            "depth": 1,
            "stack": [
              "0x80",
              "0x40"
            ],
            "refund": 0
          },
          "... 215 more items"
        ]
      }
    ]
  ]
}

Full response

Parameters ​

NameTypeRequiredMeaning
bundleslist of bundlesyesEach bundle is an object with transactions (a list of call objects) and an optional blockOverride.
stateContextobjectnoblockNumber (default latest) and transactionIndex, as for eth_callMany.
optionsobject, see Tracer optionsnoThe tracer, its options and optional state overrides.

The main fields of options. The Tracer options page has all of them.

FieldTypeMeaning
tracerstringcallTracer, flatCallTracer, prestateTracer, 4byteTracer, noopTracer, muxTracer or erc7562Tracer. Default: the struct logger.
tracerConfigobjectThe options of the chosen tracer. The rows below list them.
stateOverridesState overridedebug_traceCall and debug_traceCallMany: change the state before the calls.

Returns ​

A list with one list per bundle. Each item is the trace of one call, in the form of the chosen tracer.

Notes and limits ​

  • Each bundle runs as the next block, with the number plus 1 and the time plus 12 seconds, as in reth.
  • blockOverrides in the options has no effect here, as in reth.

Errors ​

CodeMessageWhen
-32602bundles are empty.The list of bundles is empty.
-32602Invalid paramsA parameter is missing or does not parse. data has the text of reth, with the position.
-32008Response is too bigThe answer is larger than 160 MiB.

Compared with reth ​

The struct logger gives the same steps as reth, with refund in each step.

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

eth_callMany, debug_traceCall.

Schema (OpenRPC) ​

Parameter bundles: CallBundle[]
json
{
  "type": "array",
  "items": {
    "title": "Call bundle",
    "type": "object",
    "required": [
      "transactions"
    ],
    "properties": {
      "transactions": {
        "type": "array",
        "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}$"
              }
            }
          }
        }
      },
      "blockOverride": {
        "title": "Block overrides",
        "description": "Fields of the block environment to replace for the call.",
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "number": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "time": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "timestamp": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "gasLimit": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "coinbase": {
                "title": "hex encoded address",
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{40}$"
              },
              "feeRecipient": {
                "title": "hex encoded address",
                "type": "string",
                "pattern": "^0x[0-9a-fA-F]{40}$"
              },
              "prevRandao": {
                "title": "32 byte hex value",
                "type": "string",
                "pattern": "^0x[0-9a-f]{64}$"
              },
              "random": {
                "title": "32 byte hex value",
                "type": "string",
                "pattern": "^0x[0-9a-f]{64}$"
              },
              "baseFee": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "baseFeePerGas": {
                "title": "hex encoded unsigned integer",
                "type": "string",
                "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
              },
              "blockHash": {
                "type": "object",
                "additionalProperties": {
                  "title": "32 byte hex value",
                  "type": "string",
                  "pattern": "^0x[0-9a-f]{64}$"
                }
              }
            }
          },
          {
            "type": "null"
          }
        ]
      }
    }
  }
}
Parameter stateContext: StateContext
json
{
  "title": "State context",
  "description": "The block whose state the bundles run on. transactionIndex is the number of its transactions to run first. -1, or no value, runs all of them.",
  "type": "object",
  "properties": {
    "blockNumber": {
      "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"
        }
      ]
    },
    "transactionIndex": {
      "type": "integer",
      "minimum": -1
    }
  }
}
Parameter options: TraceCallConfig
json
{
  "title": "Trace call config",
  "description": "A trace config with the state context of a call.",
  "allOf": [
    {
      "title": "Trace config",
      "description": "Options of debug_trace methods. The struct logger reads disableStack, enableMemory and disableStorage. The tracers read tracerConfig. callTracer reads onlyTopCall and withLog. prestateTracer reads diffMode, disableCode and disableStorage. muxTracer reads one key for each tracer to run.",
      "type": "object",
      "properties": {
        "tracer": {
          "title": "Tracer name",
          "type": "string",
          "description": "No tracer gives the struct logger. Cinder runs these built-in tracers. A JavaScript tracer is not supported.",
          "enum": [
            "callTracer",
            "flatCallTracer",
            "prestateTracer",
            "4byteTracer",
            "muxTracer",
            "noopTracer"
          ]
        },
        "tracerConfig": {
          "type": "object"
        },
        "disableStack": {
          "type": "boolean"
        },
        "enableMemory": {
          "type": "boolean"
        },
        "disableStorage": {
          "type": "boolean"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "stateOverrides": {
          "title": "State overrides",
          "description": "An object that maps an address to the account fields to replace before the call. Use state to replace the whole storage, and stateDiff to change single slots.",
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "balance": {
                    "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]*)$"
                  },
                  "code": {
                    "title": "hex encoded bytes",
                    "type": "string",
                    "pattern": "^0x[0-9a-f]*$"
                  },
                  "state": {
                    "type": "object",
                    "additionalProperties": {
                      "title": "32 byte hex value",
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{64}$"
                    }
                  },
                  "stateDiff": {
                    "type": "object",
                    "additionalProperties": {
                      "title": "32 byte hex value",
                      "type": "string",
                      "pattern": "^0x[0-9a-f]{64}$"
                    }
                  },
                  "movePrecompileToAddress": {
                    "title": "hex encoded address",
                    "type": "string",
                    "pattern": "^0x[0-9a-fA-F]{40}$"
                  }
                }
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "blockOverrides": {
          "title": "Block overrides",
          "description": "Fields of the block environment to replace for the call.",
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "number": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "time": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "timestamp": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "gasLimit": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "coinbase": {
                  "title": "hex encoded address",
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "feeRecipient": {
                  "title": "hex encoded address",
                  "type": "string",
                  "pattern": "^0x[0-9a-fA-F]{40}$"
                },
                "prevRandao": {
                  "title": "32 byte hex value",
                  "type": "string",
                  "pattern": "^0x[0-9a-f]{64}$"
                },
                "random": {
                  "title": "32 byte hex value",
                  "type": "string",
                  "pattern": "^0x[0-9a-f]{64}$"
                },
                "baseFee": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "baseFeePerGas": {
                  "title": "hex encoded unsigned integer",
                  "type": "string",
                  "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
                },
                "blockHash": {
                  "type": "object",
                  "additionalProperties": {
                    "title": "32 byte hex value",
                    "type": "string",
                    "pattern": "^0x[0-9a-f]{64}$"
                  }
                }
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "txIndex": {
          "oneOf": [
            {
              "title": "hex encoded unsigned integer",
              "type": "string",
              "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
            },
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "When set, the call runs on the state before this transaction of the block."
        }
      }
    }
  ]
}
Result: TracerResult[][]
json
{
  "type": "array",
  "items": {
    "type": "array",
    "items": {
      "title": "Tracer result",
      "description": "The shape depends on the tracer. No tracer: a struct logger result. callTracer: a call frame. flatCallTracer: an array of Parity-style flat frames. prestateTracer: an object that maps an address to its state, or an object with pre and post in diff mode. 4byteTracer: an object that maps a selector and call data size to a count. muxTracer: an object with one result for each tracer. noopTracer: an empty object.",
      "oneOf": [
        {
          "title": "Struct logger result",
          "type": "object",
          "properties": {
            "gas": {
              "type": "integer"
            },
            "failed": {
              "type": "boolean"
            },
            "returnValue": {
              "type": "string"
            },
            "structLogs": {
              "type": "array",
              "items": {
                "title": "Struct log step",
                "type": "object",
                "properties": {
                  "pc": {
                    "type": "integer"
                  },
                  "op": {
                    "type": "string"
                  },
                  "gas": {
                    "type": "integer"
                  },
                  "gasCost": {
                    "type": "integer"
                  },
                  "depth": {
                    "type": "integer"
                  },
                  "error": {
                    "type": "string"
                  },
                  "stack": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "memory": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "storage": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        {
          "title": "Call frame",
          "description": "The result of callTracer: one frame, with its sub-calls in calls.",
          "type": "object",
          "properties": {
            "type": {
              "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}$"
            },
            "value": {
              "title": "hex encoded unsigned integer",
              "type": "string",
              "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
            },
            "gas": {
              "title": "hex encoded unsigned integer",
              "type": "string",
              "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$"
            },
            "gasUsed": {
              "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]*$"
            },
            "output": {
              "title": "hex encoded bytes",
              "type": "string",
              "pattern": "^0x[0-9a-f]*$"
            },
            "error": {
              "type": "string"
            },
            "revertReason": {
              "type": "string"
            },
            "calls": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CallFrame"
              }
            },
            "logs": {
              "type": "array",
              "items": {
                "type": "object"
              }
            }
          }
        },
        {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        {
          "type": "object"
        }
      ]
    }
  }
}