getBlockTransactionCount static method

Future<int> getBlockTransactionCount(
  1. GetBlockTransactionCountParameters getBlockTransactionCountParameters, {
  2. String configKey = 'default',
})

Implementation

static Future<int> getBlockTransactionCount(
    GetBlockTransactionCountParameters getBlockTransactionCountParameters, {
      String configKey = 'default',
    }) =>
    _guardFuture(() async {
      _logAction(
        'getBlockTransactionCount',
      );
      final result = await window.wagmiCore
          .getBlockTransactionCount(
        configKey.toJS,
        getBlockTransactionCountParameters.toJS,
      )
          .toDart;
      return result.toDartInt;
    });