debug namespace
debug_config
Returns the complete fork configuration (Nethermind specific).
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_config",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object
debug_deleteChainSlice
Deletes chain levels on all branches (Nethermind specific). Requires paused, drained processing, no active initial synchronization, and preserves historical sync progress, including when forced. Deletion at or below the sync pivot requires completed historical sync; a deleted pivot is moved to the surviving head. When replacing the head, the preceding block must be canonical with its body and processing state available. Returns invalid-params for an invalid range or resource-unavailable when maintenance is unsafe.
- Parameters
- Request
- Response
-
startNumber: string (hex integer) -
force: boolean
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_deleteChainSlice",
"params": [startNumber, force]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: integer
debug_executionWitness
Reprocesses the existing block with the parameters specified and returns the generated execution witness.
- Parameters
- Request
- Response
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_executionWitness",
"params": [blockParameter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object
codes: array of string (hex data)headers: array of string (hex data)keys: array of string (hex data)state: array of string (hex data)
debug_getBadBlocks
Return list of invalid blocks. If an absolute local file path is given, writes the list to that new file and returns null.
- Parameters
- Request
- Response
file: string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getBadBlocks",
"params": [file]
}'
Each block carries full transaction objects.
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of object
block: objectauthor: optional string (address)baseFeePerGas: optional string (hex integer)blobGasUsed: optional string (hex integer)blockAccessListHash: optional string (hash)difficulty: string (hex integer)excessBlobGas: optional string (hex integer)extraData: string (hex data)gasLimit: string (hex integer)gasUsed: string (hex integer)hash: string (hash) ornulllogsBloom: string (hex data) ornullminer: string (address) ornullmixHash: optional string (hash)nonce: string (8-byte hex data) ornullnumber: string (hex integer) ornullparentBeaconBlockRoot: optional string (hash)parentHash: string (hash)receiptsRoot: string (hash)requestsHash: optional string (hash)sha3Uncles: string (hash)signature: optional string (hex data)size: string (hex integer)slotNumber: optional string (hex integer)stateRoot: string (hash)step: optional integertimestamp: string (hex integer)totalDifficulty: optional string (hex integer)transactions: optional array of string (hash), or array of object (transaction, same asresultineth_getTransactionByHash) when full transactions are requestedtransactionsRoot: string (hash)uncles: array of string (hash)withdrawals: optional array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
withdrawalsRoot: optional string (hash)
blockAccessList: optional string (hex data)generatedBlockAccessList: optional string (hex data)hash: string (hash)rlp: string (hex data)
debug_getChainLevel
Retrieves a representation of tree branches on a given chain level (Nethermind specific).
- Parameters
- Request
- Response
number: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getChainLevel",
"params": [number]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object
blockInfos: array of objectblockHash: string (hash)isFinalized: booleantotalDifficulty: string (hex integer)wasProcessed: boolean
hasBlockOnMainChain: boolean
debug_getConfigValue
Retrieves the Nethermind configuration value, e.g. JsonRpc.Enabled
- Parameters
- Request
- Response
-
category: string -
name: string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getConfigValue",
"params": [category, name]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object
result may be null in a successful response.
debug_getRawBlock
Get Raw Block format.
- Parameters
- Request
- Response
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawBlock",
"params": [blockParameter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: string (hex data)
debug_getRawBlockAccessList
Get raw block access list format.
- Parameters
- Request
- Response
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawBlockAccessList",
"params": [blockParameter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: string (hex data)
debug_getRawHeader
Get Raw Header format.
- Parameters
- Request
- Response
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawHeader",
"params": [blockParameter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: string (hex data)
debug_getRawReceipts
Get Raw Receipt format.
- Parameters
- Request
- Response
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawReceipts",
"params": [blockParameter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of string (hex data)
result may be null in a successful response.
debug_getRawTransaction
Get Raw Transaction format.
- Parameters
- Request
- Response
transactionHash: string (hash)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getRawTransaction",
"params": [transactionHash]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: string (hex data)
debug_getSyncStage
Retrieves Nethermind Sync Stage, With extra Metadata
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_getSyncStage",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object
currentStage: string
debug_insertReceipts
Insert receipts for the block after verifying receipts root correctness.
- Parameters
- Request
- Response
-
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse) -
receiptForRpc: array of object
blobGasPrice: string (hex integer)blobGasUsed: string (hex integer)blockGasUsed: string (hex integer)blockHash: string (hash)blockNumber: string (hex integer)contractAddress: string (address)cumulativeGasUsed: string (hex integer)effectiveGasPrice: string (hex integer)executionGasUsed: string (hex integer)frameReceipts: array of objectexecutionGasUsed: string (hex integer)gasUsed: string (hex integer)logs: array of objectaddress: string (address)blockHash: string (hash)blockNumber: string (hex integer)blockTimestamp: string (hex integer)data: string (hex data)logIndex: string (hex integer)removed: booleantopics: array of string (hash)transactionHash: string (hash)transactionIndex: string (hex integer)
stateGasUsed: string (hex integer)status: integer
from: string (address)gasUsed: string (hex integer)logs: array of objectaddress: string (address)blockHash: string (hash)blockNumber: string (hex integer)blockTimestamp: string (hex integer)data: string (hex data)logIndex: string (hex integer)removed: booleantopics: array of string (hash)transactionHash: string (hash)transactionIndex: string (hex integer)
logsBloom: string (hex data)payer: string (address)root: string (hash)status: string (hex integer)storageGasUsed: string (hex integer)to: string (address)transactionHash: string (hash)transactionIndex: string (hex integer)type: string (transaction type)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_insertReceipts",
"params": [blockParameter, receiptForRpc]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: boolean
debug_intermediateRoots
Replays a block and returns the world-state root after each transaction in execution order. EIP-4788/EIP-2935 system calls and withdrawals do not produce an entry. Failed transactions still produce a root (geth partial-result semantics). The block must be canonical or in the bad-block store.
- Parameters
- Request
- Response
-
blockHash: string (hash) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_intermediateRoots",
"params": [blockHash, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of string (hash)
debug_migrateReceipts
Sets the block number up to which receipts will be migrated to (Nethermind specific).
- Parameters
- Request
- Response
-
from: string (hex integer) -
to: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_migrateReceipts",
"params": [from, to]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: boolean
debug_resetHead
Rewinds to a canonical block with state available for block processing and prunes abandoned flat-state snapshots; returns false for an unknown hash or a refused rewind (Nethermind specific). Requires paused, drained block processing and no active initial synchronization. A target below the sync pivot is refused unless historical downloads are complete and retained progress is at or below the target; the pivot then moves with the head. Ancient backfill permits rewinds at or above the pivot.
- Parameters
- Request
- Response
blockHash: string (hash)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_resetHead",
"params": [blockHash]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: boolean
debug_setHead
Rewinds the head to a canonical block with state available for block processing, given by number, tag or hash, and prunes abandoned flat-state snapshots. Returns false for an unknown target or a refused rewind (Nethermind specific). Requires paused, drained block processing and no active initial synchronization. A target below the sync pivot is refused unless historical downloads are complete and retained progress is at or below the target; the pivot then moves with the head. Ancient backfill permits rewinds at or above the pivot.
- Parameters
- Request
- Response
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_setHead",
"params": [blockParameter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: boolean
debug_simulateV1
Retrieves geth like traces of the simulated blocks
- Parameters
- Request
- Response
-
payload: objectblockStateCalls: array of objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
calls: array of objectblockHash: string (hash)blockNumber: string (hex integer)blockTimestamp: string (hex integer)gas: string (hex integer)hash: string (hash)transactionIndex: string (hex integer)type: string (transaction type)
stateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
returnFullTransactionObjects: booleanreturnFullTransactions: booleantraceTransfers: booleanvalidation: boolean
-
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_simulateV1",
"params": [payload, blockParameter, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of object
author: optional string (address)baseFeePerGas: optional string (hex integer)blobGasUsed: optional string (hex integer)blockAccessListHash: optional string (hash)difficulty: string (hex integer)excessBlobGas: optional string (hex integer)extraData: string (hex data)gasLimit: string (hex integer)gasUsed: string (hex integer)hash: string (hash) ornulllogsBloom: string (hex data) ornullminer: string (address) ornullmixHash: optional string (hash)nonce: string (8-byte hex data) ornullnumber: string (hex integer) ornullparentBeaconBlockRoot: optional string (hash)parentHash: string (hash)receiptsRoot: string (hash)requestsHash: optional string (hash)sha3Uncles: string (hash)signature: optional string (hex data)size: string (hex integer)slotNumber: optional string (hex integer)stateRoot: string (hash)step: optional integertimestamp: string (hex integer)totalDifficulty: optional string (hex integer)traces: array of object (the tracer's own result instead whentraceris set)failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
transactions: optional array of string (hash), or array of object (transaction, same asresultineth_getTransactionByHash) when full transactions are requestedtransactionsRoot: string (hash)uncles: array of string (hash)withdrawals: optional array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
withdrawalsRoot: optional string (hash)
debug_standardTraceBadBlockToFile
This method is similar to the debug_standardTraceBlockToFile method, but can be used to obtain information about a block that has been rejected as invalid.
- Parameters
- Request
- Response
-
blockHash: string (hash) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_standardTraceBadBlockToFile",
"params": [blockHash, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of string
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.
- Parameters
- Request
- Response
-
blockHash: string (hash) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_standardTraceBlockToFile",
"params": [blockHash, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of string
debug_storageRangeAt
Returns up to maxResult storage slots of an account as they are before the transaction at the given index of the block runs. Slots are in hashed-key order from the hashed key keyStart. nextKey is the hashed key to continue from, or null when no slots follow. Slot key preimages are not kept, so each key is null. At most 1024 slots are returned per call. Not supported on chains whose block processor cannot stop before a transaction, such as AuRa and Taiko.
- Parameters
- Request
- Response
-
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse) -
txIndex: integer -
address: string (address) -
keyStart: string (hex data) -
maxResult: integer
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_storageRangeAt",
"params": [blockParameter, txIndex, address, keyStart, maxResult]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object
nextKey: string (hash) ornullstorage: map of object ornullkey: string (hash) ornullvalue: string (hash)
debug_traceBadBlock
Similar to debug_traceBlockByHash, but replays a block that has been rejected as invalid and is held in the bad-block store.
- Parameters
- Request
- Response
-
blockHash: string (hash) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceBadBlock",
"params": [blockHash, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of object (error string in place of result when a JavaScript tracer fails)
result: object (the tracer's own result instead whentraceris set)failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
txHash: string (hash)
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.
- Parameters
- Request
- Response
-
blockRlp: string (hex data) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceBlock",
"params": [blockRlp, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of object (error string in place of result when a JavaScript tracer fails)
result: object (the tracer's own result instead whentraceris set)failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
txHash: string (hash)
debug_traceBlockByHash
Similar to debug_traceBlock, this method accepts a block hash and replays the block that is already present in the database.
- Parameters
- Request
- Response
-
blockHash: string (hash) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceBlockByHash",
"params": [blockHash, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of object (error string in place of result when a JavaScript tracer fails)
result: object (the tracer's own result instead whentraceris set)failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
txHash: string (hash)
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.
- Parameters
- Request
- Response
-
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceBlockByNumber",
"params": [blockParameter, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of object (error string in place of result when a JavaScript tracer fails)
result: object (the tracer's own result instead whentraceris set)failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
txHash: string (hash)
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. A non-null input takes precedence over data. Blob versioned hashes are decoded as byte arrays; invalid lengths are rejected during Blob transaction conversion, not JSON decoding. For duplicate fields, the last value is used.
- Parameters
- Request
- Response
-
call: objectblockHash: string (hash)blockNumber: string (hex integer)blockTimestamp: string (hex integer)gas: string (hex integer)hash: string (hash)transactionIndex: string (hex integer)type: string (transaction type)
-
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceCall",
"params": [call, blockParameter, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object (the tracer's own result instead when tracer is set)
failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
debug_traceCallMany
Executes a list of bundles of transactions without creating transactions on the blockchain and returns their traces. Unless any bundle has state or block overrides, each call is traced independently against the state of the selected block; to let later calls see the effects of earlier ones, set state or block overrides on a bundle or use debug_simulateV1. Non-empty options.stateOverrides or options.blockOverrides cannot be combined with state or block overrides on any bundle.
- Parameters
- Request
- Response
bundles: array of object
blockOverride: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
stateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
transactions: array of objectblockHash: string (hash)blockNumber: string (hex integer)blockTimestamp: string (hex integer)gas: string (hex integer)hash: string (hash)transactionIndex: string (hex integer)type: string (transaction type)
-
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceCallMany",
"params": [bundles, blockParameter, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of array of object (the tracer's own result instead when tracer is set)
failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
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.
- Parameters
- Request
- Response
-
transactionHash: string (hash) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransaction",
"params": [transactionHash, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object (the tracer's own result instead when tracer is set)
failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
debug_traceTransactionByBlockAndIndex
Returns the full stack trace of the transaction at the given index of the block specified by number, tag or hash. The block that the parameter resolves to is the one traced, so a hash that is not on the canonical chain traces that block rather than the canonical one at the same height.
- Parameters
- Request
- Response
-
blockParameter: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe), object (EIP-1898{blockHash, requireCanonical}or{blockNumber}), or integer (block number, ifJsonRpc.StrictHexFormatisfalse) -
txIndex: integer -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransactionByBlockAndIndex",
"params": [blockParameter, txIndex, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object (the tracer's own result instead when tracer is set)
failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
debug_traceTransactionByBlockhashAndIndex
Returns the full stack trace of the transaction at the given index of the block with the specified hash. The block need not be on the canonical chain.
- Parameters
- Request
- Response
-
blockHash: string (hash) -
txIndex: integer -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransactionByBlockhashAndIndex",
"params": [blockHash, txIndex, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object (the tracer's own result instead when tracer is set)
failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
debug_traceTransactionInBlockByHash
- Parameters
- Request
- Response
-
blockRlp: string (hex data) -
transactionHash: string (hash) -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransactionInBlockByHash",
"params": [blockRlp, transactionHash, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object (the tracer's own result instead when tracer is set)
failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)
debug_traceTransactionInBlockByIndex
- Parameters
- Request
- Response
-
blockRlp: string (hex data) -
txIndex: integer -
options: objectblockOverrides: objectbaseFeePerGas: string (hex integer)beaconRoot: string (hash)blobBaseFee: string (hex integer)feeRecipient: string (address)gasLimit: string (hex integer)number: string (hex integer)prevRandao: string (hash)time: string (hex integer)withdrawals: array of objectaddress: string (address)amount: string (hex integer)index: string (hex integer)validatorIndex: string (hex integer)
disableMemory: booleandisableStack: booleandisableStorage: booleanenableMemory: booleanenableReturnData: booleanlimit: integerstateOverrides: map of objectbalance: string (hex integer)code: string (hex data)movePrecompileToAddress: string (address)nonce: string (hex integer)state: map of string (hash)stateDiff: map of string (hash)
streamMode: booleantimeout: string (duration)tracer: stringtracerConfig: objecttxHash: string (hash)txIndex: string (hex integer)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "debug_traceTransactionInBlockByIndex",
"params": [blockRlp, txIndex, options]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object (the tracer's own result instead when tracer is set)
failed: booleangas: integerreturnValue: string (hex data)structLogs: array of objectdepth: integererror: optional stringgas: integergasCost: integermemory: optional array of string (32-byte hex data)op: optional stringpc: integerrefund: optional integerreturnData: optional string (hex data)stack: optional array of string (hex integer)storage: optional map of string (32-byte hex data)