示例#1
0
        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**");
        }
示例#2
0
        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");
        }