Functions
assertIsAddress
assertIsAddress(
putativeAddress
):asserts putativeAddress is Address<string>
From time to time you might acquire a string, that you expect to validate as an address or public key, from an untrusted network API or user input. Use this function to assert that such an arbitrary string is a base58-encoded address.
Parameters
Parameter | Type |
---|---|
putativeAddress | string |
Returns
asserts putativeAddress is Address<string>