Ethereum/Trace API

Ethereum Trace Methods

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 Overview

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:

  • Obtaining detailed traces for individual transactions
  • Tracing all transactions within a block
  • Replaying transactions with different parameters
  • Filtering traces based on specific criteria
  • Executing trace calls without modifying state
  • Analyzing internal transactions and contract calls

These methods are particularly valuable for:

  • Smart contract debugging and validation
  • Transaction analysis tools
  • Monitoring contract interactions
  • Forensic blockchain analysis
  • Gas optimization research

Each trace method provides structured output detailing call hierarchies, executed opcodes, gas consumption, and state modifications at each step of execution.

See also

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