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 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.
Cuộc gọi phương thức | HTTP! | WS! |
---|---|---|
debug_getBadBlocks Trả về danh sách các 'khối xấu' gần đây mà máy khách đã thấy trên mạng | ||
debug_storageRangeAt Trả về phạm vi lưu trữ của hợp đồng tại một chiều cao khối cụ thể | ||
debug_traceBlock Trả về tất cả các dấu vết được tạo tại một khối nhất định | ||
debug_traceBlockByHash Trả về tất cả các dấu vết được tạo tại một khối được chỉ định bởi hash của nó | ||
debug_traceBlockByNumber Trả về tất cả các dấu vết được tạo tại một khối được chỉ định bởi số của nó | ||
debug_traceCall Thực hiện một cuộc gọi tin nhắn mới và trả về các dấu vết được tạo trong quá trình thực thi | ||
debug_traceTransaction Trả về tất cả các dấu vết của một giao dịch nhất định | ||
The debug namespace provides methods for:
These methods typically provide more detailed output than standard API methods, making them valuable for deep debugging and analysis tasks.