Docs
Docs
Home
Getting Started
Agent Tooling
CLI
Supported Chains
Acala
Aptos
Arbitrum
Arc
Asset Hub
Astar
Avalanche
Base
Berachain
Bifrost
Binance Smart Chain
Bittensor
Blast
Boba Network
Bridge Hub
Celo
Centrifuge
Chiliz
Cronos
Enjin
Ethereum
Etherlink
Flow EVM Gateway
Gnosis
Hydration
Hyperliquid
Immutable
Ink
IoTeX
Kusama
Linea
LISK
Manta Atlantic
Manta Pacific
Mantle
MegaETH
Monad
Movement
Neuroweb
opBNB
Optimism
Plasma
Polkadot
Polygon
Pulsechain
Robinhood
Ronin
Scroll
Sonic
Starknet
Taiko
Tempo
Sui
TRON
Unichain
Viction
World Chain
XDC Network
XX Network
Zetachain
zkSync Era
Zora
Supported ChainsTempoJSON-RPC APITrace Methods

trace_replayTransaction - Tempo RPC Method

Replay a transaction and return traces on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.

Tempo RPC endpoint: endpoint URLs, plans and pricing.

Replays a transaction on Tempo 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 Tempo
  • State diff extraction - See exact account balance, nonce, code, and storage changes caused by a transaction for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications
  • 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

JSON-RPC request
{
  "jsonrpc": "2.0",
  "method": "trace_replayTransaction",
  "params": ["0x50b1857dce8dbe401e09610534de81655bc508c6765eb30ecefe24148c515c28", ["trace"]],
  "id": 1
}

Code Examples

Related Methods

  • trace_replayBlockTransactions - Replay all transactions in a block
  • trace_transaction - Get traces without replay
  • trace_block - Get all traces in a block

trace_replayBlockTransactions

Replay all transactions in a block and return traces on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.

trace_transaction

Get traces for a specific transaction on Tempo. Requires archive node for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.

On this page

When to Use This MethodBest PracticesCode ExamplesRelated Methods