Debug module
Deletes a slice of a chain from the tree on all branches (Nethermind specific).
Invocation |
---|
{"method":"debug_deleteChainSlice","params":[startNumber]} |
Parameter | Type | Description |
---|---|---|
startNumber | Quantity | |
Returned type | Description |
---|---|
Quantity | |
Example request of debug_deleteChainSlice
curl --data '{"method":"debug_deleteChainSlice","params":[startNumber],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Retrieves a block in the RLP-serialized form.
Invocation |
---|
{"method":"debug_getBlockRlp","params":[number]} |
Parameter | Type | Description |
---|---|---|
number | Quantity | |
Returned type | Description |
---|---|
Data | |
Example request of debug_getBlockRlp
curl --data '{"method":"debug_getBlockRlp","params":[number],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Retrieves a block in the RLP-serialized form.
Invocation |
---|
{"method":"debug_getBlockRlpByHash","params":[hash]} |
Parameter | Type | Description |
---|---|---|
hash | Hash | |
Returned type | Description |
---|---|
Data | |
Example request of debug_getBlockRlpByHash
curl --data '{"method":"debug_getBlockRlpByHash","params":[hash],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Retrieves a representation of tree branches on a given chain level (Nethermind specific).
Invocation |
---|
{"method":"debug_getChainLevel","params":[number]} |
Parameter | Type | Description |
---|---|---|
number | Quantity | |
Returned type | Description |
---|---|
ChainLevelForRpc object | |
Example request of debug_getChainLevel
Objects in debug_getChainLevel
curl --data '{"method":"debug_getChainLevel","params":[number],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
ChainLevelForRpc
Field name | Type |
---|---|
BlockInfos | BlockInfoForRpc[] object |
HasBlockOnMainChain | Boolean |
BlockInfoForRpc[]
Field name | Type |
---|---|
BlockHash | Hash |
TotalDifficulty | Quantity |
WasProcessed | Boolean |
IsFinalized | Boolean |
Retrieves the Nethermind configuration value, e.g. JsonRpc.Enabled
Invocation |
---|
{"method":"debug_getConfigValue","params":[category, name]} |
Parameter | Type | Description |
---|---|---|
category | String | |
name | String | |
Returned type | Description |
---|---|
Object | |
Example request of debug_getConfigValue
curl --data '{"method":"debug_getConfigValue","params":[category, name],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Retrives Nethermind Sync Stage, With extra Metadata
Invocation |
---|
{"method":"debug_getSyncStage","params":[]} |
Returned type | Description |
---|---|
SyncReportSymmary object | |
Example request of debug_getSyncStage
Objects in debug_getSyncStage
curl --data '{"method":"debug_getSyncStage","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
SyncReportSymmary
Field name | Type |
---|---|
CurrentStage | String |
Insert receipts for the block after verifying receipts root correctness.
Invocation |
---|
{"method":"debug_insertReceipts","params":[blockParameter, receiptForRpc]} |
Parameter | Type | Description |
---|---|---|
blockParameter | BlockParameter object | |
receiptForRpc | ReceiptForRpc[] object | |
Returned type | Description |
---|---|
Boolean | |
Example request of debug_insertReceipts
Objects in debug_insertReceipts
curl --data '{"method":"debug_insertReceipts","params":[blockParameter, receiptForRpc],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
BlockParameter
Field name | Type |
---|---|
Type | BlockParameterType object |
BlockNumber | Quantity |
BlockHash | Hash |
RequireCanonical | Boolean |
BlockParameterType
Quantity
orString
(latest, earliest, pending)
ReceiptForRpc[]
Field name | Type |
---|---|
TransactionHash | Hash |
TransactionIndex | Quantity |
BlockHash | Hash |
BlockNumber | Quantity |
CumulativeGasUsed | Quantity |
GasUsed | Quantity |
BlobGasUsed | Quantity |
BlobGasPrice | Quantity |
EffectiveGasPrice | Quantity |
From | Address |
To | Address |
ContractAddress | Address |
Logs | LogEntryForRpc[] object |
LogsBloom | Bloom Object |
Root | Hash |
Status | Quantity |
Error | String |
Type | TxType object |
Sets the block number up to which receipts will be migrated to (Nethermind specific).
Invocation |
---|
{"method":"debug_migrateReceipts","params":[blockNumber]} |
Parameter | Type | Description |
---|---|---|
blockNumber | Quantity | |
Returned type | Description |
---|---|
Boolean | |
Example request of debug_migrateReceipts
curl --data '{"method":"debug_migrateReceipts","params":[blockNumber],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Updates / resets head block - use only when the node got stuck due to DB / memory corruption (Nethermind specific).
Invocation |
---|
{"method":"debug_resetHead","params":[blockHash]} |
Parameter | Type | Description |
---|---|---|
blockHash | Hash | |
Returned type | Description |
---|---|
Boolean | |
Example request of debug_resetHead
curl --data '{"method":"debug_resetHead","params":[blockHash],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Writes to a file the full stack trace of all invoked opcodes of the transaction specified (or all transactions if not specified) that was included in the block specified. The parent of the block must be present or it will fail.
Invocation |
---|
{"method":"debug_standardTraceBlockToFile","params":[blockHash, options]} |
Parameter | Type | Description |
---|---|---|
blockHash | Hash | |
options | GethTraceOptions object | |
Returned type | Description |
---|---|
Array | |
Example request of debug_standardTraceBlockToFile
Objects in debug_standardTraceBlockToFile
curl --data '{"method":"debug_standardTraceBlockToFile","params":[blockHash, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
GethTraceOptions
Field name | Type |
---|---|
DisableMemory | Boolean |
DisableStack | Boolean |
DisableStorage | Boolean |
EnableMemory | Boolean |
Timeout | String |
Tracer | String |
TxHash | Hash |
Default | GethTraceOptions object |
Returns the full stack trace of all invoked opcodes of all transactions that were included in the block specified. The parent of the block must be present or it will fail.
Invocation |
---|
{"method":"debug_traceBlock","params":[blockRlp, options]} |
Parameter | Type | Description |
---|---|---|
blockRlp | Data | |
options | GethTraceOptions object | |
Returned type | Description |
---|---|
GethLikeTxTrace object | |
Example request of debug_traceBlock
Objects in debug_traceBlock
curl --data '{"method":"debug_traceBlock","params":[blockRlp, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
GethTraceOptions
Field name | Type |
---|---|
DisableMemory | Boolean |
DisableStack | Boolean |
DisableStorage | Boolean |
EnableMemory | Boolean |
Timeout | String |
Tracer | String |
TxHash | Hash |
Default | GethTraceOptions object |
GethLikeTxTrace
Field name | Type |
---|---|
StoragesByDepth | Array |
Gas | Quantity |
Failed | Boolean |
ReturnValue | Data |
Entries | Array |
Similar to debug_traceBlock, this method accepts a block hash and replays the block that is already present in the database.
Invocation |
---|
{"method":"debug_traceBlockByHash","params":[blockHash, options]} |
Parameter | Type | Description |
---|---|---|
blockHash | Hash | |
options | GethTraceOptions object | |
Returned type | Description |
---|---|
GethLikeTxTrace object | |
Example request of debug_traceBlockByHash
Objects in debug_traceBlockByHash
curl --data '{"method":"debug_traceBlockByHash","params":[blockHash, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
GethTraceOptions
Field name | Type |
---|---|
DisableMemory | Boolean |
DisableStack | Boolean |
DisableStorage | Boolean |
EnableMemory | Boolean |
Timeout | String |
Tracer | String |
TxHash | Hash |
Default | GethTraceOptions object |
GethLikeTxTrace
Field name | Type |
---|---|
StoragesByDepth | Array |
Gas | Quantity |
Failed | Boolean |
ReturnValue | Data |
Entries | Array |
Similar to debug_traceBlock, this method accepts a block number as well as "latest" or "finalized" and replays the block that is already present in the database.
Invocation |
---|
{"method":"debug_traceBlockByNumber","params":[blockParameter, options]} |
Parameter | Type | Description |
---|---|---|
blockParameter | BlockParameter object | |
options | GethTraceOptions object | |
Returned type | Description |
---|---|
GethLikeTxTrace object | |
Example request of debug_traceBlockByNumber
Objects in debug_traceBlockByNumber
curl --data '{"method":"debug_traceBlockByNumber","params":[blockParameter, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
BlockParameter
Field name | Type |
---|---|
Type | BlockParameterType object |
BlockNumber | Quantity |
BlockHash | Hash |
RequireCanonical | Boolean |
BlockParameterType
Quantity
orString
(latest, earliest, pending)
GethTraceOptions
Field name | Type |
---|---|
DisableMemory | Boolean |
DisableStack | Boolean |
DisableStorage | Boolean |
EnableMemory | Boolean |
Timeout | String |
Tracer | String |
TxHash | Hash |
Default | GethTraceOptions object |
GethLikeTxTrace
Field name | Type |
---|---|
StoragesByDepth | Array |
Gas | Quantity |
Failed | Boolean |
ReturnValue | Data |
Entries | Array |
This method lets you run an eth_call within the context of the given block execution using the final state of parent block as the base. The block can be specified either by hash or by number. It takes the same input object as a eth_call. It returns the same output as debug_traceTransaction.
Invocation |
---|
{"method":"debug_traceCall","params":[call, blockParameter, options]} |
Parameter | Type | Description |
---|---|---|
call | TransactionForRpc object | |
blockParameter | BlockParameter object | |
options | GethTraceOptions object | |
Returned type | Description |
---|---|
GethLikeTxTrace object | |
Example request of debug_traceCall
Objects in debug_traceCall
curl --data '{"method":"debug_traceCall","params":[call, blockParameter, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
TransactionForRpc
Field name | Type |
---|---|
DefaultChainId | Quantity |
Hash | Hash |
Nonce | Quantity |
BlockHash | Hash |
BlockNumber | Quantity |
TransactionIndex | Quantity |
From | Address |
To | Address |
Value | Quantity |
GasPrice | Quantity |
MaxPriorityFeePerGas | Quantity |
MaxFeePerGas | Quantity |
Gas | Quantity |
Input | Data |
ChainId | Quantity |
Type | TxType object |
AccessList | AccessListItemForRpc[] object |
MaxFeePerBlobGas | Quantity |
BlobVersionedHashes | Data |
V | Quantity |
S | Quantity |
R | Quantity |
YParity | Quantity |
TxType
AccessListItemForRpc[]
Field name | Type |
---|---|
Address | Address |
StorageKeys | Array |
BlockParameter
Field name | Type |
---|---|
Type | BlockParameterType object |
BlockNumber | Quantity |
BlockHash | Hash |
RequireCanonical | Boolean |
BlockParameterType
Quantity
orString
(latest, earliest, pending)
GethTraceOptions
Field name | Type |
---|---|
DisableMemory | Boolean |
DisableStack | Boolean |
DisableStorage | Boolean |
EnableMemory | Boolean |
Timeout | String |
Tracer | String |
TxHash | Hash |
Default | GethTraceOptions object |
GethLikeTxTrace
Field name | Type |
---|---|
StoragesByDepth | Array |
Gas | Quantity |
Failed | Boolean |
ReturnValue | Data |
Entries | Array |
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 |
---|
{"method":"debug_traceTransaction","params":[transactionHash, options]} |
Parameter | Type | Description |
---|---|---|
transactionHash | Hash | |
options | GethTraceOptions object | |
Returned type | Description |
---|---|
GethLikeTxTrace object | |
Example request of debug_traceTransaction
Objects in debug_traceTransaction
curl --data '{"method":"debug_traceTransaction","params":[transactionHash, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545