Skip to main content

debug_traceBlock

Traces all transactions in a block on Moonbase Alpha by block RLP.

Archive Node Required

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

Use Cases#

  • Transaction debugging - Analyze transaction execution step-by-step
  • Smart contract analysis - Debug contract interactions
  • Security auditing - Trace internal calls for EVM dApp testing, XCM integration validation, and pre-mainnet deployment verification

Parameters#

ParameterTypeRequiredDescription
blockRlpDATAYesRLP-encoded block data
tracerConfigObjectNoTracer configuration

Request#

{
"jsonrpc": "2.0",
"method": "debug_traceBlock",
"params": ["0xf9..."],
"id": 1
}

Code Examples#

curl -X POST https://api-moonbase-alpha.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_traceBlock",
"params": ["0xf9..."],
"id": 1
}'