NetworkInfo.fromSingleHost constructor

NetworkInfo.fromSingleHost({
  1. required String bech32Hrp,
  2. required String host,
})

Implementation

factory NetworkInfo.fromSingleHost({
  required String bech32Hrp,
  required String host,
}) {
  return NetworkInfo(
    bech32Hrp: bech32Hrp,
    lcdInfo: LCDInfo(host: host),
    grpcInfo: GRPCInfo(host: host),
  );
}