Skip to main content

debug_traceBlockByHash

Traces all transactions in a block on World Chain by block hash.

Archive Node Required

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

Parameters#

ParameterTypeRequiredDescription
blockHashDATAYes32-byte block hash
tracerConfigObjectNoTracer configuration

Request#

{
"jsonrpc": "2.0",
"method": "debug_traceBlockByHash",
"params": ["0x2e4f4aff36bb7951be9742f1bfe29fe54cdd5c6d8a1b6b8c02b7d3f8c0c8d3b6", {"tracer": "callTracer"}],
"id": 1
}

Code Examples#

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