Skip to main content
Version: 1.26.0

debug namespace

debug_deleteChainSlice

Deletes a slice of a chain from the tree on all branches (Nethermind specific).

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_deleteChainSlice",
"params": [startNumber, force]
}'

debug_getBadBlocks

Return list of invalid blocks.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getBadBlocks",
"params": []
}'

debug_getBlockRlp

Retrieves a block in the RLP-serialized form.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getBlockRlp",
"params": [number]
}'

debug_getBlockRlpByHash

Retrieves a block in the RLP-serialized form.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getBlockRlpByHash",
"params": [hash]
}'

debug_getChainLevel

Retrieves a representation of tree branches on a given chain level (Nethermind specific).

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getChainLevel",
"params": [number]
}'

debug_getConfigValue

Retrieves the Nethermind configuration value, e.g. JsonRpc.Enabled

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getConfigValue",
"params": [category, name]
}'

debug_getRawBlock

Get Raw Block format.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawBlock",
"params": [blockParameter]
}'

debug_getRawHeader

Get Raw Header format.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawHeader",
"params": [blockParameter]
}'

debug_getRawReceipts

Get Raw Receipt format.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawReceipts",
"params": [blockParameter]
}'

debug_getRawTransaction

Get Raw Transaction format.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawTransaction",
"params": [transactionHash]
}'

debug_getSyncStage

Retrives Nethermind Sync Stage, With extra Metadata

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getSyncStage",
"params": []
}'

debug_insertReceipts

Insert receipts for the block after verifying receipts root correctness.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_insertReceipts",
"params": [blockParameter, receiptForRpc]
}'

debug_migrateReceipts

Sets the block number up to which receipts will be migrated to (Nethermind specific).

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_migrateReceipts",
"params": [blockNumber]
}'

debug_resetHead

Updates / resets head block - use only when the node got stuck due to DB / memory corruption (Nethermind specific).

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_resetHead",
"params": [blockHash]
}'

debug_standardTraceBlockToFile

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.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_standardTraceBlockToFile",
"params": [blockHash, options]
}'

debug_traceBlock

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.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceBlock",
"params": [blockRlp, options]
}'

debug_traceBlockByHash

Similar to debug_traceBlock, this method accepts a block hash and replays the block that is already present in the database.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceBlockByHash",
"params": [blockHash, options]
}'

debug_traceBlockByNumber

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.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceBlockByNumber",
"params": [blockParameter, options]
}'

debug_traceCall

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.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceCall",
"params": [call, blockParameter, options]
}'

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.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransaction",
"params": [transactionHash, options]
}'

debug_traceTransactionByBlockAndIndex

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransactionByBlockAndIndex",
"params": [blockParameter, txIndex, options]
}'

debug_traceTransactionByBlockhashAndIndex

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransactionByBlockhashAndIndex",
"params": [blockHash, txIndex, options]
}'

debug_traceTransactionInBlockByHash

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransactionInBlockByHash",
"params": [blockRlp, transactionHash, options]
}'

debug_traceTransactionInBlockByIndex

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransactionInBlockByIndex",
"params": [blockRlp, txIndex, options]
}'