Bitcoin Forum
April 25, 2014, 07:01:33 AM *
News: Due to the OpenSSL heartbleed bug, changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: New web service: obtain dump of bitcoin block NNNN  (Read 2629 times)
jgarzik
Staff
Hero Member
*****
qt
Offline Offline

Activity: 1260


View Profile

Ignore
August 26, 2010, 12:21:31 AM
 #1


As part of Bitcoin Watch, a new feature provides a developer-friendly dump of a bitcoin block at the specified height.

GET parameters:
"h" - height of block to download
"json" - set to non-zero value, to enable application/json output rather than HTML output

Examples:

Dump block 72000: http://blk.bitcoinwatch.com/b?h=72000

Dump block 72000, with JSON: http://blk.bitcoinwatch.com/b?h=72000&json=1


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
1398409293
Hero Member
*
Offline Offline

Posts: 1398409293

View Profile Personal Message (Offline)

Ignore
1398409293
Reply with quote  #2

1398409293
Report to moderator
1398409293
Hero Member
*
Offline Offline

Posts: 1398409293

View Profile Personal Message (Offline)

Ignore
1398409293
Reply with quote  #2

1398409293
Report to moderator
1398409293
Hero Member
*
Offline Offline

Posts: 1398409293

View Profile Personal Message (Offline)

Ignore
1398409293
Reply with quote  #2

1398409293
Report to moderator
    mBitCASINOWIN BITCOINS IN OUR
24/7 LIVE DEALER CASINO

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1398409293
Hero Member
*
Offline Offline

Posts: 1398409293

View Profile Personal Message (Offline)

Ignore
1398409293
Reply with quote  #2

1398409293
Report to moderator
1398409293
Hero Member
*
Offline Offline

Posts: 1398409293

View Profile Personal Message (Offline)

Ignore
1398409293
Reply with quote  #2

1398409293
Report to moderator
jgarzik
Staff
Hero Member
*****
qt
Offline Offline

Activity: 1260


View Profile

Ignore
August 27, 2010, 07:22:11 AM
 #2


This sub-page of Bitcoin Watch shows the last 7 days worth of blocks, each block linking to expanded data:

http://blk.bitcoinwatch.com/


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
nelisky
Hero Member
*****
Offline Offline

Activity: 1218


View Profile

Ignore
August 27, 2010, 11:04:34 AM
 #3

Superb! Thanks a lot.

we measure long periods of time in bitcoin blocks, and short ones in vodka tonics
DividendRippler  | DICEonCRACK | The Amazing Anonymous Bitcoin Lottery
satoshi
Founder
Sr. Member
*
qt
Offline Offline

Activity: 364


View Profile

Ignore
August 27, 2010, 04:13:16 PM
 #4

That's kind of interesting as an upside-down bar chart of how many blocks were produced each day.  The target is 144 blocks per day.
vess
Full Member
***
Offline Offline

Activity: 141



View Profile WWW

Ignore
August 30, 2010, 04:45:13 PM
 #5

Thanks for this. Question for the developers: what do I need to hash, exactly to get the sha-256 hash for this block? Is it the JSON, or is it kept in some other data format in the database? I'm interested in generating blocks myself, and am not clear what exactly is being hashed.

I'm the CEO of CoinLab (www.coinlab.com) and the Executive Director of the Bitcoin Foundation, I will identify if I'm speaking for myself or one of the organizations when I post from this account.
Insti
Sr. Member
****
Offline Offline

Activity: 294


Firstbits: 1duzy


View Profile

Ignore
August 30, 2010, 06:56:34 PM
 #6

Thanks for this. Question for the developers: what do I need to hash, exactly to get the sha-256 hash for this block? Is it the JSON, or is it kept in some other data format in the database? I'm interested in generating blocks myself, and am not clear what exactly is being hashed.

More detail on the block hashing algorithm can be found here: http://www.bitcoin.org/wiki/doku.php?id=block_hashing_algorithm

(or look at the code.)

vess
Full Member
***
Offline Offline

Activity: 141



View Profile WWW

Ignore
August 30, 2010, 09:27:01 PM
 #7

Thanks, I've read that. I was hoping for a simpler than code review resource for the exact bits and bytes. If one doesn't turn up, I'll dig a little deeper.

I'm the CEO of CoinLab (www.coinlab.com) and the Executive Director of the Bitcoin Foundation, I will identify if I'm speaking for myself or one of the organizations when I post from this account.
Ground Loop
Member
**
Offline Offline

Activity: 112


View Profile

Ignore
August 31, 2010, 11:11:59 PM
 #8

I dunno.. just my two cents: I thought the wiki info was great.
Every field that goes into the hash, when it changes, and how the nonce iteration works.

To get more technical than that, you have to bring up your code editor. Smiley

Bitcoin accepted here: 1HrAmQk9EuH3Ak6ugsw3qi3g23DG6YUNPq
jgarzik
Staff
Hero Member
*****
qt
Offline Offline

Activity: 1260


View Profile

Ignore
February 24, 2011, 03:45:05 AM
 #9

This service has been discontinued.  Bitcoin Block Explorer is far better than this rudimentary service, so bitcoinwatch is now linking directly to BBE.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
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!