Skip to main content

ots_traceTransaction RPC Method

Trace a transaction and generate a trace call tree

Updated on
Nov 2, 2023

ots_traceTransaction RPC Method

Parameters

txhash
string
REQUIRED
The transaction hash

Returns

result
object
An object containing the trace tree
type
string
The type of call
depth
string
Indicates the depth of the transaction trace in the call stack
from
string
The ETH sender or contract creator
to
string
The ETH receiver or newly created contract address
value
string
The amount of ETH transferred
value
string
The input data of the transaction
Request
1
curl https://docs-demo.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"ots_traceTransaction","params":["0xc6a5e4a4cb6ffd59a041f6683fb9d464be6d167fc3b6533671b3ea68ac4febac"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free