curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"id": 1,
"params": [
{
"to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"gasPrice": "0x7896e72a",
"data": "0x70a082310000000000000000000000001985ea6e9c68e1c272d8209f3b478ac2fdb25c87"
},
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {
"structLogs": [
{}
],
"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_traceCall",
"id": 1,
"params": [
{
"to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"gasPrice": "0x7896e72a",
"data": "0x70a082310000000000000000000000001985ea6e9c68e1c272d8209f3b478ac2fdb25c87"
},
"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?