Post
Topic
Board Pools (Altcoins)
Re: [ANN][POOL] Mining Pool Hub - Multipool. Multialgo, Auto Exchange to any coin.
by
miningpoolhub
on 27/09/2017, 01:33:17 UTC
looking forward the api for auto switching, I'm building a watchdog which gets hashrates from pool to determine if the rig is healthy or dead.

Yeah I'll add that api and webpage.




- Exchange mined coins to any other alt coins (like Ethereum, Zcash, Monero, Dash) automatically.
  We encourage miners to payout to alt coins (not Bitcoin) to make alt coins healthier.
  Suggest us more payout coins.


Such Pool!

Very Mining!

So Dogecoin! dogecoin.com! Cheesy

+1 Yeah why no DOGECOIN for payout coins?


dogecoin would be fine, because of low tx fee´s


Well I'll consider it.Thanks.



It's not that easy to get all current hashrate of each worker when using auto switching because workers jump coins while api call is targetted to each coin.
on https://miningpoolhub.com/?page=account&action=balances I see balances of my each coins. So:
Code:
$uderID = 1234;
$userApiKey = 'asdasdasdasd';
foreach($coins_in_balances as $coin){
  $json = getApiData('https://'.$coin.'.miningpoolhub.com/index.php?page=api&action=getuserworkers&'.$userApiKey.'=&id='.$uderID);
  $dataArray = json_decode($json,true)['data'];
    foreach($dataArray as $worker){
      display_workers_data();
    }
}


It works, but not that recommended for both client and server. Server will suffer for every user * coin num and client will get result slowly.

I'll soon open api call to see all worker status.