getDifficulty method

Future<GetDifficultyResult> getDifficulty()

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>);
}