decodeAddr method

  1. @override
List<int> decodeAddr(
  1. String addr, {
  2. List<int>? addrPrefix,
})
override

Validates and decodes the given Ripple (XRP) X-address.

Implementation

@override
List<int> decodeAddr(String addr, {List<int>? addrPrefix}) {
  addrPrefix = AddrKeyValidator.getAddrArg<List<int>>(
    addrPrefix,
    "addrPrefix",
  );
  return XRPAddressUtils.decodeXAddress(addr, addrPrefix).bytes;
}