ADAPointerAddress constructor

ADAPointerAddress(
  1. String address, {
  2. ADANetwork? network,
})

Factory method to create an ADAPointerAddress instance from a given address string.

Implementation

factory ADAPointerAddress(String address, {ADANetwork? network}) {
  final decode = AdaAddressUtils.decodeAddres(address,
      network: network, addrType: ADAAddressType.pointer);
  return ADAPointerAddress._(
      paymentCredential: AdaAddressUtils.toCerdential(decode.baseHashBytes!),
      pointer: decode.pointer!,
      address: address,
      network: decode.network);
}