curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"id": 1,
"params": [
{
"to": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"gasPrice": "0x7896e72a",
"data": "0x70a08231000000000000000000000000f977814e90da44bfa03b6295a0616a897441acec"
},
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {
"structLogs": [
{}
],
"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_traceCall",
"id": 1,
"params": [
{
"to": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
"gasPrice": "0x7896e72a",
"data": "0x70a08231000000000000000000000000f977814e90da44bfa03b6295a0616a897441acec"
},
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {
"structLogs": [
{}
],
"gas": 123,
"returnValue": "<string>",
"gasUsed": 123,
"failed": true
}
}
debug_traceCall
, send a POST request with a JSON RPC call in the body.
string
): The address the call is sent from.string
): The address the call is directed to.string
): The gas price for the call.string
): The data sent along with the call.object
): The detailed execution trace, 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_traceCall
method is essential for:
Detailed execution trace of the call
The response is of type object
.
Was this page helpful?