Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: bclucho on April 09, 2018, 08:10:13 PM



Title: File format of the legder
Post by: bclucho on April 09, 2018, 08:10:13 PM
HI All,

Sorry if this question is not here, Im a newbie :). Im would like to play with the file format of the ledger (where the transactions are stored) a stupid program that counts the number of transactions on one file and things like that. As far as I know, the transactions are stored on some type of format, where I can see the specification of the format of the records? On the other hand, where I can download a small ledger as example? I don't want to download the 150GB if possible :)

Many Thanks!


Title: Re: File format of the legder
Post by: starmyc on April 09, 2018, 08:23:30 PM
Hello,

You can find on the developer reference (https://bitcoin.org/en/developer-reference#block-chain) the block chain specification. There also are multiple guides on the web on how to parse the blockchain. I believe this one (http://codesuppository.blogspot.fr/2014/01/how-to-parse-bitcoin-blockchain.html) is oflen linked.

If 175 GB is too much for you, you can try the testnet chain instead. It is only 15 GB. Launch your wallet using the -testnet flag.

Feel free to ask your questions when trying to parse the blockchain!