ShelleyAddress.fromBech32 constructor

ShelleyAddress.fromBech32(
  1. String address
)

Implementation

factory ShelleyAddress.fromBech32(String address) {
  final decoded = bech32.decode(address, 256);
  final hrp = decoded.hrp;
  final bytes = Bech32Coder(hrp: hrp).decode(address);
  return ShelleyAddress(bytes, hrp: hrp);
}