decodeAddr method
Overrides the address decoding method for Avax X-Chain addresses.
addr
: The Avax X-Chain address to decode.
kwargs
: A map of optional decoding parameters.
This method delegates the decoding of Avax X-Chain addresses to the
_AvaxAddrUtils.decodeAddr
method, providing the address prefix and Human-Readable Part (HRP)
from the Avax P-Chain configuration.
Returns the decoded address as a List
Implementation
@override
List<int> decodeAddr(String addr, [Map<String, dynamic> kwargs = const {}]) {
return _AvaxAddrUtils.decodeAddr(
addr,
CoinsConf.avaxXChain.params.addrPrefix!,
CoinsConf.avaxXChain.params.addrHrp!,
);
}