Référence API
API Ethereum
Core API
Guides
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.

Appels de méthodeHTTP!WS!
debug_getBadBlocks
Renvoie une liste des derniers 'mauvais blocs' que le client a vus sur le réseau
debug_storageRangeAt
Renvoie la plage de stockage d'un contrat à une hauteur de bloc spécifique
debug_traceBlock
Renvoie toutes les traces créées à un bloc donné
debug_traceBlockByHash
Renvoie toutes les traces créées à un bloc spécifié par son hash
debug_traceBlockByNumber
Renvoie toutes les traces créées à un bloc spécifié par son numéro
debug_traceCall
Exécute un nouvel appel de message et renvoie les traces créées pendant l'exécution
debug_traceTransaction
Renvoie toutes les traces d'une transaction donnée

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

Aidez-nous à nous améliorer !
Partagez cette page et aidez-nous à créer un produit encore meilleur pour vous.