ADARewardAddress constructor

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

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

Implementation

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