BitShares Forum

Main => General Discussion => Topic started by: theoretical on September 15, 2014, 09:11:59 am

Title: Explore the mysteries of the block format at bitblockexplorer.com
Post by: theoretical on September 15, 2014, 09:11:59 am

I'm very slowly working on the bounty for documenting the blockchain format.

In order for me to be sure I understand it, I'm writing a parser for the raw block format in Python.  You can see it in action at http://bitblockexplorer.com:8888/block/55555?format=html+hex

The website is obviously very raw and untested.  There is absolutely no processing of transactions or signatures.  Someone else has a better blockchain website (I can't remember the URL offhand), and there is of course a block explorer in the client code.

But I think all of them work internally by calling into the JSON-RPC API of the client.  The internal setup of bitblockexplorer.com is a little different -- I communicate "at arms' length" with the BitShares client by using the chain server protocol to download the raw binary block data, which I then parse into a database.
Title: Re: Explore the mysteries of the block format at bitblockexplorer.com
Post by: xeroc on September 15, 2014, 09:30:38 am
awesome .. /me wants to know more!

so you actually have a question or is this just an informational thread?

btw, the other block explorer is bitsharesblocks.com and works indeed using the RPC interface.
Title: Re: Explore the mysteries of the block format at bitblockexplorer.com
Post by: svk on September 15, 2014, 10:07:23 am
Yep as Xeroc said my site works using the RPC api to extract the data which is then saved in my own database for easier processing. I would love to have a real blockchain parser though, but I'm not sure I could code one myself as I'm not really well versed in Python and can only read C++.

Anyway good job, looking forward to seeing the documentation!