netListening method

Future<bool?> netListening()

Net listening, true when listening

Implementation

Future<bool?> netListening() async {
  const method = EthereumRpcMethods.netListening;
  final dynamic res = await _client.rpcClient.request(method);
  if (res != null && res.containsKey(EthereumConstants.ethResultKey)) {
    return res[EthereumConstants.ethResultKey];
  }
  _client.processError(method, res);
  return null;
}