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
object
REQUIRED
The tracer object with the following fields:
tracer
string
The type of tracer. It could be callTracer or prestateTracer
callTracer
string
The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction
prestateTracer
string
The prestateTracer replays the transaction and tracks every part of state that occured during the 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
type
string
The type of transaction, e.g., 'Call'
from
string
The address initiating the transaction
to
string
The address receiving the transaction
gas
string
The gas provided for the transaction in hexadecimal
gasUsed
string
The gas used during transaction execution in hexadecimal
value
string
The value transferred in the transaction in hexadecimal
output
string
The transaction output data in hexadecimal
input
string
The transaction input data in hexadecimal
error
string
The error message if the transaction failed
revertReason
string
The revert reason if the transaction reverted
calls
array
Nested calls made during the transaction
type
string
The type of nested call
from
string
The address initiating the nested call
to
string
The address receiving the nested call
gas
string
The gas provided for the nested call in hexadecimal
gasUsed
string
The gas used during nested call execution in hexadecimal
value
string
The value transferred in the nested call in hexadecimal
output
string
The output data of the nested call in hexadecimal
input
string
The input data of the nested call in hexadecimal
error
string
The error message if the nested call failed
revertReason
string
The revert reason if the nested call reverted
calls
array
Further nested calls within the current call
Request
1curl https://docs-demo.abstract-testnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"debug_traceTransaction","params":["0x067bf6c5b8b6cabf224d0ea5f6d3da948ce9a55b76ee802c6cc3da4dfe0b10a5", {"tracer": "callTracer"}], "id":1,"jsonrpc":"2.0"}'5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free