ADABaseAddress constructor
ADABaseAddress(
- String address, {
- ADANetwork? network,
Factory method to create an ADABaseAddress instance from a given address string.
Implementation
factory ADABaseAddress(String address, {ADANetwork? network}) {
final decode = AdaAddressUtils.decodeAddres(address,
addrType: ADAAddressType.base, network: network);
return ADABaseAddress._(
paymentCredential: AdaAddressUtils.toCerdential(decode.baseHashBytes!),
stakeCredential: AdaAddressUtils.toCerdential(decode.stakeHashBytes!),
address: address,
network: decode.network);
}