Bitcoin Forum
May 11, 2024, 04:07:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 [All]
  Print  
Author Topic: Import bitcoin-qt wallet?  (Read 6947 times)
2048-bit (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
July 22, 2013, 04:52:07 PM
 #1

I am switching from bitcoin-qt to Electrum. How do I import my existing wallet?
1715400470
Hero Member
*
Offline Offline

Posts: 1715400470

View Profile Personal Message (Offline)

Ignore
1715400470
Reply with quote  #2

1715400470
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715400470
Hero Member
*
Offline Offline

Posts: 1715400470

View Profile Personal Message (Offline)

Ignore
1715400470
Reply with quote  #2

1715400470
Report to moderator
btcven
Hero Member
*****
Offline Offline

Activity: 715
Merit: 500


Bitcoin Venezuela


View Profile WWW
July 23, 2013, 03:58:36 PM
 #2

You better send all the funds of your -qt wallet to one of the addresses on your Electrum. This way you'll have all your coins secured with your seed.

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
2048-bit (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
July 23, 2013, 11:45:50 PM
 #3

So there's no way to 'empty out' my old wallet, bypassing a fee?
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
July 27, 2013, 09:45:16 AM
 #4

You could import the private keys from the qt client but the problem is that you will have to keep a backup of these keys seperately. They won't become part of your Electrum seed.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
2048-bit (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
July 28, 2013, 08:55:10 PM
 #5

It's probably best then to send the bitcoins to my Electrum wallet, then.
2048-bit (OP)
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
August 05, 2013, 03:47:42 PM
 #6

Where do I find my private keys at in bitcoin-qt? (in GNU/Linux)
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
August 06, 2013, 12:29:48 PM
 #7

I know of one method:

Help->Debug Window->Console

dumpprivkey YOURADDRESSHERE

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
August 08, 2013, 11:39:17 PM
 #8

Where do I find my private keys at in bitcoin-qt? (in GNU/Linux)

In Bitcoin-qt you would only dump 1 key at a time. Use pywallet instead Smiley

Install pywallet dependencies(see: https://github.com/jackjack-jj/pywallet)
Then:
Code:
mkdir pywallet
cd pywallet
wget --output-document=pywallet.py https://raw.github.com/jackjack-jj/pywallet/master/pywallet.py
python pywallet.py --web
Next:
Open your browser and navigate to localhost:8989
Search the dump keys part and write only "sec" on the export format. Choose a dir/file where to save the dumped private keys. You can then batch import them into Electrum.
simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 01, 2013, 07:36:41 PM
Last edit: September 03, 2013, 01:10:29 PM by simpic
 #9

Hello,
I installed for the first time Electrum on my computer (Xubuntu) and i have imported 2 address belonging to Qt client that i stopped to use.
The import process went fine and the amount of my wallet is right.
But it imported only 8 transactions instead of 13 and some of them are wrong too (different date or different amount).

Please have a look a this image:



The red underlined transactions are the missing ones in Electrum (i have them on Qt but i don't have them on Electrum).
The circled amounts are wrong (see the original ones in Qt).

Why this happened? Could it be a bug?

Thank you.

Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
September 02, 2013, 09:40:36 AM
 #10

Hello,
I installed for the first time Electrum on my computer (Xubuntu) and i have imported 2 address belonging to Qt client that i stopped to use.
The import process went fine and the amount of my wallet is right.
But it imported only 8 transactions instead of 13 and some of them are wrong too (different date or different amount).

Please have a look a this image:

http://anonymouse.org/cgi-bin/anon-www.cgi/http://img827.imageshack.us/img827/6020/9i3s.png

The red underlined transactions are the missing ones in Electrum (i have them on Qt but i don't have them on Electrum).
The circled amounts are wrong (see the original ones in Qt).

Why this happened? Could it be a bug?

Thank you.

Most probably it's because you didn't import the "change" addresses, hence the wrong values and missing transactions.
simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 02, 2013, 07:17:50 PM
 #11

Most probably it's because you didn't import the "change" addresses, hence the wrong values and missing transactions.

What are change addresses? How to import them? Can i still fix this?

Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
September 03, 2013, 08:44:55 AM
 #12

Most probably it's because you didn't import the "change" addresses, hence the wrong values and missing transactions.

What are change addresses? How to import them? Can i still fix this?

https://en.bitcoin.it/wiki/Change

If you still have the original wallet.dat you'll need to dump all private keys and import them all. Unless you want to check all your transactions to see which addresses are missing.

simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 03, 2013, 12:16:16 PM
Last edit: September 03, 2013, 12:39:49 PM by simpic
 #13

Thank you for your reply, i understand more on Bitcoin transactions.
About my situation, i had 2 addresses (i verified it with "listreceivedbyaddress" command) in Qt client and i dumped both private keys and then imported them in Electrum.
So what's wrong? How to import change addresses?

Raoul Duke
aka psy
Legendary
*
Offline Offline

Activity: 1358
Merit: 1002



View Profile
September 03, 2013, 01:45:18 PM
 #14

How to import change addresses?

See here how to dump all private keys: https://bitcointalk.org/index.php?topic=260621.msg2894530#msg2894530
Next you'll import them all into Electrum.
I can't say for sure it will solve the problem, but there is no harm in trying. The change addresses seem to be empty, anyway, given that you say your balance is correct. It's just a cosmetic problem.
simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 03, 2013, 02:36:41 PM
 #15

How to import change addresses?

See here how to dump all private keys: https://bitcointalk.org/index.php?topic=260621.msg2894530#msg2894530
Next you'll import them all into Electrum.
I can't say for sure it will solve the problem, but there is no harm in trying. The change addresses seem to be empty, anyway, given that you say your balance is correct. It's just a cosmetic problem.

I can't dump keys. I installed pywallet but when I click on "Dump Keys" i get "File not written" error.
Maybe it happens because .bitcoin directory is a symlink. So i tried to enter the right path, but the same error occurs.
Any other way to do the same?

SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 03, 2013, 03:52:47 PM
 #16


I can't dump keys. I installed pywallet but when I click on "Dump Keys" i get "File not written" error.
Maybe it happens because .bitcoin directory is a symlink. So i tried to enter the right path, but the same error occurs.
Any other way to do the same?

Change Addresses are a pain. One of the things that I like about Electrum, is that you don't have to use them. Most wallets, however, create NEW addresses EVERY TIME you make a spend, and some of your bitcoins go into hidden 'change' addresses.

The best way to move money into a new wallet is to send the funds. Don't try to import the keys unless you know what you're doing.

If you want to check the actual balances on your individual addresses to determine the actual balance of the imported keys, then go to this webpage and enter your public keys of the addresses that you want to check.

www.btcbalance.net

simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 03, 2013, 07:16:34 PM
 #17

I'm asking help here too.
There i have an expert on pywallet but he doesn't know Electrum; here i have expert in Electrum but not on pywallet use Tongue

I'm trying to figure out how to make this full import!

SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 03, 2013, 07:46:13 PM
 #18

I'm asking help here too.
There i have an expert on pywallet but he doesn't know Electrum; here i have expert in Electrum but not on pywallet use Tongue

I'm trying to figure out how to make this full import!

I don't know pywallet, but here's another way to do it.

1) In bitcoin-qt, go to Help/Debug Window.

2) Choose the Console Tab.

3) In the text box, enter 'listaddressgroupings'.

This will bring up a list of 100 addresses. Your money could be in several addresses, but probably only in two or three. Look through the list. wherever you see some bitcoins, dump the private key of that address using, 'dumpprivkey <bitcoinaddress>'.

4) Import all of these private keys into Electrum, resync with an Electrum server, and your balances should match.

simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 04, 2013, 12:22:19 AM
 #19

I do as you have said and there is still one gap.
A payment of 50 BTC that i sent is missing and now the balance is wrong!
In fact the balance now has 50 more BTC.

Why?


SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 04, 2013, 01:08:01 AM
 #20

A wallet is composed of multiple individual addresses. The addresses are the items that actually hold the bitcoins. It's difficult to figure out if a total balance is correct when looking at the whole wallet. We need to check the balance in each address.

In electrum, bring up the Classic GUI, (if you're using the Lite GUI), by going to the View Menu and selecting Classic GUI.

Then go to the 'Receive' tab. On the 'Receive' tab, you should see a balance associated with each individual address. This should be the actual balance in each of those addresses. You can double check them by going to 'www.btcbalance.net', and entering the addresses into that web page, which will also show you the balances in each address. If the two balances match, the one in electrum, and the one in www.btcbalance.net, then you can be confident that the balance in that address is correct. If you find an address in Electrum which has a different amount of bitcoins in it than in www.btcbalance.net, then it's probably Electrum's fault.

Let us know.
SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 04, 2013, 01:14:49 AM
 #21

Here's another thing you can try. If I were to guess, I would think that the server you're connecting to is probably not giving you the correct information.

Go to Classic GUI by selecting it from the 'View' menu, if you're using the Lite GUI.

Then in the lower right corner of the screen in the Classic GUI, you should see a green dot. Press the green dot. This will bring up a list of servers to connect to. Try connecting to different servers and see if they show you the same total balance.
SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 04, 2013, 02:02:16 AM
 #22

A wallet is composed of multiple individual addresses. The addresses are the items that actually hold the bitcoins. It's difficult to figure out if a total balance is correct when looking at the whole wallet. We need to check the balance in each address.

In electrum, bring up the Classic GUI, (if you're using the Lite GUI), by going to the View Menu and selecting Classic GUI.

Then go to the 'Receive' tab. On the 'Receive' tab, you should see a balance associated with each individual address. This should be the actual balance in each of those addresses. You can double check them by going to 'www.btcbalance.net', and entering the addresses into that web page, which will also show you the balances in each address. If the two balances match, the one in electrum, and the one in www.btcbalance.net, then you can be confident that the balance in that address is correct. If you find an address in Electrum which has a different amount of bitcoins in it than in www.btcbalance.net, then it's probably Electrum's fault.

Let us know.


Actually, if you want to see individual address balances, then you not only have to use the Classic GUI, but you also have to put the program into 'Expert Mode' by Selecting 'Preferences' from the File Menu. Then checking the 'Expert Mode' checkbox on the Display Tab. Then you can close the Preferences box and select the Receive Tab, where you will see the individual balances on each address.
simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 04, 2013, 08:18:53 AM
Last edit: September 04, 2013, 10:11:11 AM by simpic
 #23

There isn't any associated balance to the address that i have in Receive tab. How to see it?

Anyway now it is just missing a transaction, the one underlined in red in my previous post.
Your procedure should be the best way to collect all addresses (including change ones) from the Bitcoin-Qt client.
...but it seems to skip something because it doesn't take over that transaction Sad

PS: Have i to register one of the addresses on btcbalance?


EDIT: i solve the problem with pywallet. I follow the procedure you linked me last time:

In Bitcoin-qt you would only dump 1 key at a time. Use pywallet instead Smiley

Install pywallet dependencies(see: https://github.com/jackjack-jj/pywallet)
Then:
Code:
mkdir pywallet
cd pywallet
wget --output-document=pywallet.py https://raw.github.com/jackjack-jj/pywallet/master/pywallet.py
python pywallet.py --web
Next:
Open your browser and navigate to localhost:8989
Search the dump keys part and write only "sec" on the export format. Choose a dir/file where to save the dumped private keys. You can then batch import them into Electrum.

And i obtained a file containing 110 private keys. I imported them to Electrum (about 10 private keys can't be imported, i don't know why), but the balance is still wrong and that transaction is still missing.
Why? Arghhhhhh


EDIT2: if i try to send a payment i get this message: "wallet not synchronized".

SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 04, 2013, 12:03:13 PM
 #24

Which server are you connecting to? And have you tried connecting with other servers?

To connect with a server, switch to the Classic GUI and click on the Green Dot at the lower right corner of the window.
simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 04, 2013, 12:35:57 PM
 #25

Which server are you connecting to? And have you tried connecting with other servers?

To connect with a server, switch to the Classic GUI and click on the Green Dot at the lower right corner of the window.


It was on random. Yes, i tried to connect to other servers, but nothing changed.

SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 04, 2013, 01:43:22 PM
 #26

I don't know what could be wrong at this point.

However, if you use the Classic GUI and set the mode to 'Expert Mode' in the Preferences, then you can see the actual balance in each bitcoin address in your system by then selecting the 'Receive' tab on the main screen. You can compare these balances by using either btcbalance.net, or by checking each address using blockchain.info by adding the address to the end of this URL, like this:

http://blockchain.info/address/1GcKb752rgkeYC2w72dgpoCUQBpEmHAkYZ

Otherwise, there's no way to figure out the problem just by looking at wallet ledger entries.

simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 04, 2013, 06:15:07 PM
Last edit: September 05, 2013, 11:30:19 PM by simpic
 #27

I think the problem is the missing transaction.

If i import just the 2 receive address that i see in Bitcoin-Qt client, i get this (on the right is Electrum): http://img30.imageshack.us/img30/2313/k0z7.png
If i import the dump of all private keys (including change addresses' ones) i get this: http://img577.imageshack.us/img577/4480/fej1.png

So i think the problem is the red underlined transaction (in the second snapshot) that is missing:
http://blockchain.info/it/tx/72fcd689b3be3bcad086ebea3f9f43c2240fcb7e682905fde6122cec704a8873

What's wrong with it?

SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 05, 2013, 04:51:15 PM
 #28

I came across a problem yesterday, with imported addresses, and I think it's the same problem you're seeing. I brought it to the attention of the devs and they produced a development version of the software which I think will fix this problem. However, it hasn't been released yet, but will be in version 1.9.

My problem was with an imported address which was used in a transaction. The transaction did not get recorded. To fix it, I had to erase my wallet, and then recreate it. Of course, this removed the imported addresses from the wallet, but when I reloaded them, they were correct.

Maybe you can try this, if you're interested, or wait until version 1.9 is released.
simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 05, 2013, 05:57:59 PM
 #29

Thank you for your reply. Can make me get in touch with any dev? I want to show them my situation.
Thank you.

jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
September 05, 2013, 07:19:10 PM
 #30

So it would be a bug in Electrum?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 05, 2013, 08:21:56 PM
 #31

So it would be a bug in Electrum?

With me, a transaction was somehow missed in the history, when I sent a payment from an imported address. It may be the same problem. If so, then yes, it would be a bug in Electrum. However, I don't exactly know what the poster's problem is, so I can't say for sure.
simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 05, 2013, 11:44:45 PM
 #32

How to speak to a developer? How to submit a bug report?

SnowDog2003
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 06, 2013, 12:34:47 AM
 #33

How to speak to a developer? How to submit a bug report?

See:

http://electrum.org/community.html
simpic
Hero Member
*****
Offline Offline

Activity: 1238
Merit: 789


View Profile
September 06, 2013, 11:49:23 AM
 #34

How to speak to a developer? How to submit a bug report?

See:

http://electrum.org/community.html


Ehm... i have already seen this link, it says to ask here on this forum!
The other ways are IRC channel (i tried last week but nobody replied me) and GitHub site.
Now i open an issue on this, i hope they reply me.

Thank you for your help, i really appreciate it Wink

Pages: 1 2 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!