Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: drmmaker on September 09, 2018, 06:41:53 PM



Title: API Whattomine. How?
Post by: drmmaker on September 09, 2018, 06:41:53 PM
Hi guys!

Can you provide me with any ideas how to get advertised profit form whattomine using API request (or something else)?

thnx!


Title: Re: API Whattomine. How?
Post by: GGurol on September 09, 2018, 06:48:47 PM
Hi guys!

Can you provide me with any ideas how to get advertised profit form whattomine using API request (or something else)?

thnx!

This is the live json file
https://whattomine.com/coins.json (https://whattomine.com/coins.json)
You need to expand the array and filter for your algoritm via your programming language.
If you use PHP,
in foreach loop, you can use simple equality control like;

foreach($array AS $data)   {

if($data['algorithm']=="equihash") {
// add your action
}


                                    }


Title: Re: API Whattomine. How?
Post by: drmmaker on September 20, 2018, 09:23:25 AM
Hi guys!

Can you provide me with any ideas how to get advertised profit form whattomine using API request (or something else)?

thnx!

This is the live json file
https://whattomine.com/coins.json (https://whattomine.com/coins.json)
You need to expand the array and filter for your algoritm via your programming language.
If you use PHP,
in foreach loop, you can use simple equality control like;

foreach($array AS $data)   {

if($data['algorithm']=="equihash") {
// add your action
}


                                    }

Hi,

Thank you a lot!
Your help is highly appreciated.


Title: Re: API Whattomine. How?
Post by: fexploit on September 20, 2018, 01:41:12 PM
you can also use coincalculators.io alternatively.

https://www.coincalculators.io/api/