trace_transaction - Optimism RPC Method
Get traces for a specific transaction on Optimism. Requires archive node for cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients.
Returns all traces for a specific transaction on Optimism.
Archive Node Required
This method requires an archive node. It is not available on full nodes.
Use Cases
- Transaction analysis - See all internal calls made by a transaction
- Token transfer tracking - Trace value flows through contracts
- Debugging - Understand execution flow for cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients
Response Body
ResponseCode Examples
Related Methods
trace_get- Get a specific trace by indextrace_block- Get all traces in a blocktrace_filter- Filter traces by criteria