getEtherProtocolVersion method

Future<int> getEtherProtocolVersion()

Returns the version of the Ethereum-protocol the client is using.

Implementation

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