1.1 KiB
1.1 KiB
zcash-android-wallet-sdk / cash.z.ecc.android.sdk / SdkSynchronizer / validateAddress
validateAddress
suspend fun validateAddress(address:
String
):
AddressType
Validates the given address, returning information about why it is invalid. This is a
convenience method that combines the behavior of isValidShieldedAddr and
isValidTransparentAddr into one call so that the developer doesn't have to worry about
handling the exceptions that they throw. Rather, exceptions are converted to
AddressType.Invalid which has a reason
property describing why it is invalid.
Parameters
address
- the address to validate.
Return an instance of AddressType providing validation info regarding the given address.