netVersion method

Future<String?> netVersion()

Net version

Implementation

Future<String?> netVersion() async {
  const method = EthereumRpcMethods.netVersion;
  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;
}