Skip to main content

trace_transaction RPC Method

Returns all traces of given transaction(Trace Mode required, and supported only on OpenEthereum & Erigon).

Updated on
Nov 14, 2023

trace_transaction RPC Method

Please note that this RPC method is available by default for all Build & Scale plans. If you are using the Discover plan, you will need to upgrade to a paid plan to utilize this method. See our pricing for more information.

Parameters

hash
string
REQUIRED
The hash of a transaction

Returns

array
The block traces, which have the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated):
action
The action to be performed on the receiver id
from
The address of the sender
callType
The type of method such as call, delegatecall
gas
The gas provided by the sender, encoded as hexadecimal
input
The data sent along with the transaction
to
The address of the receiver
value
The integer of the value sent with this transaction, encoded as hexadecimal
blockHash
The hash of the block where this transaction was in
blockNumber
The block number where this transaction was in
result
The integer of the gas price used encoded as hexadecimal
gasUsed
The total used gas by all transactions in this block encoded as hexadecimal
output
The value returned by the contract call, and it only contains the actual value sent by the RETURN method. If the RETURN method was not executed, the output is empty bytes
subtraces
The traces of contract calls made by the transaction
traceAddress
The list of addresses where the call was executed, the address of the parents, and the order of the current sub call
transactionHash
The hash of the transaction
transactionPosition
The transaction position
type
The value of the method such as call or create
Request
1
curl https://docs-demo.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"trace_transaction","params":["0x3277c743c14e482243862c03a70e83ccb52e25cb9e54378b20a8303f15cb985d"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free