debug_getBadBlocks
The debug_getBadBlocks method returns information about recently seen bad blocks that were rejected by the client on the Avalanche C-Chain network. This helps in debugging network issues and understanding why certain blocks were not accepted, providing valuable insights into block validation failures and potential network problems.
Parameters
This method does not require any parameters.
Return Object
Returns an array of bad block information including block details and the reason for rejection.
Request Example
Request
Response Example
Response