getRpcApiVersion method

Future<RpcApiVersion> getRpcApiVersion()

Implementation

Future<RpcApiVersion> getRpcApiVersion() async {
  final result = await client.request(
    'rpc.discover',
    [],
  );
  final rpcApiVersion = RpcApiVersion.parseVersion(result['info']['version']);
  return rpcApiVersion;
}