Function isAddressValid

  • Check if address is valid

    Parameters

    • maybeAddress: string

      Address to check

    Returns maybeAddress is `ak_${string}`

  • Check if data is encoded in one of provided encodings

    Type Parameters

    Parameters

    • maybeEncoded: string

      Data to check

    • Rest...encodings: E[]

      Rest parameters with encodings to check against

    Returns maybeEncoded is `${E}_${string}`