0xkookoo / BlockChainParser

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project is inspired by

  1. block-parser-how-read-bitcoin-block-chain
  2. blocktools
  3. 7daystalk-01

Block Chain Tools

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

  • Crawler.py - use valid hash as input and download corresponding .bin file from webbtc.com
  • Parser.py -
    • Decode the header and display it to the terminal.
    • Decode top 5 tx and display it to the terminal
  • BlockTools.py - tools for reading binary data from block files
  • Block.py - classes for Blocks, Transactions
  • Unittest.py - test file
  • OPcode.py - some encoding info

Usage

This project is currently not compatible with python3, may improve later.

python2 Parser.py 0000000000000000000cdc0d2a9b33c2d4b34b4d4fa8920f074338d0dc1164dc

License

MIT © Lisanaaa

About

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


Languages

Language:Python 100.0%