Docs

trace_call - Sonic RPC Method

Trace a call without creating a transaction on Sonic. Requires archive node for ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications.

Traces a call without creating a transaction on Sonic, returning the trace output.

Archive Node Required

This method requires an archive node. It is not available on full nodes.

Use Cases

  • Call simulation - Preview internal calls before sending a transaction
  • Contract interaction analysis - Understand how contracts interact
  • Gas estimation - Analyze gas usage patterns for ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications

Response Body

Response

Code Examples