public async Task CurrentHashrate([Remainder] string ignore = null) { JObject lastBlockHeaderObject = await SendRpcRequest("getlastblockheader"); await ReplyAsync($"The current global hashrate is **{HashFormatter.Format((double)lastBlockHeaderObject["result"]["block_header"]["difficulty"] / 30)}/s**"); }
public static async Task <string> CurrentHashrate(string ignore = null) { JObject lastBlockHeaderObject = await SendRpcRequest("getlastblockheader"); return($"{HashFormatter.Format((double)lastBlockHeaderObject["result"]["block_header"]["difficulty"] / 30)}/s"); }