This section documents Ethereum's trace API methods that provide detailed execution traces for transactions and blocks. These methods are instrumental for developers needing in-depth visibility into transaction execution, contract interactions, and state changes.
Trace methods allow developers to obtain comprehensive execution traces for transactions and blocks, providing visibility into the complete call hierarchy, state changes, and execution flow. These powerful tools enable advanced debugging, analytics, and monitoring capabilities essential for sophisticated Ethereum applications.
方法调用 | HTTP! | WS! |
---|---|---|
trace_block 返回在给定区块创建的跟踪 | ||
trace_call 执行调用并返回在执行期间创建的跟踪 | ||
trace_replayBlockTransactions 重放区块中的所有交易并返回其跟踪 | ||
trace_replayTransaction 重放交易并返回其跟踪 | ||
trace_transaction 返回给定交易的所有跟踪 | ||
The trace namespace provides methods for:
These methods are particularly valuable for:
Each trace method provides structured output detailing call hierarchies, executed opcodes, gas consumption, and state modifications at each step of execution.