This section documents Ethereum's powerful debug API methods that provide advanced capabilities for blockchain analysis, transaction debugging, and detailed state inspection. These methods are essential for developers building sophisticated Ethereum applications, tools, and analytics.
Debug methods allow you to perform detailed analysis of blockchain data, trace transaction execution at the EVM level, inspect state changes, and diagnose issues with transactions or smart contracts. These advanced inspection capabilities are crucial for developers working on complex smart contracts or building analytical tools.
方法调用 | HTTP! | WS! |
---|---|---|
debug_getBadBlocks 返回客户端在网络上看到的最后一批'坏区块'列表 | ||
debug_storageRangeAt 返回特定区块高度下合约的存储范围 | ||
debug_traceBlock 返回在给定区块创建的所有跟踪 | ||
debug_traceBlockByHash 返回通过哈希指定的区块中创建的所有跟踪 | ||
debug_traceBlockByNumber 返回通过区块号指定的区块中创建的所有跟踪 | ||
debug_traceCall 执行新的消息调用并返回在执行期间创建的跟踪 | ||
debug_traceTransaction 返回给定交易的所有跟踪 | ||
The debug namespace provides methods for:
These methods typically provide more detailed output than standard API methods, making them valuable for deep debugging and analysis tasks.