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(
  ClientChannel(
    host,
    port: port,
    options: options,
  ),
),
      genusTransactionStub = TransactionServiceClient(
        ClientChannel(
          host,
          port: port,
          options: options,
        ),
      );