getBlockStats method

Future<BlockStatsRes> getBlockStats({
  1. CallOptions? options,
})

Returns a BlockStatsRes object. options is a CallOptions object that can be used to set additional options for the RPC request.

Throws an Exception if an error occurs during the RPC request.

Implementation

Future<BlockStatsRes> getBlockStats({
  CallOptions? options,
}) async {
  final BlockStatsReq request = BlockStatsReq();
  final BlockStatsRes response = await genusNetworkMetricsStub.getBlockStats(
    request,
    options: options,
  );
  return response;
}