Get wallet stats from monero pools.
You can try it here.
Based on cli.rb
script.
Heroku router has 30s timeout thats why i set small timeouts for pool request.
For example monerohash.com has long response about 10sec and don't include in scan results (on heroku)
cli.rb was writen as proof of concept for article.
Instead of heroku web service cli.rb
may be used for multiple wallets scan.
To add pool to scan you need edit file pools.rb
.
Add new item to @@pools_api_base_url
.
Item format {"pool_name" => ["api_version", api_address]}
.
pool_name
maybe anything, but i use domain name of pool.
supported api_version:
- 0 - default, just url+wallet
- 1 - Snipa22's nodejs-pool based pools
- 2 - node-cryptonote-pool and his fork cryptonote-universal-pool
api_address is
url from where pool get stats. You can get it by view requests from pool site. Mostly browsers can show it to you by pressing Ctrl+Shift+E/F12