Docs

trace_replayTransaction - Gnosis RPC Method

Replay a transaction and return traces on Gnosis. Requires archive node for prediction markets (largest by market cap), Safe wallet infrastructure, CoW Protocol DEX, and Gnosis Pay card integration.

Replays a transaction on Gnosis and returns the requested traces.

Archive Node Required

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

When to Use This Method

  • Replay and trace a transaction execution - Get vmTrace, stateDiff, and trace in a single call for comprehensive analysis on Gnosis
  • State diff extraction - See exact account balance, nonce, code, and storage changes caused by a transaction for prediction markets (largest by market cap), Safe wallet infrastructure, CoW Protocol DEX, and Gnosis Pay card integration
  • VM trace debugging - Get opcode-level execution details alongside the structured call trace
  • Comprehensive transaction analysis - Combine all three trace types in one request for complete execution visibility

Best Practices

  • Returns more detailed trace data than debug_traceTransaction
  • Combine vmTrace with trace array for a full picture of opcode and call-level execution
  • Request all three trace types (trace, vmTrace, stateDiff) for maximum detail
  • Requires archive node access; not available on standard full nodes

Response Body

Response

Code Examples