getWork method
Get work Returns the hash of the current block, the seedHash, and the boundary condition to be met ("target"). Returns an MoacWork object or null
Implementation
Future<MoacWork> getWork() async {
final List paramBlock = [];
final String method = MoacRpcMethods.getWork;
final res = await rpcClient.request(method, paramBlock);
if (res != null && res.containsKey(moacResultKey)) {
return MoacWork.fromList(res[moacResultKey]);
}
_processError(method, res);
return null;
}