Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: wangxinxi on October 25, 2014, 06:44:18 PM



Title: Script for checking the balance of a bunch of addresses
Post by: wangxinxi on October 25, 2014, 06:44:18 PM
Is there any python script for checking the balance of a bunch of addresses? I need to audit my site weekly. It's quite cumbersome to use blockchain.info's API to check.


Title: Re: Script for checking the balance of a bunch of addresses
Post by: amaclin on October 25, 2014, 07:52:48 PM
Is there any python script for checking the balance of a bunch of addresses? I need to audit my site weekly. It's quite cumbersome to use blockchain.info's API to check.

1) Install Bitcoin Core Client (or other) on your local computer
2) Import your private keys to it
3) Set a very-super-mega-strong password on your wallet.dat
4) Forget the password.
5) Voila! Now you can audit your site any time you want without any risk of losing funds. Just run the program.


Title: Re: Script for checking the balance of a bunch of addresses
Post by: hanisnl on October 26, 2014, 03:24:39 AM
still looking for a python script to do the check ? :) msg me .


Title: Re: Script for checking the balance of a bunch of addresses
Post by: shorena on October 26, 2014, 07:58:36 AM
Its allready done in Electrum [1]. You can just query the addresses from console. I think I used to for addresses that are not mine in the past. If you need to have your own python script Electrum is Opensource [2]. Not sure about the licence though since you are apparently using it for commercial purposes.


[1] https://github.com/spesmilo/electrum/blob/d2709fac71b3da72632466a2ac72c3e8b77698b5/RELEASE-NOTES#L48
[2] https://github.com/spesmilo/electrum