• Returns whether or not an address is a valid Krist address.

    Parameters

    • address: string

      The address to check for validity.

    • addressPrefix: undefined | null | string = "k"

      The single-character address prefix provided by the sync node.

    • Optional allowV1: boolean

      Whether or not the function should validate v1 addresses. Note that as of February 2021, the Krist server no longer accepts any kind of transaction to/from a v1 address, so features that are validating an address for purpose of a transaction (e.g. the address picker) should NOT set this to true.

    Returns boolean

Generated using TypeDoc