POSTdebug_traceBlockByHash
A debugging tool that allows you to trace chain state changes caused by transactions and the history of actual calls for a specific block, by configuring a tracer and using the information it provides.
Enter the following parameters as an array with the appropriate types.
block hash: Enter the block hash to query in 64-digit hexadecimal string format.traceOption: Object for trace option configuration.
Block hash is the unique identifier of a block. The block hash is represented as a 64-character hexadecimal string.
A field that specifies the tracer type, set to either "callTracer" or "prestateTracer".
callTracer: Used to inspect the execution path and results of executed transactions. Provides information such as the call stack, return values, gas consumption, and revert reasons, and can trace the process of function calls and interactions with smart contracts. Depending on the execution option (onlyTopCall), you can trace all nested calls of a specific call.prestateTracer: A tool that traces the pre-state before a specific transaction or block is executed. Records account state and contract code before transaction execution, allowing you to analyze state changes before and after execution. prestateTracer is used to trace smart contract state changes and interactions between accounts.
Object for tracer configuration. Uses the boolean "onlyTopCall" option; when set to true, traces only the main call. When set to false, traces down to the sub-call level.
Caller address
Gas limit set for the call (hex)
Actual gas used (hex)
Callee address
Call input data (hex)
Call return data (hex)
Amount of ETH transferred (hex, in wei)
Call type (CALL, CREATE, STATICCALL, etc.)
List of internal sub-calls
Error message if execution failed
Revert reason if the transaction was reverted