Raw block / other messages

4

Where can I find a raw version of the Bitcoin blocks and other messages that are sent between the Bitcoin clients?

ThePiachu

Posted 2011-09-28T13:21:11.717

Reputation: 41 594

Answers

6

Stephen Gornick

Posted 2011-09-28T13:21:11.717

Reputation: 26 118

The BlockExplorer shows data in human readable json format. The Protocol Specification page shows raw bytes of data, but to be used it would require cleaning up, and it's only one example per each case. To test developing applications one usually should have more test cases.ThePiachu 2011-09-28T16:23:02.140

There are at least three open source projects that read from the wire which might give you guidance:

the Bitcoin client, libbitcoin: https://bitcoinconsultancy.com/wiki/index.php/Libbitcoin

and BitcoinJ

Stephen Gornick 2011-09-28T17:15:31.750