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