health method
Return health status of the node.
Node is considered healthy if it is:
- connected to some peers (unless running in dev mode)
- not performing a major sync
Implementation
Future<Health> health() async {
final response = await _provider.send('system_health', []);
return Health.fromJson(response.result as Map<String, dynamic>);
}