curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"id": 1,
"params": [
"0x317888c89fe0914c6d11be51acf758742afbe0cf1fdac11f19d35d6ed652ac29"
]
}
'{
"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_traceTransaction",
"id": 1,
"params": [
"0x317888c89fe0914c6d11be51acf758742afbe0cf1fdac11f19d35d6ed652ac29"
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {
"structLogs": [
{}
],
"gas": 123,
"returnValue": "<string>",
"gasUsed": 123,
"failed": true
}
}debug_traceTransaction RPC method retrieves a detailed execution trace of a transaction, identified by the transaction’s hash. This method is crucial for developers and analysts who need to understand the execution flow of a transaction, including all the operations (opcodes) executed, gas usage, and the transaction’s outcome.
debug_traceTransaction, send a POST request with a JSON RPC call in the body.
string): The hash of the transaction to trace.object): The detailed execution trace, including:
array): An array of execution steps (opcodes) taken by the transaction.integer): The gas provided by the transaction.string): The return value of the transaction, if any.integer): The total gas used by the transaction.boolean): Indicates whether the transaction failed.debug_traceTransaction method is essential for:
Detailed execution trace of the specified transaction
The detailed execution trace of the transaction.
Show child attributes
An array of execution steps (opcodes) taken by the transaction.
The gas provided by the transaction.
The return value of the transaction, if any.
The total gas used by the transaction.
Indicates whether the transaction failed.
Was this page helpful?