Skip to main content

debug_getBadBlocks

Returns an array of recent bad blocks that the client has seen on the network.

Params

(0)

Result

(Blocks)
array of:
block
string
required
Match pattern:
^0x[0-9a-f]*$
hash
string
required
Match pattern:
^0x[0-9a-f]{64}$
rlp
string
required
Match pattern:
^0x[0-9a-f]*$

Request

await window.ethereum.request({
"method": "debug_getBadBlocks",
"params": []
});