getPeerCount method

Future<int> getPeerCount()

Returns the amount of Ethereum nodes currently connected to the client.

Implementation

Future<int> getPeerCount() async {
  final hex = await _makeRPCCall<String>('net_peerCount');
  return hexToInt(hex).toInt();
}