Get your own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.Parameters
txHash
— the hash of the transaction from which to retrieve the trace.traceIndex
— an array of integers specifying the zero-based indices of the traces to retrieve.
JSON-RPC example
Response
-
action
— an object that describes the action taken by the transaction:callType
— the type of call, such ascall
,delegatecall
, orstaticcall
.from
— the address of the sender who initiated the transaction.gas
— the units of gas used by the transaction.input
— the data sent with the transaction.to
— the recipient of the transaction, if applicable.value
— the value transferred in Wei.
-
blockHash
— the hash of the block in which the transaction was included. -
blockNumber
— the number of the block in which the transaction was included. -
result
— an object that contains the outcome of the trace:gasUsed
— the gas used by the transaction, encoded as hexadecimal.output
— the return value of the execution, encoded as a hexadecimal string.
-
subtraces
— the number of sub-traces spawned by the trace. -
traceAddress
— an array that indicates the hierarchical position of the trace. -
transactionHash
— the hash of the transaction. -
transactionPosition
— the position of the transaction within the block. -
type
— the type of action taken by the transaction,call
orcreate
.
trace_get
code examples
Use case
Thetrace_get
method is useful for developers and analysts who must investigate the detailed execution of specific transactions, particularly those involving complex interactions and multiple steps within the EVM. It can help audit smart contract functions, verify transaction logic, and understand the flow of transactions that involve several contract calls.