getDifficulty method
Returns the current difficulty and associated network hashrate.
Implementation
Future<GetDifficultyResult> getDifficulty() async {
final result = await sendRequest(DaemonMethod.getDifficulty);
return GetDifficultyResult.fromJson(result as Map<String, dynamic>);
}