Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: ehmdjii on June 02, 2013, 01:49:14 PM



Title: Cannot import a private key
Post by: ehmdjii on June 02, 2013, 01:49:14 PM
hello,
i am trying to move an address from one wallet to another.

so on the first one i did a
Code:
dumpprivkey address 
to get the key


and then in the other wallet i type:
Code:
importprivkey (thekeyishere)

but it gives this error:
Code:
Error adding key to wallet (code -4)

what can i do about it?


Title: Re: Cannot import a private key
Post by: orz.dk on June 02, 2013, 02:25:55 PM
Destination wallet locked ?


Title: Re: Cannot import a private key
Post by: jaywaka2713 on June 03, 2013, 04:16:48 PM
I've done the same thing with neither wallet encrypted or anything. I get -4 error. I've even generated keys with vanitygen but it doesn't accept. Blockchain.info takes them though.


Title: Re: Cannot import a private key
Post by: escrow.ms on June 03, 2013, 04:21:03 PM
Are you using new client?


If it doesn't works,try to use  https://blockchain.info/wallet/import-wallet and then send payment to your new wallet.


Title: Re: Cannot import a private key
Post by: jaywaka2713 on June 03, 2013, 04:22:18 PM
Are you using new client?


If it doesn't works,try to use  https://blockchain.info/wallet/import-wallet and then send payment to your new wallet.


That won't work because he wants to keep his address. Just needs it moved.


Title: Re: Cannot import a private key
Post by: dhenson on June 03, 2013, 11:13:33 PM
It sounds to me like the OP has his wallet encrypted.

First type:
walletpassphrase <your password> 600

The above will unlock your wallet for 10 minutes.  You can then try your importprivkey.