Tham khảo API
Ethereum API
Core API
Hướng dẫn
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.

Cuộc gọi phương thứcHTTP!WS!
trace_block
Trả về các dấu vết được tạo tại một khối nhất định
trace_call
Thực hiện một cuộc gọi và trả về các dấu vết được tạo trong quá trình thực thi
trace_replayBlockTransactions
Phát lại tất cả các giao dịch trong một khối và trả về các dấu vết của chúng
trace_replayTransaction
Phát lại một giao dịch và trả về dấu vết của nó
trace_transaction
Trả về tất cả các dấu vết của một giao dịch nhất định

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

Giúp chúng tôi trở nên tốt hơn!
Chia sẻ trang này và giúp chúng tôi tạo ra sản phẩm tốt hơn cho bạn.