python-bitcoin-blockchain-parser
python-bitcoin-blockchain-parser copied to clipboard
A Python 3 Bitcoin blockchain parser
Snippet > tx=faa008e846efd7a89ede1ff96687781e2dbafb3af3f5a8813e68b8bbae463e5c outputno=0 type=pubkeyhash value=1000357 > tx=faa008e846efd7a89ede1ff96687781e2dbafb3af3f5a8813e68b8bbae463e5c outputno=1 type=pubkeyhash value=2088051 > Traceback (most recent call last): > File "btc.py", line 15, in > for tx in block.transactions: > File...
What should we pass as the database db in get_transaction(txid, db)? Is there any sample code that showcases the use of this function? Thanks!
Add Bech32m encoding/decoding for taproot addresses. The decoding was written by Pieter Wuille here: https://github.com/Bytom/python-bytomlib/blob/master/pybtmsdk/segwit_addr.py The check if a PkScript represents an Bech32m script is done in the following: *...
how can i get all addresses on bitcoin blockchain i mean every address that comited a transaction on blockchain no matter it has balance or not? for example get list...
Hey All, I just did the pip install on a Linux box. I still needed to do: sudo apt-get install libleveldb-dev to get the pip install to work. Thanks, Steve
I'm trying to calculate a transaction fee. How should I do it with this parser? Ty
I am checking block 00000000000000000024fb37364cbf81fd49cc2d51c09c75c35433c3a1945d04 and for this block program prints invalid transactions (hashes). It prints 0 - 50b8f5c915b23ea6bc7b1bbc9f58cd452aa2557f3ac1d86660f5f53475d9c437 1 - a0d8ef18cf4ce5f14800f375d4ae7e240a684d85b3a660b87ec586f7737a2366 2 - 1024cb12a576b69defa67dbc2f1899700ab58e5ad3d5e058edefb907f59865bc 3 - 83eeaecaf531e5239ffc3ba7ff583c696f7dbe3610f0d672d41e0b9443632c82 and so...
This seems to happen within the coverage module on import. Also the `npm i` step is missing from the readme.
See https://github.com/eklitzke/utxodump for an example implementation. This could allow querying of balances of live addresses, quite exciting!
testnet
it dose not support testnet And witness_v0_keyhash ,witness_v0_scripthash?