syncStatus method
Sync status, an object with data about the sync status if syncing or false if not.
Implementation
Future<EthereumSyncStatus?> syncStatus() async {
const method = EthereumRpcMethods.syncing;
final dynamic res = await _client.rpcClient.request(method);
if (res != null && res.containsKey(EthereumConstants.ethResultKey)) {
return EthereumSyncStatus.fromMap(res);
}
_client.processError(method, res);
return null;
}