Author

Topic: Anyway to check balance of a wallet without reloading the client? (Read 938 times)

hero member
Activity: 686
Merit: 502
bitcoind on linux seems to work better.

using python AuthServiceProxy.

Thanks for suggestions people, il lock this thread now.
hero member
Activity: 686
Merit: 502
Assuming that you are happy to use a 3rd party service (such as blockchain.info) then you could skip the rescan (i.e. just dump the wallet addresses to search using the 3rd party service).

That should at least making doing the balance checks quicker.


and you could even write a script to do that using curl and the third party api

Would be easier to just dump the private keys instead of public addresses and then sweep with electrum, no?

How can I dump the private keys without pywallet?, The dump feature in Core requires core to be loaded afaik.

my intention is to sweep the keys to a single address.

Core doesn't need to be synced (or resynced) to dump the private keys, so you're script would be:

Delete wallet.dat in Core Folder
Copy wallet_x -> wallet.dat in Core Folder
Start Core (wait for Core API to be online)
Query Core API to dump private key(s)
Terminate Core (wait for shutdown)
Repeat

Then you have all dumped private keys and sweep with electrum to 1 address

Is this with bitcoind? im currently on windows using bitcoin-qt

I am getting the following error when I try to connect to the json RPC interface anytime after launch (until it loads fully)

Code:
{"result":null,"error":{"code":-28,"message":"Rescanning..."},"id":"dumpwallet"}

This shows a successful connection as it knows its rescanning, but will not do anything else.
full member
Activity: 238
Merit: 100
I love NACHOS
Assuming that you are happy to use a 3rd party service (such as blockchain.info) then you could skip the rescan (i.e. just dump the wallet addresses to search using the 3rd party service).

That should at least making doing the balance checks quicker.


and you could even write a script to do that using curl and the third party api

Would be easier to just dump the private keys instead of public addresses and then sweep with electrum, no?

How can I dump the private keys without pywallet?, The dump feature in Core requires core to be loaded afaik.

my intention is to sweep the keys to a single address.

Core doesn't need to be synced (or resynced) to dump the private keys, so you're script would be:

Delete wallet.dat in Core Folder
Copy wallet_x -> wallet.dat in Core Folder
Start Core (wait for Core API to be online)
Query Core API to dump private key(s)
Terminate Core (wait for shutdown)
Repeat

Then you have all dumped private keys and sweep with electrum to 1 address
hero member
Activity: 686
Merit: 502
Assuming that you are happy to use a 3rd party service (such as blockchain.info) then you could skip the rescan (i.e. just dump the wallet addresses to search using the 3rd party service).

That should at least making doing the balance checks quicker.


and you could even write a script to do that using curl and the third party api

I imagine there is some api limits, il look into it though.
hero member
Activity: 686
Merit: 502
Assuming that you are happy to use a 3rd party service (such as blockchain.info) then you could skip the rescan (i.e. just dump the wallet addresses to search using the 3rd party service).

That should at least making doing the balance checks quicker.


and you could even write a script to do that using curl and the third party api

Would be easier to just dump the private keys instead of public addresses and then sweep with electrum, no?

How can I dump the private keys without pywallet?, The dump feature in Core requires core to be loaded afaik.

my intention is to sweep the keys to a single address.
full member
Activity: 238
Merit: 100
I love NACHOS
Would be easier to just dump the private keys instead of public addresses and then sweep with electrum, no?

Of course Electrum would be another approach instead of using a 3rd party service (and I think it can do addresses also for "watch only").


I've never personally used the watch only feature but I'm pretty sure it works as you've described (doesn't make sense you'd need private keys for watch only).
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
Would be easier to just dump the private keys instead of public addresses and then sweep with electrum, no?

Of course Electrum would be another approach instead of using a 3rd party service (and I think it can do addresses also for "watch only").
full member
Activity: 238
Merit: 100
I love NACHOS
Assuming that you are happy to use a 3rd party service (such as blockchain.info) then you could skip the rescan (i.e. just dump the wallet addresses to search using the 3rd party service).

That should at least making doing the balance checks quicker.


and you could even write a script to do that using curl and the third party api

Would be easier to just dump the private keys instead of public addresses and then sweep with electrum, no?
hero member
Activity: 868
Merit: 503
Assuming that you are happy to use a 3rd party service (such as blockchain.info) then you could skip the rescan (i.e. just dump the wallet addresses to search using the 3rd party service).

That should at least making doing the balance checks quicker.


and you could even write a script to do that using curl and the third party api
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
Assuming that you are happy to use a 3rd party service (such as blockchain.info) then you could skip the rescan (i.e. just dump the wallet addresses to search using the 3rd party service).

That should at least making doing the balance checks quicker (although it still requires you to replace the wallet.dat before each restart).
staff
Activity: 3458
Merit: 6793
Just writing some code
Unfortunately, no, there is no way.
hero member
Activity: 686
Merit: 502
I have 50+ wallets since 2009, most of them are 96kb duds where I have reinstalled windows and reinstalled Bitcoin QT.

pywallet isnt currently working due to the way blocks are since 0.12.0 (jackjack  is currently looking into this)

I was wondering if there is a way I could check the balance without renaming them all to wallet.dat and loading core. I have done 5 wallets so far (all empty) but its taken me over an hour.

Thanks
Jump to: