This blog will discuss the method of getting general information and statistics of confirmed transactions via Python-Bitcoinlib v0.9.0.
Example one is going to do some statistics on “vouts” of a transaction. It means that a bitcoin transaction is spent on one or several Bitcoin addresses.
First, we go through bitcoin blocks from 0 to 20000.
Second, we go through transactions of each block.
Third, we go calculate the number of “vouts” of each transaction.
Fourth, the source code is named “bitcoin_statistic1.py”.
$ python bitcoin_statistic1.py
Example