Debug module

debug.config

Invocation
debug.config(category, name)
Parameter
Type
Description
category
String
name
String
Returned type
Description
String
Example request of debug.config
1
debug.config(category, name)
Copied!

debug.getBlockRlp

Retrieves a block in the RLP-serialized form.
Invocation
debug.getBlockRlp(number)
Parameter
Type
Description
number
Quantity
Returned type
Description
Data
Example request of debug.getBlockRlp
1
debug.getBlockRlp(number)
Copied!

debug.getBlockRlpByHash

Retrieves a block in the RLP-serialized form.
Invocation
debug.getBlockRlpByHash(hash)
Parameter
Type
Description
hash
Hash
Returned type
Description
Data
Example request of debug.getBlockRlpByHash
1
debug.getBlockRlpByHash(hash)
Copied!

debug.getChainLevel

Retrieves a representation of tree branches on a given chain level (Nethermind specific).
Invocation
debug.getChainLevel(number)
Parameter
Type
Description
number
Quantity
Returned type
Description
ChainLevelForRpc object
Example request of debug.getChainLevel
Objects in debug_getChainLevel
1
debug.getChainLevel(number)
Copied!
ChainLevelForRpc
Field name
Type
BlockInfos
BlockInfoForRpc[] object
HasBlockOnMainChain
Boolean
BlockInfoForRpc[]
Field name
Type
BlockHash
Hash
TotalDifficulty
Quantity
WasProcessed
Boolean
IsFinalized
Boolean

debug.migrateReceipts

Sets the block number up to which receipts will be migrated to (Nethermind specific).
Invocation
debug.migrateReceipts(blockNumber)
Parameter
Type
Description
blockNumber
Quantity
Returned type
Description
Boolean
Example request of debug.migrateReceipts
1
debug.migrateReceipts(blockNumber)
Copied!

debug.traceBlock

Returns a full stack trace of all invoked opcodes of all transaction that were included included in this block. The parent of this block must be present or it will fail.
Invocation
debug.traceBlock(blockRlp, options)
Parameter
Type
Description
blockRlp
Data
options
GethTraceOptions object
Returned type
Description
GethLikeTxTrace object
Example request of debug.traceBlock
Objects in debug_traceBlock
1
debug.traceBlock(blockRlp, options)
Copied!
GethTraceOptions
Field name
Type
DisableStorage
Boolean
DisableMemory
Boolean
DisableStack
Boolean
Tracer
String
Timeout
String
GethLikeTxTrace
Field name
Type
StoragesByDepth
Array
Gas
Quantity
Failed
Boolean
ReturnValue
Data
Entries
Array

debug.traceBlockByHash

Invocation
debug.traceBlockByHash(blockHash, options)
Parameter
Type
Description
blockHash
Hash
options
GethTraceOptions object
Returned type
Description
GethLikeTxTrace object
Example request of debug.traceBlockByHash
Objects in debug_traceBlockByHash
1
debug.traceBlockByHash(blockHash, options)
Copied!
GethTraceOptions
Field name
Type
DisableStorage
Boolean
DisableMemory
Boolean
DisableStack
Boolean
Tracer
String
Timeout
String
GethLikeTxTrace
Field name
Type
StoragesByDepth
Array
Gas
Quantity
Failed
Boolean
ReturnValue
Data
Entries
Array

debug.traceBlockByNumber

Invocation
debug.traceBlockByNumber(number, options)
Parameter
Type
Description
number
Quantity
options
GethTraceOptions object
Returned type
Description
GethLikeTxTrace object
Example request of debug.traceBlockByNumber
Objects in debug_traceBlockByNumber
1
debug.traceBlockByNumber(number, options)
Copied!
GethTraceOptions
Field name
Type
DisableStorage
Boolean
DisableMemory
Boolean
DisableStack
Boolean
Tracer
String
Timeout
String
GethLikeTxTrace
Field name
Type
StoragesByDepth
Array
Gas
Quantity
Failed
Boolean
ReturnValue
Data
Entries
Array

debug.traceTransaction

This method will attempt to run the transaction in the exact same manner as it was executed on the network. It will replay any transaction that may have been executed prior to this one before it will finally attempt to execute the transaction that corresponds to the given hash.
Invocation
debug.traceTransaction(transactionHash, options)
Parameter
Type
Description
transactionHash
Hash
options
GethTraceOptions object
Returned type
Description
GethLikeTxTrace object
Example request of debug.traceTransaction
Objects in debug_traceTransaction
1
debug.traceTransaction(transactionHash, options)
Copied!
GethTraceOptions
Field name
Type
DisableStorage
Boolean
DisableMemory
Boolean
DisableStack
Boolean
Tracer
String
Timeout
String
GethLikeTxTrace
Field name
Type
StoragesByDepth
Array
Gas
Quantity
Failed
Boolean
ReturnValue
Data
Entries
Array

debug.traceTransactionByBlockAndIndex

Invocation
debug.traceTransactionByBlockAndIndex(blockParameter, txIndex, options)
Parameter
Type
Description
blockParameter
BlockParameter object
txIndex
Quantity
options
GethTraceOptions object
Returned type
Description
GethLikeTxTrace object
Example request of debug.traceTransactionByBlockAndIndex
Objects in debug_traceTransactionByBlockAndIndex
1
debug.traceTransactionByBlockAndIndex(blockParameter, txIndex, options)
Copied!
BlockParameter
Field name
Type
Type
BlockParameterType object
BlockNumber
Quantity
BlockHash
Hash
RequireCanonical
Boolean
BlockParameterType
    Quantity or String (latest, earliest, pending)
GethTraceOptions
Field name
Type
DisableStorage
Boolean
DisableMemory
Boolean
DisableStack
Boolean
Tracer
String
Timeout
String
GethLikeTxTrace
Field name
Type
StoragesByDepth
Array
Gas
Quantity
Failed
Boolean
ReturnValue
Data
Entries
Array

debug.traceTransactionByBlockhashAndIndex

Invocation
debug.traceTransactionByBlockhashAndIndex(blockHash, txIndex, options)
Parameter
Type
Description
blockHash
Hash
txIndex
Quantity
options
GethTraceOptions object
Returned type
Description
GethLikeTxTrace object
Example request of debug.traceTransactionByBlockhashAndIndex
Objects in debug_traceTransactionByBlockhashAndIndex
1
debug.traceTransactionByBlockhashAndIndex(blockHash, txIndex, options)
Copied!
GethTraceOptions
Field name
Type
DisableStorage
Boolean
DisableMemory
Boolean
DisableStack
Boolean
Tracer
String
Timeout
String
GethLikeTxTrace
Field name
Type
StoragesByDepth
Array
Gas
Quantity
Failed
Boolean
ReturnValue
Data
Entries
Array

debug.traceTransactionInBlockByHash

Invocation
debug.traceTransactionInBlockByHash(blockRlp, transactionHash, options)
Parameter
Type
Description
blockRlp
Data
transactionHash
Hash
options
GethTraceOptions object
Returned type
Description
GethLikeTxTrace object
Example request of debug.traceTransactionInBlockByHash
Objects in debug_traceTransactionInBlockByHash
1
debug.traceTransactionInBlockByHash(blockRlp, transactionHash, options)
Copied!
GethTraceOptions
Field name
Type
DisableStorage
Boolean
DisableMemory
Boolean
DisableStack
Boolean
Tracer
String
Timeout
String
GethLikeTxTrace
Field name
Type
StoragesByDepth
Array
Gas
Quantity
Failed
Boolean
ReturnValue
Data
Entries
Array

debug.traceTransactionInBlockByIndex

Invocation
debug.traceTransactionInBlockByIndex(blockRlp, txIndex, options)
Parameter
Type
Description
blockRlp
Data
txIndex
Quantity
options
GethTraceOptions object
Returned type
Description
GethLikeTxTrace object
Example request of debug.traceTransactionInBlockByIndex
Objects in debug_traceTransactionInBlockByIndex
1
debug.traceTransactionInBlockByIndex(blockRlp, txIndex, options)
Copied!
GethTraceOptions
Field name
Type
DisableStorage
Boolean
DisableMemory
Boolean
DisableStack
Boolean
Tracer
String
Timeout
String
GethLikeTxTrace
Field name
Type
StoragesByDepth
Array
Gas
Quantity
Failed
Boolean
ReturnValue
Data
Entries
Array
Last modified 1mo ago