decodeAddr method

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

Overrides the address decoding method for Avax P-Chain addresses.

addr: The Avax P-Chain address to decode. kwargs: A map of optional decoding parameters.

This method delegates the decoding of Avax P-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.avaxPChain.params.addrPrefix!,
    CoinsConf.avaxPChain.params.addrHrp!,
  );
}