ADAPointerAddress constructor
ADAPointerAddress(
- String address, {
- 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);
}