graymauser/btcposbal2csv
소개
잔액이 양수인 모든 비트코인 주소를 나열합니다.
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDump Bitcoin addresses with positive balance
Simple utility to list all bitcoin addresses with positive balance. It works by analysing the current unspent transaction output set (UTXO), aggregating outputs to same addresses together and write them to csv file.
Prequisities:
python 2.7
pip
To install:
run pip install -r requirements.txt
or install following packages with pip manualy
for linux:
- plyvel
- base58
- sqlite3
for windows:
- plyvel-win32
- base58
- pysqlite3
Usage
To use this script, you will need copy of chainstate database as created by bitcoin core client. I've not tried different clients.
To get current addresses with positive balance, let the full node client sync with the network.
Stop the bitcoin-core client before running this utility. If you not stop the client, the database might get corrupted.
Then run this program with path to chainstate directory (usualy $HOME/.bitcoin/chainstate).
Show help
python btcposbal2csv.py -h
Example:
The following will read from /home/USER/.bitcoin/chainstate, and write result to /home/USER/addresses_with_balance.csv.
python btcposbal2csv.py /home/USER/.bitcoin/chainstate /home/USER/addresses_with_balance.csv
Notice
- The output may not be complete as there are some transactions which are not understood by the decoding lib, or that which do not have "address" at all. Such transactions are not processed. Number of them and the total ammount in such transactions is displayed after the analysis.
- The output csv file only reflects the chainstate leveldb at your disk. So it will always be few blocks behind the network as you need to stop the bitcoin-core client.
Converting to RIPEMD160
Per request, I'm adding script which is able to convert BTC address to RIPEMD160 representation. BTC address must be in fist column, RIPEMD160 is added to csv. Output goes to stdout.
Example:
python convert2ripemd160.py /home/USER/addresses_with_balance.csv
Acknowledgement
This utility builds on very nice bitcoin_tools lib, which does the UTXO parsing.
Support
If you like this utility, please consider supporting the bitcoin_tools library which does all the heavy lifting.
If this particular functionality made your life easier you can support coffee consumption in BTC 1FxC1mgJkad63beJcECfZMRaFSf4PBLr2f.
FAQ
- Python 3 does not work. Yes, the the code is for python 2 - as stated in the requirements.
- Can this be used for coin XYZ? Currently only BTC is supported. The direct BTC derivatives (LTC, BCH, and others) should be fairly straitforward to add, other not so much.
- Currently this library is not actively developed. It is sufficient for my usecase. If you want some feature added, fork it, open PR, etc. Should some tips come in my way I would be much more inclined to develop this project more actively.
관련 프로젝트 살펴보기
불러오는 중…