isValidBech32

open fun isValidBech32(string: String, coin: CoinType, hrp: String): Boolean

Determines if the string is a valid Any address with the given hrp.

Return

bool indicating if the address is valid.

Parameters

string

address to validate.

coin

coin type of the address.

hrp

explicit given hrp of the given address.