debug_getBadBlocks
The debug_getBadBlocks method returns a list of the most recent bad blocks that the client has encountered. Bad blocks are blocks that were rejected during validation due to consensus rule violations, invalid transactions, or other issues on the Base network. This method is useful for debugging network issues, analyzing fork events, and understanding why certain blocks were rejected.
Parameters
This method does not require any parameters.
Return Object
The method returns an array of bad blocks with their raw block data, block hash, and reason for rejection.
Request Example
Request
Response Example
Response