• validateAddress checks if a given address is a valid address

    Parameters

    • address: string

      the address to check

    • prefix: string = "secret"

      the address prefix, defaults to "secret"

    Returns {
        isValid: boolean;
        reason?: string;
    }

    { isValid: true } if valid, { isValid: false, reason: "..." } if not valid

    • isValid: boolean
    • Optional reason?: string

Generated using TypeDoc