debug_getBadBlocks
The debug_getBadBlocks method returns a list of recent bad blocks that the client has seen on the Optimism network. This debugging method is useful for identifying and analyzing blocks that were rejected by the node, helping developers understand why certain blocks were considered invalid. It's particularly valuable for network monitoring, consensus debugging, and understanding chain health.
Parameters
This method does not require any parameters.
Return Object
The method returns an array of bad block objects, each containing block details and the reason for rejection.
Request Example
Request
Response Example
Response