Function isTransactionHash

    • Type guard to check if a string is a valid transaction hash

      Parameters

      • value: string

        The string to check

      Returns value is TransactionHash

      True if the string is a valid transaction hash

      if (isTransactionHash(input)) {
      // input is now typed as TransactionHash
      }