Docs

trace_call - Optimism RPC Method

Trace a call without creating a transaction on Optimism. Requires archive node for cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients.

Traces a call without creating a transaction on Optimism, 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 cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients

Response Body

Response

Code Examples