decodeAddr method

  1. @override
List<int> decodeAddr(
  1. String addr, [
  2. Map<String, dynamic> kwargs = const {}
])
override

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!,
  );
}