Post
Topic
Board Development & Technical Discussion
Re: How to check the balance of the list of 1 million Bitcoin Addresses?
by
bob123
on 12/06/2019, 07:37:26 UTC
Then a code llike:

Code:
for a in $(cat myAddyList.txt)
do
cat balances-bitcoin | grep $a >> final.txt
done

With this bash script you will generate a file with the addys and balance...


This is extremely inefficient and probably will take quite some time.

The fastest approach would be some sort of a perl script. But since the there aren't too many entries in bitcoin-balances, a simple grep would be 'ok', i think:

Code:
grep -f -F myAddyList.txt balances-bitcoin > final.txt


This already is way faster than your bash script, however it is still far away from being really efficient.