trace_block
The trace_block method returns traces for all transactions in a block using the Parity/OpenEthereum tracing format. This method provides detailed execution traces for every transaction in the specified block, including internal calls, value transfers, and state changes. It's particularly useful for blockchain analytics, transaction tracking, and understanding complex multi-contract interactions, offering a different trace format compared to the debug methods.
Parameters
parameter | type | description |
|---|---|---|
blockParameter | string (required) | Block number in hex or tag (latest, earliest, pending) |
Return Object
Returns an array of trace objects for all transactions and internal calls in the block. Each trace includes action details, results, subtrace count, trace address, and transaction information.
Request Example
Request
Response Example
Response