Ethereum/Debug API

Ethereum Debug Methods

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 Overview

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:

  • Tracing transaction execution with granular control over tracing parameters
  • Analyzing block execution with different trace types (e.g., call tracer, 4byte tracer)
  • Inspecting contract storage and state
  • Retrieving information about bad blocks
  • Analyzing call and execution contexts

These methods typically provide more detailed output than standard API methods, making them valuable for deep debugging and analysis tasks.

See also

帮助我们变得更好!
分享此页面并帮助我们为您创建更好的产品。