findAddrType static method

ADAAddressType findAddrType(
  1. String addr
)

Find the address type of a given ADA address.

addr: The ADA address.

Returns the ADAAddressType of the address.

Implementation

static ADAAddressType findAddrType(String addr) {
  final decodeAddr = AdaGenericAddrDecoder().decode(addr);
  return decodeAddr.type;
}