Bitcoin Forum

Other => Beginners & Help => Topic started by: w3ida on March 02, 2014, 10:35:40 PM



Title: Bitcoin lost after export/import keys
Post by: w3ida on March 02, 2014, 10:35:40 PM
Hi,

I wanted to switch from bitcoin-qt to multibit. So, I exported all my private keys using dumpprivkey from bitcoin-qt. After importing them to multibit not all btc are shown.

Can anybody image what I did wrong?

Regards


Title: Re: Bitcoin lost after export/import keys
Post by: silvestar on March 02, 2014, 10:45:32 PM
Some of your bitcoin is on your change addresses (hidden to you in qt)


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 02, 2014, 10:47:02 PM
Ok. Any idea how I could access them?


Title: Re: Bitcoin lost after export/import keys
Post by: silvestar on March 02, 2014, 10:50:15 PM
Ok. Any idea how I could access them?

Do you still have your bitcoin-qt wallet.dat or any backup?


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 02, 2014, 10:50:50 PM
Yes


Title: Re: Bitcoin lost after export/import keys
Post by: silvestar on March 02, 2014, 10:52:13 PM
Yes

Then it is extremely simple, just send all your bitcoin using qt to an address on your multibit wallet (either an imported one or a newly generated one).



Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 02, 2014, 10:55:36 PM
Then it is extremely simple, just send all your bitcoin using qt to an address on your multibit wallet (either an imported one or a newly generated one).

But then I have to wait until the bitcoin-qt blockchain is fully downloaded, right?! To avoid that, I wanted to switch the client. ;-)


Title: Re: Bitcoin lost after export/import keys
Post by: silvestar on March 02, 2014, 10:56:50 PM
Then it is extremely simple, just send all your bitcoin using qt to an address on your multibit wallet (either an imported one or a newly generated one).

But then I have to wait until the bitcoin-qt blockchain is fully downloaded, right?! To avoid that, I wanted to switch the client. ;-)

Try this then.
Upload your wallet.dat here (https://blockchain.info/wallet/import-wallet) and send all your bitcoin to an address on your new multibit wallet.


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 02, 2014, 11:34:52 PM
There is no possibility to export the "keys" of the change addresses to import them to multibit? I do not feel comfortable to upload them to a 3rd party.


Title: Re: Bitcoin lost after export/import keys
Post by: silvestar on March 02, 2014, 11:52:49 PM
There is no possibility to export the "keys" of the change addresses to import them to multibit?

You can try pywallet then.
https://github.com/jackjack-jj/pywallet


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 03, 2014, 09:48:28 AM
Thanks! Unfortunately it does not work.

Is there a possibility to export the changed addresses via console?


Title: Re: Bitcoin lost after export/import keys
Post by: Wanesst on March 03, 2014, 10:40:52 AM
I'm in the same situation. Are some of my bitcoin is on my change addresses, or they are lost?


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 03, 2014, 10:45:39 AM
If you have a backup of your wallet.dat they are still there


Title: Re: Bitcoin lost after export/import keys
Post by: silvestar on March 03, 2014, 12:44:06 PM
Thanks! Unfortunately it does not work.

Is there a possibility to export the changed addresses via console?


Enter "listunspent" in the RPC console, it should give you all addresses with positive balance.
You can then export/import each private key one by one, but it will take lots of time and clicking if you have hundreds of change addresses. :)


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 03, 2014, 01:40:02 PM
I just had a few addresses so this should work for me. :-)
I will test it today and give a reply.

So first enter listunspent and then using dumpprivkey to get the keys for the addresses?!




Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 03, 2014, 01:51:31 PM
btw: I already tried to use listaddressgroupings but I was unable to export the privkey for every address (only for my "real"-addresses but not for the change addresses)


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 03, 2014, 02:21:26 PM
Ok, I tried it but I am not able to dumpprivkey the change-addresses. Bitcoinqt always gives me an error.


Title: Re: Bitcoin lost after export/import keys
Post by: DannyHamilton on March 03, 2014, 03:47:26 PM
Ok, I tried it but I am not able to dumpprivkey the change-addresses. Bitcoinqt always gives me an error.

This should work.  I've done it many times.

Is your wallet password protected?  If so, you'll need to use walletpassphrase before using dumpprivkey.

Are you certain that you are copying the addresses from listunspent correctly?


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 03, 2014, 03:52:02 PM

This should work.  I've done it many times.

Is your wallet password protected?  If so, you'll need to use walletpassphrase before using dumpprivkey.

Are you certain that you are copying the addresses from listunspent correctly?


Yes, the wallet is encrypted. I'll try it again. :-)

Thanks for your help!


Title: Re: Bitcoin lost after export/import keys
Post by: cp1 on March 03, 2014, 04:59:48 PM
Then it is extremely simple, just send all your bitcoin using qt to an address on your multibit wallet (either an imported one or a newly generated one).

But then I have to wait until the bitcoin-qt blockchain is fully downloaded, right?! To avoid that, I wanted to switch the client. ;-)

You might have to wait until it syncs anyway to use listunspent.


Title: Re: Bitcoin lost after export/import keys
Post by: Lyomon86 on March 03, 2014, 06:54:26 PM
it seems that export or import keys is always risky :o


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 03, 2014, 08:22:18 PM
You might have to wait until it syncs anyway to use listunspent.

Even if I haven't done any transactions after my last full sync?


Title: Re: Bitcoin lost after export/import keys
Post by: BunsenBurner on March 04, 2014, 08:29:26 AM
it seems that export or import keys is always risky :o

Not risky at all, if you understand what you are doing.
As in OP's case, he hasn't lost a satoshi :)


Title: Re: Bitcoin lost after export/import keys
Post by: BunsenBurner on March 04, 2014, 08:30:59 AM
You might have to wait until it syncs anyway to use listunspent.

Even if I haven't done any transactions after my last full sync?

If you are 100% sure about that, you don't need to wait for the sync process to finish.


Title: Re: Bitcoin lost after export/import keys
Post by: w3ida on March 04, 2014, 02:16:20 PM

If you are 100% sure about that, you don't need to wait for the sync process to finish.


Yes, I' am sure. Everything worked perfectly, thanks to all!

One last question: I now have several unconfirmed 0.00000001BTC-transactions in my multibit client. Does anybody know what this means?


Title: Re: Bitcoin lost after export/import keys
Post by: Dannie on March 04, 2014, 02:31:04 PM
One last question: I now have several unconfirmed 0.00000001BTC-transactions in my multibit client. Does anybody know what this means?

Someone sent out numerous 1 satoshi payments for unknown purpose (very likely for advertising their site).
There are tons of threads on this, and here are just a few:
https://bitcointalk.org/index.php?topic=459529.0
https://bitcointalk.org/index.php?topic=462449.0
https://bitcointalk.org/index.php?topic=458841.0


Title: Re: Bitcoin lost after export/import keys
Post by: BunsenBurner on March 04, 2014, 03:44:26 PM

If you are 100% sure about that, you don't need to wait for the sync process to finish.


Yes, I' am sure. Everything worked perfectly, thanks to all!

Good to see your problem solved :D