node-cryptonote-pool icon indicating copy to clipboard operation
node-cryptonote-pool copied to clipboard

How do I make mining stats API calls?

Open dbrisinda opened this issue 8 years ago • 2 comments

I am unclear how to make mining stats API calls for mining pools that use this software. Is there any documentation available?

Specifically, the software mentions:

Live stats API (using AJAX long polling with CORS) Currency network/block difficulty Current block height Network hashrate Pool hashrate Each miners' individual stats (hashrate, shares submitted, pending balance, total paid, etc) Blocks found (pending, confirmed, and orphaned)

dbrisinda avatar Oct 12 '17 01:10 dbrisinda

I think there is no documentation available, but here are the endpoints for your request as example on moneropool.com https://api.moneropool.com/live_stats Which includes network stats (Not sure where the network hashrate is in there), pool hashrate, last blocks, last payments and some more information

https://api.moneropool.com/stats_address?address=

&longpoll=true Which includes { "stats":{ "hashes":"", "lastShare":"", "balance":"", "paid":"", "hashrate":"" }, "payments":[] }

That should have everything you need. Hope I could help a little

speedmann avatar Oct 13 '17 10:10 speedmann

Hi speedmann, This endpoint does not work. Any suggestions?

Shamim1977 avatar Aug 31 '20 09:08 Shamim1977