Skip to main content

debug_traceTransaction RPC Method

Returns all traces of a given transaction (Trace Mode required).

Updated on
May 19, 2025

debug_traceTransaction RPC Method

Please note that this RPC method is available to all users on the Build plan and higher. If you are using the Free plan, you will need to upgrade to utilize this method. See our pricing for more information.

Parameters

transactionHash
string
REQUIRED
The transaction hash that needs to be traced, encoded in hexadecimal format
object
array
REQUIRED
The tracer object with the following fields:
tracer
string
The type of tracer. Currently only callTracer is supported
callTracer
string
The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction
tracerConfig
object
The object to specify the configurations of the tracer
onlyTopCall
boolean
When set to true, this will only trace the primary (top-level) call and not any sub-calls. It eliminates the additional processing for each call frame
timeout
string
A string of decimal integers that overrides the JavaScript-based tracing calls default timeout of 5 seconds

Returns

result
object
The result object with the following fields:
type
string
The type of the call
from
string
The address the transaction is sent from
to
string
The address the transaction is directed to
gas
string
The integer of the gas provided for the transaction execution
gasUsed
string
The integer of the gas used
value
string
The integer of the value sent with this transaction
output
string
The data which is returned as an output
input
string
The data given at the time of input
error
string
The type of error, if any
revertReason
string
The type solidity revert reason, if any
calls
array
A list of sub-calls
type
string
The type of the sub-call (call or delegateCall)
from
string
The address the sub-call is sent from
to
string
The address the sub-call is directed to
gas
string
The integer of the gas provided for the sub-call execution
gasUsed
string
The integer of the gas used by the sub-call
value
string
The integer of the value sent with this sub-call
output
string
The data which is returned as an output from the sub-call
input
string
The data given at the time of the sub-call
error
string
The type of error in the sub-call, if any
revertReason
string
The type solidity revert reason in the sub-call, if any
calls
array
A list of nested sub-calls
type
string
The type of the nested sub-call
from
string
The address the nested sub-call is sent from
to
string
The address the nested sub-call is directed to
gas
string
The integer of the gas provided for the nested sub-call execution
gasUsed
string
The integer of the gas used by the nested sub-call
value
string
The integer of the value sent with this nested sub-call
output
string
The data which is returned as an output from the nested sub-call
input
string
The data given at the time of the nested sub-call
error
string
The type of error in the nested sub-call, if any
revertReason
string
The type solidity revert reason in the nested sub-call, if any
calls
array
A list of deeper nested sub-calls
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free