/blocktools

Block Parser for Bitcoin

Primary LanguagePython

This is a fork of block chain tools.

Recently added a few features, and fixed some bugs.

See git status for more details.

Block Chain Tools

Block chain parser implementation written in python. Contains examples for Bitcoin and Litecoin.

  • blocktools.py - tools for reading binary data from block files
  • block.py - classes for Blocks, Transactions
  • parser.py - Genesis block demo
  • sight.py - block parser
  • 5megBlock.dat - first 5 megs from blk00000.dat
  • blk65.dat - first 5 megs from blk00065.dat

Usage

python sight.py 1M.dat

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

Alex Gorale

License

BSD 3