curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "debug_traceCallMany",
"id": 1,
"params": [
[
{
"transactions": [
{
"from": "0x1985EA6E9c68E1C272d8209f3B478AC2Fdb25c87",
"to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"gas": "0xf4240",
"gasPrice": "0x7896e72a",
"data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100"
},
{
"to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"gasPrice": "0x7896e72a",
"data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59"
}
],
"blockOverride": {
"blockNumber": "0xbb5fe9"
}
}
],
{
"blockNumber": "0xbb5fe9",
"transactionIndex": 1
},
{}
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": [
{
"structLogs": [
{
"pc": 123,
"op": "<string>",
"gas": 123,
"gasCost": 123,
"depth": 123,
"stack": [
"<any>"
],
"memory": [
"<any>"
]
}
],
"gas": 123,
"returnValue": "<string>",
"gasUsed": 123,
"failed": true
}
]
}
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "debug_traceCallMany",
"id": 1,
"params": [
[
{
"transactions": [
{
"from": "0x1985EA6E9c68E1C272d8209f3B478AC2Fdb25c87",
"to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"gas": "0xf4240",
"gasPrice": "0x7896e72a",
"data": "0xa9059cbb000000000000000000000000bc0E63965946815d105E7591407704e6e1964E590000000000000000000000000000000000000000000000000000000005f5e100"
},
{
"to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"gasPrice": "0x7896e72a",
"data": "0x70a08231000000000000000000000000bc0E63965946815d105E7591407704e6e1964E59"
}
],
"blockOverride": {
"blockNumber": "0xbb5fe9"
}
}
],
{
"blockNumber": "0xbb5fe9",
"transactionIndex": 1
},
{}
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": [
{
"structLogs": [
{
"pc": 123,
"op": "<string>",
"gas": 123,
"gasCost": 123,
"depth": 123,
"stack": [
"<any>"
],
"memory": [
"<any>"
]
}
],
"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:
Detailed execution traces of the calls
The response is of type object
.
Was this page helpful?