debug_traceCall RPC Method
Parameters
object
array
The transaction call object with the following fields:
from
string
The address the transaction is sent from
to
string
REQUIRED
The address the transaction is directed to
gas
integer
The integer of the gas provided for the transaction execution
gasPrice
integer
The integer of the gasPrice used for each paid gas
value
integer
The integer of the value sent with this transaction
data
string
The hash of the method signature and encoded parameters
blockReference
string
REQUIRED
The block number in hexadecimal format, the block hash, or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
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
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
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
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free