ADAByronAddress constructor

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

Factory constructor to create an ADAByronAddress instance from a given address string.

Implementation

factory ADAByronAddress(String address, {ADANetwork? network}) {
  final decode = AdaAddressUtils.decodeAddres(address,
      addrType: ADAAddressType.byron, network: network);
  return ADAByronAddress._(decode.byronAddrPayload!.encode(),
      decode.byronAddrPayload!, decode.network);
}