Type guard to check if a string is a valid transaction hash
The string to check
True if the string is a valid transaction hash
if (isTransactionHash(input)) { // input is now typed as TransactionHash} Copy
if (isTransactionHash(input)) { // input is now typed as TransactionHash}
Type guard to check if a string is a valid transaction hash