decodeAddr method

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

Decodes a Monero (XMR) address.

Given an XMR address and optional decoding parameters specified in kwargs, this method decodes the XMR address and returns the result as a List

If decoding parameters are provided, ensure that "net_ver" is a List

Parameters:

  • addr: The XMR address to decode.
  • kwargs: A map of optional decoding parameters, such as "net_ver."

Returns: A List

Implementation

@override
List<int> decodeAddr(String addr, [Map<String, dynamic> kwargs = const {}]) {
  final List<int> netVerBytes =
      AddrKeyValidator.validateAddressArgs<List<int>>(kwargs, "net_ver");
  final decodeAddr = decode(addr, netVerBytes: netVerBytes);
  return decodeAddr.keyBytes;
}