isValid

fun isValid(input: String, strict: Boolean = false): Boolean

Check if the string is a valid AccountAddress.

Return

valid = true if the string is valid, valid = false if not. If the string is not valid, invalidReason will be set explaining why it is invalid.

Parameters

input

A hex string representing an account address.

strict

If true, use strict parsing behavior. If false, use relaxed parsing behavior. Default is false.