Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: achillez on July 31, 2013, 01:29:43 AM



Title: multiple wallet parser
Post by: achillez on July 31, 2013, 01:29:43 AM
Anyone have a script/tool to parse 100s of wallets to see if there is any coins in them? I'm currently doing this via a loading a wallet file into a daemon, using rescan, checking balance and repeat. It seems very inefficient.


Title: Re: multiple wallet parser
Post by: tytanick on July 31, 2013, 01:33:38 AM
try to run all coins-daemons at once in background
and then make a bash script like this:

Code:
#!/bin/bash
cd some_directory
echo "LTC:"
./litecoind getinfo | grep balance
echo "BTC"
./bitcoind getinfo | grep balance
etc ...


Title: Re: multiple wallet parser
Post by: achillez on July 31, 2013, 01:34:27 AM
Well my issue is that I have 100s of primecoin wallets and I want to parse them ;)


Title: Re: multiple wallet parser
Post by: tytanick on July 31, 2013, 01:42:12 AM
Well my issue is that I have 100s of primecoin wallets and I want to parse them ;)

oh, 100 of one coin :D

1. you could use one wallet with multiple addresses but somehow you dont want this i suppose ?

then i could write script for you but it wont be 4 free :D
PM me if you are interested


Title: Re: multiple wallet parser
Post by: achillez on July 31, 2013, 01:46:37 AM
I have a script that copies in the wallet and shutsdown/restarts the daemon with a rescan. Would your script be more efficient then this?


Title: Re: multiple wallet parser
Post by: achillez on July 31, 2013, 04:55:56 AM
heh guess not


Title: Re: multiple wallet parser
Post by: markm on July 31, 2013, 04:59:38 AM
Yes it would if it simply exported all private keys from all wallets and imported them into one big wallet.

Then if you actually do for some reason later want only some of the keys in some smaller wallet(s) you can export again.

Do you actually care which wallet has how much in it?

If so, maybe the script can use the wallet based 'accounts' system to label which addresses belonged to which old wallet.

But if all you really want is all the coins from all the wallets just export all keys from all of them then import that whole lot into one wallet.

-MarkM-



Title: Re: multiple wallet parser
Post by: achillez on August 01, 2013, 12:54:34 AM
Yes it would if it simply exported all private keys from all wallets and imported them into one big wallet.

Then if you actually do for some reason later want only some of the keys in some smaller wallet(s) you can export again.

Do you actually care which wallet has how much in it?

If so, maybe the script can use the wallet based 'accounts' system to label which addresses belonged to which old wallet.

But if all you really want is all the coins from all the wallets just export all keys from all of them then import that whole lot into one wallet.

-MarkM-



I would be perfectly fine to have all the keys in one wallet. IS there a limit on how many keys you can have in a wallet? If not then this sounds perfect. What's the best way to get the keys out and into another wallet - use the daemon?