Skip to main content

debug_traceBlockByHash

Traces all transactions in a block on Unichain 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": ["0x480c43fe03129d5842659d3456eb1ca895e77a2f607de2195ad4b2ee02743e06", {"tracer": "callTracer"}],
"id": 1
}

Code Examples#

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