GenusGRPCService constructor
GenusGRPCService({})
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)),
);