GenusGRPCService constructor

GenusGRPCService({
  1. required Object host,
  2. required int port,
  3. ChannelOptions options = const ChannelOptions(credentials: ChannelCredentials.insecure()),
})

Implementation

GenusGRPCService({
  required this.host,
  required this.port,
  this.options = const ChannelOptions(
    credentials: ChannelCredentials.insecure(),
  ),
})  : genusBlockStub = BlockServiceClient(
        getClientChannel(
            grpcSettings:
                GrpcSettings(host: host, port: port, options: options)),
      ),
      genusTransactionStub = TransactionServiceClient(
        getClientChannel(
            grpcSettings:
                GrpcSettings(host: host, port: port, options: options)),
      ),
      genusNetworkMetricsStub = NetworkMetricsServiceClient(
        getClientChannel(
            grpcSettings:
                GrpcSettings(host: host, port: port, options: options)),
      );