All Projects → graymauser → Btcposbal2csv

graymauser / Btcposbal2csv

Licence: bsd-3-clause
List all bitcoin addresses with positive balance.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Btcposbal2csv

Blockchain golang
Blockchain demo based on golang 基于golang编写的区块链公链demo
Stars: ✭ 80 (-8.05%)
Mutual labels:  bitcoin
Cated
CATEd - Cryptocurrency Analytics and Trading Engine for Django
Stars: ✭ 84 (-3.45%)
Mutual labels:  bitcoin
Bitcoin0.1.0
bitcoin0.1.0 source
Stars: ✭ 86 (-1.15%)
Mutual labels:  bitcoin
Hdwallet
Simple Swift library for creating HD cryptocurrencies wallets and working with crypto Coins/ERC20 tokens.
Stars: ✭ 80 (-8.05%)
Mutual labels:  bitcoin
Viabtc exchange server docker
easy run viabtc_exchange_server use docker compose
Stars: ✭ 83 (-4.6%)
Mutual labels:  bitcoin
Coin registry
A global registry of JSON formatted files on 1500+ cryptocurrency tokens. Provides information like chat rooms, communities, explorers, and contact information on each coin. Used by https://blockmodo.com, DEXs, developers, and exchanges.
Stars: ✭ 85 (-2.3%)
Mutual labels:  bitcoin
Lily Wallet
The best way to secure your bitcoin.
Stars: ✭ 79 (-9.2%)
Mutual labels:  bitcoin
Dotcoin
A simple and integrity blockchain implementation in Golang
Stars: ✭ 89 (+2.3%)
Mutual labels:  bitcoin
Blockchain Parser
The simpliest script for parsing Bitcoin blockchain. It made convertion of blk*****.dat files to the simple text.
Stars: ✭ 84 (-3.45%)
Mutual labels:  bitcoin
Opencx
An open-source cryptocurrency exchange toolkit for implementing experimental exchange features
Stars: ✭ 86 (-1.15%)
Mutual labels:  bitcoin
Whale
🐋 Show Ethereum and Bitcoin price in command line interface (CLI).
Stars: ✭ 81 (-6.9%)
Mutual labels:  bitcoin
Copernicus
An alternative implementation of the Bitcoin Cash protocol, written in Golang
Stars: ✭ 83 (-4.6%)
Mutual labels:  bitcoin
Limit Order Book
Bitstamp real time console based limit order book
Stars: ✭ 85 (-2.3%)
Mutual labels:  bitcoin
Bitcoin Scraper
💲 bitcoin chart history scraper
Stars: ✭ 80 (-8.05%)
Mutual labels:  bitcoin
Blockchaintechnology
Blockchain Frontier Technology Tracking
Stars: ✭ 88 (+1.15%)
Mutual labels:  bitcoin
Lightning Rfc
Lightning Network Specifications
Stars: ✭ 1,224 (+1306.9%)
Mutual labels:  bitcoin
Elementsproject.org
Source code for the ElementsProject.org website
Stars: ✭ 84 (-3.45%)
Mutual labels:  bitcoin
Ccxt.net
CCXT.NET – CryptoCurrency eXchange Trading Library for .NET
Stars: ✭ 89 (+2.3%)
Mutual labels:  bitcoin
Bitnfc
Bitcoin NFC Android Mobile Wallet - JS + Ionic + Cordova + Bitcore + Blockchain.info API + Cordova NFC plugin
Stars: ✭ 88 (+1.15%)
Mutual labels:  bitcoin
Awesome Privacy On Blockchains
A curated list of privacy on blockchains resources
Stars: ✭ 86 (-1.15%)
Mutual labels:  bitcoin

Dump 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

  • hashlib
  • plyvel
  • base58
  • sqlite3

Usage

To use 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:

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
  • That 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 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].