Bitcoin Forum
August 21, 2017, 10:12:21 PM *
News: Latest stable version of Bitcoin Core: 0.14.2  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: JSON API for total network hashrate?  (Read 1939 times)
Hawkix
Hero Member
*****
Offline Offline

Activity: 520



View Profile WWW
May 24, 2011, 10:08:24 AM
 #1

Is there an JSON web API somewhere I can get current total network hashrate (like it is shown on bitcoinwatch.com or bitcoincharts.com)?

Optionally, also with the current blockspeed and block number?


Donations: 1Hawkix7GHym6SM98ii5vSHHShA3FUgpV6
http://btcportal.net/ - All about Bitcoin - coming soon!
1503353541
Hero Member
*
Offline Offline

Posts: 1503353541

View Profile Personal Message (Offline)

Ignore
1503353541
Reply with quote  #2

1503353541
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1503353541
Hero Member
*
Offline Offline

Posts: 1503353541

View Profile Personal Message (Offline)

Ignore
1503353541
Reply with quote  #2

1503353541
Report to moderator
1503353541
Hero Member
*
Offline Offline

Posts: 1503353541

View Profile Personal Message (Offline)

Ignore
1503353541
Reply with quote  #2

1503353541
Report to moderator
1503353541
Hero Member
*
Offline Offline

Posts: 1503353541

View Profile Personal Message (Offline)

Ignore
1503353541
Reply with quote  #2

1503353541
Report to moderator
eturnerx
Member
**
Offline Offline

Activity: 84


View Profile
May 24, 2011, 10:21:55 AM
 #2

Not JSON, but easily usable.... http://blockexplorer.com/q
Hawkix
Hero Member
*****
Offline Offline

Activity: 520



View Profile WWW
May 24, 2011, 10:55:01 AM
 #3

How to get total network hashrate from these?

Donations: 1Hawkix7GHym6SM98ii5vSHHShA3FUgpV6
http://btcportal.net/ - All about Bitcoin - coming soon!
Hawkix
Hero Member
*****
Offline Offline

Activity: 520



View Profile WWW
May 24, 2011, 03:29:06 PM
 #4

I found it (when assuming 1-day average):

Code:
$interval = file_get_contents("http://blockexplorer.com/q/interval/144");
$winning  = file_get_contents("http://blockexplorer.com/q/hashestowin");
print $winning/$interval;


Donations: 1Hawkix7GHym6SM98ii5vSHHShA3FUgpV6
http://btcportal.net/ - All about Bitcoin - coming soon!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!