Exemplo n.º 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**");
        }
Exemplo n.º 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");
        }