Function isKleverAddress

    • Type guard to check if a string is a valid Klever address

      Parameters

      • value: string

        The string to check

      Returns value is KleverAddress

      True if the string is a valid Klever address

      if (isKleverAddress(input)) {
      // input is now typed as KleverAddress
      }