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 ChainsPlasmaJSON-RPC APIDebug Methods

debug_traceTransaction - Plasma RPC Method

Trace a transaction execution on Plasma. Requires archive node for debugging stablecoin transfers, payment apps, and wallets that need 1 second confirmation.

Plasma RPC endpoint: endpoint URLs, plans and pricing.

Traces a transaction execution on Plasma by transaction hash.

Archive Node Required

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

When to Use This Method

  • Analyze transaction execution step-by-step - Trace every opcode and internal call in a completed transaction for stablecoin transfers, payment apps, and wallets that need 1 second confirmation
  • Debug failed transactions - Pinpoint the exact opcode and call depth where a transaction reverted on Plasma
  • Examine internal call traces - Follow the full call tree including delegate calls and contract creations
  • Gas usage profiling - Measure gas consumption per opcode to identify optimization opportunities

Best Practices

  • Requires archive node access; not available on standard full nodes
  • Traces can be very large for complex transactions with many internal calls
  • Use tracer options like onlyTopCall or callTracer to limit output size
  • Store traces off-chain for analysis rather than querying repeatedly
JSON-RPC request
{
  "jsonrpc": "2.0",
  "method": "debug_traceTransaction",
  "params": ["0xb7db21f5fcc47ea4f33c75deebf128eb8aaecaece720d3503e8752ec29df3e0f", {"tracer": "callTracer"}],
  "id": 1
}

Tracer Options

  • {} - Default opcode tracer (verbose)
  • { tracer: "callTracer" } - Call tree tracer
  • { tracer: "prestateTracer" } - Pre-state tracer

Code Examples

Bash
curl -X POST https://api-plasma-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "debug_traceTransaction",
    "params": ["0xb7db21f5fcc47ea4f33c75deebf128eb8aaecaece720d3503e8752ec29df3e0f", {"tracer": "callTracer"}],
    "id": 1
  }'

Related Methods

  • debug_traceCall - Trace without executing
  • debug_traceBlockByNumber - Trace entire block

debug_traceCall

Simulate a call on Plasma with debug_traceCall and get opcode, callTracer or prestateTracer output at any block, without sending a transaction.

eth_chainId

Get the chain ID for Plasma. Essential for transaction signing and network verification.

On this page

When to Use This MethodBest PracticesTracer OptionsCode ExamplesRelated Methods