Skip to main content
Returns the most recent blocks the node received from the network that failed validation, with the reason each one was rejected. Returns an empty array when the node has not seen any bad blocks since it started. This method will use 80 Compute Units.

Parameters

None.

Returns

array - An array of bad block objects, each containing:
  • hash - string - The hash of the rejected block
  • rlp - string - The RLP-encoded block, as a hexadecimal string
  • block - object - The decoded block, with the same fields as eth_getBlockByHash