trace_get - Sonic RPC Method
Get a specific trace by transaction hash and index on Sonic. Requires archive node for ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications.
Returns a trace at a specific position within a transaction on Sonic.
Archive Node Required
This method requires an archive node. It is not available on full nodes.
When to Use This Method
- Get a specific trace by transaction hash and trace index - Retrieve individual trace entries from a transaction on Sonic
- Pinpoint specific internal calls - Isolate a particular sub-call at a known position in the call tree for ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications
- Targeted debugging - Investigate a specific call depth without retrieving the full transaction trace
- Combine with trace_transaction - Discover trace indices from the full trace, then fetch details individually
Best Practices
- Requires knowing the trace address and index in advance
- Combine with trace_transaction to discover trace indices first
- Supports fetching multiple traces by passing an array of indices
- Requires archive node access; not available on standard full nodes
Response Body
ResponseCode Examples
Related Methods
trace_transaction- Get all traces for a transactiontrace_block- Get all traces in a block
trace_filter
Filter traces by address and block range on Sonic. Requires archive node for ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications.
trace_transaction
Get traces for a specific transaction on Sonic. Requires archive node for ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications.