Deletes a slice of a chain from the tree on all branches (Nethermind specific).
Invocation |
|
Parameter | Type | Description |
startNumber |
| |
Returned type | Description |
| |
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 |
|
Parameter | Type | Description |
number |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_getBlockRlp","params":[number],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
See also CLI debug.getBlockRlp
Retrieves a block in the RLP-serialized form.
Invocation |
|
Parameter | Type | Description |
hash |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_getBlockRlpByHash","params":[hash],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
See also CLI debug.getBlockRlpByHash
Retrieves a representation of tree branches on a given chain level (Nethermind specific).
Invocation |
|
Parameter | Type | Description |
number |
| |
Returned type | Description |
| |
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 |
|
HasBlockOnMainChain |
|
BlockInfoForRpc[]
Field name | Type |
Length |
|
LongLength |
|
Rank |
|
SyncRoot |
|
IsReadOnly |
|
IsFixedSize |
|
IsSynchronized |
|
See also CLI debug.getChainLevel
Retrieves the Nethermind configuration value, e.g. JsonRpc.Enabled
Invocation |
|
Parameter | Type | Description |
category |
| |
name |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_getConfigValue","params":[category, name],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Insert receipts for the block after verifying receipts root correctness.
Invocation |
|
Parameter | Type | Description |
blockParameter |
| |
receiptForRpc |
| |
Returned type | Description |
| |
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 |
|
BlockNumber |
|
BlockHash |
|
RequireCanonical |
|
BlockParameterType
Quantity
or String
(latest, earliest, pending)
ReceiptForRpc[]
Field name | Type |
Length |
|
LongLength |
|
Rank |
|
SyncRoot |
|
IsReadOnly |
|
IsFixedSize |
|
IsSynchronized |
|
Sets the block number up to which receipts will be migrated to (Nethermind specific).
Invocation |
|
Parameter | Type | Description |
blockNumber |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_migrateReceipts","params":[blockNumber],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
See also CLI debug.migrateReceipts
Updates / resets head block - use only when the node got stuck due to DB / memory corruption (Nethermind specific).
Invocation |
|
Parameter | Type | Description |
blockHash |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_resetHead","params":[blockHash],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
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 |
|
Parameter | Type | Description |
blockRlp |
| |
options |
| |
Returned type | Description |
| |
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 |
DisableStorage |
|
DisableMemory |
|
DisableStack |
|
Tracer |
|
Timeout |
|
GethLikeTxTrace
Field name | Type |
StoragesByDepth |
|
Gas |
|
Failed |
|
ReturnValue |
|
Entries |
|
See also CLI debug.traceBlock
Invocation |
|
Parameter | Type | Description |
blockHash |
| |
options |
| |
Returned type | Description |
| |
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 |
DisableStorage |
|
DisableMemory |
|
DisableStack |
|
Tracer |
|
Timeout |
|
GethLikeTxTrace
Field name | Type |
StoragesByDepth |
|
Gas |
|
Failed |
|
ReturnValue |
|
Entries |
|
See also CLI debug.traceBlockByHash
Invocation |
|
Parameter | Type | Description |
number |
| |
options |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_traceBlockByNumber","params":[number, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
GethTraceOptions
Field name | Type |
DisableStorage |
|
DisableMemory |
|
DisableStack |
|
Tracer |
|
Timeout |
|
GethLikeTxTrace
Field name | Type |
StoragesByDepth |
|
Gas |
|
Failed |
|
ReturnValue |
|
Entries |
|
See also CLI debug.traceBlockByNumber
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 |
|
Parameter | Type | Description |
transactionHash |
| |
options |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_traceTransaction","params":[transactionHash, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
GethTraceOptions
Field name | Type |
DisableStorage |
|
DisableMemory |
|
DisableStack |
|
Tracer |
|
Timeout |
|
GethLikeTxTrace
Field name | Type |
StoragesByDepth |
|
Gas |
|
Failed |
|
ReturnValue |
|
Entries |
|
See also CLI debug.traceTransaction
Invocation |
|
Parameter | Type | Description |
blockParameter |
| |
txIndex |
| |
options |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_traceTransactionByBlockAndIndex","params":[blockParameter, txIndex, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
BlockParameter
Field name | Type |
Type |
|
BlockNumber |
|
BlockHash |
|
RequireCanonical |
|
BlockParameterType
Quantity
or String
(latest, earliest, pending)
GethTraceOptions
Field name | Type |
DisableStorage |
|
DisableMemory |
|
DisableStack |
|
Tracer |
|
Timeout |
|
GethLikeTxTrace
Field name | Type |
StoragesByDepth |
|
Gas |
|
Failed |
|
ReturnValue |
|
Entries |
|
See also CLI debug.traceTransactionByBlockAndIndex
Invocation |
|
Parameter | Type | Description |
blockHash |
| |
txIndex |
| |
options |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_traceTransactionByBlockhashAndIndex","params":[blockHash, txIndex, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
GethTraceOptions
Field name | Type |
DisableStorage |
|
DisableMemory |
|
DisableStack |
|
Tracer |
|
Timeout |
|
GethLikeTxTrace
Field name | Type |
StoragesByDepth |
|
Gas |
|
Failed |
|
ReturnValue |
|
Entries |
|
See also CLI debug.traceTransactionByBlockhashAndIndex
Invocation |
|
Parameter | Type | Description |
blockRlp |
| |
transactionHash |
| |
options |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_traceTransactionInBlockByHash","params":[blockRlp, transactionHash, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
GethTraceOptions
Field name | Type |
DisableStorage |
|
DisableMemory |
|
DisableStack |
|
Tracer |
|
Timeout |
|
GethLikeTxTrace
Field name | Type |
StoragesByDepth |
|
Gas |
|
Failed |
|
ReturnValue |
|
Entries |
|
See also CLI debug.traceTransactionInBlockByHash
Invocation |
|
Parameter | Type | Description |
blockRlp |
| |
txIndex |
| |
options |
| |
Returned type | Description |
| |
curl --data '{"method":"debug_traceTransactionInBlockByIndex","params":[blockRlp, txIndex, options],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
GethTraceOptions
Field name | Type |
DisableStorage |
|
DisableMemory |
|
DisableStack |
|
Tracer |
|
Timeout |
|
GethLikeTxTrace
Field name | Type |
StoragesByDepth |
|
Gas |
|
Failed |
|
ReturnValue |
|
Entries |
|