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

더 나아지도록 도와주세요!
이 페이지를 공유하고 더 나은 제품을 만들 수 있도록 도와주세요.