APIリファレンス
イーサリアムAPI
Core API
ガイド
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

より良くするためにご協力ください!
このページを共有して、より良い製品を作るのに協力してください。