4

How can I grab from monero pool my own hashrate speed? its dynamic page so I need some help:) I would like to create my own chart for my speed of hashrate when is up or down. Any idea?

bigreddmachine
  • 3,747
  • 1
  • 11
  • 30
user437
  • 41
  • 1
  • 2

2 Answers2

2
  1. Go to your pools config file ../config.js i.e. moneropool.com/config.js

  2. Get the your pools api variable: var api="https://api.moneropool.com" i.e. api.moneropool.com

  3. to get pool stats add "/stats" to the api url i.e. api.moneropool.com/stats

  4. to get your stats add "/stats_address" and send parameters longpool and address i.e. https://api.moneropool.com/stats_address?longpool=false&address=YOURADDRESS

1

If you are mining on a pool that uses the node-cryptonote-pool software, the pool uses a publicly available API. So you could do the same. Here's where the call happens: https://github.com/zone117x/node-cryptonote-pool/blob/da62fd8393434baa74260c6f085456730073444d/website_example/pages/home.html#L374

You would need to set api and address to your pool and address. Most pools have a config.js file like this one: https://moneropool.com/config.js. That file shows your pool's api address.

bigreddmachine
  • 3,747
  • 1
  • 11
  • 30