Author

Topic: How to get current Net Hashrate by PHP? (Read 677 times)

legendary
Activity: 1302
Merit: 1008
Core dev leaves me neg feedback #abuse #political
May 31, 2014, 10:04:59 AM
#4
other cryptocurrencies use different blockchain and different code.
The code should be open source for each currency.

Some currencies change difficulty every block.  In most
cases, I think the difficulty level is at least stored in
each block.  So you will have to write your own code
to check this if the code isn't out there.
sr. member
Activity: 253
Merit: 250
Thanks, Jonald!
The problem is I need to get the difficulty levels from some different cryptocurrencies.
And there is not service such as blockchain.info for them.
Maybe some of them do not have a block explorer yet Smiley
What is the way to get info in this case?
I mean, the service like a whattomine.com, how they get the levels and rates?
legendary
Activity: 1302
Merit: 1008
Core dev leaves me neg feedback #abuse #political
There is no way to measure it directly because you're
talking about the sum of all miners across the global
bitcoin network.  The best you can do is to calculate
an estimate based on the current difficulty level and the time
between blocks, and of course it is always changing.

If you don't already have a PHP code library which
parses the blockchain, then the easiest thing
to do is probably use an API service such as
the one provided by blockchain.info.
sr. member
Activity: 253
Merit: 250
Hello!
I want to get some stats for the crypto currency.
Tell me please, is it possible to get current Net Hashrate by PHP?
Or I need to parse some third party sites for it?

Jump to: