decodeAddr method
Decodes a given blockchain address string.
This method takes an address string and optional keyword arguments (kwargs) and decodes it into a List
addr
: The blockchain address string to be decoded.kwargs
: Optional keyword arguments that can be used for configuration.
Returns a List
Implementation
@override
List<int> decodeAddr(String addr, [Map<String, dynamic> kwargs = const {}]) {
final int? ss58Format =
AddrKeyValidator.nullOrValidateAddressArgs<int>(kwargs, "ss58_format");
return _SubstrateAddrUtils.decodeAddr(addr, ss58Format).item1;
}