curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_traceCallMany",
"id": 1,
"params": [
[
{
"transactions": [
{
"from": "0xacD03D601e5bB1B275Bb94076fF46ED9D753435A",
"to": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"gas": "0xf4240",
"gasPrice": "0x7896e72a",
"data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100"
},
{
"to": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"gasPrice": "0x7896e72a",
"data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59"
}
],
"blockOverride": {
"blockNumber": "0x6eee101"
}
}
],
{
"blockNumber": "0x6eee101",
"transactionIndex": 1
},
{}
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
{
"structLogs": [
{
"pc": 123,
"op": "<string>",
"gas": 123,
"gasCost": 123,
"depth": 123,
"stack": "<array>",
"memory": "<array>"
}
],
"gas": 123,
"returnValue": "<string>",
"gasUsed": 123,
"failed": true
}
]
}curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_traceCallMany",
"id": 1,
"params": [
[
{
"transactions": [
{
"from": "0xacD03D601e5bB1B275Bb94076fF46ED9D753435A",
"to": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"gas": "0xf4240",
"gasPrice": "0x7896e72a",
"data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100"
},
{
"to": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"gasPrice": "0x7896e72a",
"data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59"
}
],
"blockOverride": {
"blockNumber": "0x6eee101"
}
}
],
{
"blockNumber": "0x6eee101",
"transactionIndex": 1
},
{}
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
{
"structLogs": [
{
"pc": 123,
"op": "<string>",
"gas": 123,
"gasCost": 123,
"depth": 123,
"stack": "<array>",
"memory": "<array>"
}
],
"gas": 123,
"returnValue": "<string>",
"gasUsed": 123,
"failed": true
}
]
}eth_callMany but provides detailed execution traces for each call, making it invaluable for debugging complex interactions involving multiple transactions.
debug_traceCallMany, send a POST request with a JSON RPC call in the body.
array): An array of transaction objects to be executed. Each transaction object includes:
string): The address the transaction is sent from (optional).string): The address the transaction is directed to.string): The gas limit for the transaction.string): The gas price for the transaction.string): The data sent along with the transaction.object): Optional overrides for the execution context block header, including:
string): Block number for the execution context.object): The context for the simulation, including block number and transaction index.object): Optional state overrides for the execution context.array): An array of execution traces for each call, including:
array): An array of execution steps (opcodes) taken by the call.integer): The gas provided by the call.string): The return value of the call, if any.integer): The total gas used by the call.boolean): Indicates whether the call failed.debug_traceCallMany method is essential for:
Was this page helpful?