debug
debug_traceBlockByHash
Returns full execution traces for all transactions in a block, identified by block hash.
Returns full execution traces for all transactions in a block, identified by block hash. Each transaction gets a complete EVM step-by-step trace.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Block hash (32-byte hex). |
| 2 | object | (optional) Tracer options — {"tracer": "callTracer"} or {"tracer": "prestateTracer"}. Defaults to structLog tracer. |
Returns
An array of trace results, one per transaction in the block.
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_traceBlockByHash",
"params": ["0x9ce9d9c533b1e3d23f5a67f999fd0848f23d3837c12ca0296f134bcfe2074008"],
"id": 1
}'
TRY IT
Notes
- Identical to
debug_traceBlockByNumberbut accepts a block hash instead of a number. - Large blocks may exceed the response size limit. Use
debug_traceTransactionfor individual transactions in that case. - Use a named tracer like
callTracerto get smaller, more focused output.
