Type guard to check if a string is a valid block hash
The string to check
True if the string is a valid block hash
if (isBlockHash(input)) { // input is now typed as BlockHash} Copy
if (isBlockHash(input)) { // input is now typed as BlockHash}
Type guard to check if a string is a valid block hash