<p>I follow <a href="https://en.bitcoin.it/wiki/Help:How_to_import_private_keys_in_Bitcoin_Core_0.7%2B" rel="nofollow noreferrer">this wiki guide</a> and <a href="https://bitcoin.stackexchange.com/questions/5941/how-do-i-import-a-private-key-into-bitcoin-core">this thread</a>. After executing the command <code>importprivkey mylongprivatekey</code> in the Console, I see a popup window saying</p>
<pre><code>[MyWallet] Rescanning...
</code></pre>
<p>and that takes couple of hours to finish. When it's done, I do not see <code>Address Book</code> show up next to <code>Transactions</code> as in the wiki page.</p>
<p>I thought one issue may be that the wallet get locked after the 10 minutes allowance. But I tried longer time, like 4 hours. Same issue.</p>
<p>I'm using bitcoin-0.20.0.</p>
<p>This is what I expect to see,
<a href="https://i.sstatic.net/2u1UE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2u1UE.png" alt="enter image description here" /></a></p>
<p>This is what I see after it finishes rescanning,
<a href="https://i.sstatic.net/4y3WA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4y3WA.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2021-03-15T23:03:57.890Z
If you issue the `getaddressinfo <address>` command (with `<address>` replaced by the address that you had hoped to get the key imported for, what do you get?
Pieter Wuille
CC BY-SA 4.0
2021-03-15T23:08:28.680Z
@PieterWuille You mean issuing the command in the Console? I won't be able to try it until it stops rescanning....
horaceT
CC BY-SA 4.0
2021-03-15T23:16:11.983Z
Did you provide a label? Without label I don't think it'll show up in the address book. The RPC I mentioned will tell you whether it was properly imported.
Pieter Wuille
CC BY-SA 4.0
2021-03-15T23:19:44.887Z
@PieterWuille Yeap. Only complication is this. Because this didn't work the first time, I tried importing the same private key couple of times using either QT or the command line `bitcoin-cli`. Not sure if it might have confused the app
horaceT
CC BY-SA 4.0
2021-03-16T02:18:05.787Z
@PieterWuille It just finished and I did `getaddressinfo MyAddr` it shows the correct label.
horaceT
CC BY-SA 4.0
2021-03-16T02:20:27.777Z
@PieterWuille So, the private key has been imported successfully. Question then is why QT user interface doesn't show the `Address Book` button. And how do I send bitcoin out of this address, if it has balance (this particular one does not).
horaceT
CC BY-SA 4.0
2021-03-16T03:04:22.750Z
Oh that's just because the UI has been changed a lot. That documentation you're looking at is for version 0.7 (which was released in 2012). You don't need to do anything; if it's imported it'll work. If you had received coins on that address (or will receive), it'll show up in your balance, and be spendable.
Pieter Wuille
CC BY-SA 4.0
2021-03-16T07:15:19.417Z
@PieterWuille Then, is there any way to list all the addresses I've imported into this wallet?
horaceT
CC BY-SA 4.0
2021-03-16T07:16:00.903Z
It should be on the receive tab.
Pieter Wuille
CC BY-SA 4.0
2021-03-16T07:27:33.997Z
@PieterWuille In `Receive` tab, I don't see my imported address. I see a button `Create new receiving address` though. But that creates a new address.
horaceT
CC BY-SA 4.0
2021-03-16T07:28:13.717Z
Sorry, then I don't know. I don't work on the GUI.
Pieter Wuille
CC BY-SA 4.0
2021-03-16T07:42:47.523Z
@PieterWuille Is there any command(s) on command line `bitcoin-cli` to show my addresses?
horaceT
<bitcoin-core><private-key-import>
bitcoin-qt import private key doesn't seem to work
horaceT
# bitcoin-qt import private key doesn't seem to work

(Asked by: username_0 on 2021-03-15)

I follow [this wiki guide](https://en.bitcoin.it/wiki/Help:How_to_import_private_keys_in_Bitcoin_Core_0.7%2B) and [this thread](https://bitcoin.stackexchange.com/questions/5941/how-do-i-import-a-private-key-into-bitcoin-core). After executing the command `importprivkey mylongprivatekey` in the Console, I see a popup window saying

```
[MyWallet] Rescanning...

```

and that takes couple of hours to finish. When it's done, I do not see `Address Book` show up next to `Transactions` as in the wiki page.

I thought one issue may be that the wallet get locked after the 10 minutes allowance. But I tried longer time, like 4 hours. Same issue.

I'm using bitcoin-0.20.0.

This is what I expect to see,
[![enter image description here](https://i.sstatic.net/2u1UE.png)](https://i.sstatic.net/2u1UE.png)

This is what I see after it finishes rescanning,
[![enter image description here](https://i.sstatic.net/4y3WA.png)](https://i.sstatic.net/4y3WA.png)

**Tags:** bitcoin-core, private-key-import

> **Comments:**
> **username_1**: If you issue the `getaddressinfo <address>` command (with `<address>` replaced by the address that you had hoped to get the key imported for, what do you get?  
> **username_0**: @username_1 You mean issuing the command in the Console? I won't be able to try it until it stops rescanning....  
> **username_1**: Did you provide a label? Without label I don't think it'll show up in the address book. The RPC I mentioned will tell you whether it was properly imported.  
> **username_0**: @username_1 Yeap. Only complication is this. Because this didn't work the first time, I tried importing the same private key couple of times using either QT or the command line `bitcoin-cli`. Not sure if it might have confused the app  
> **username_0**: @username_1 It just finished and I did `getaddressinfo MyAddr` it shows the correct label.  
> **username_0**: @username_1 So, the private key has been imported successfully. Question then is why QT user interface doesn't show the `Address Book` button. And how do I send bitcoin out of this address, if it has balance (this particular one does not).  
> **username_1**: Oh that's just because the UI has been changed a lot. That documentation you're looking at is for version 0.7 (which was released in 2012). You don't need to do anything; if it's imported it'll work. If you had received coins on that address (or will receive), it'll show up in your balance, and be spendable.  
> **username_0**: @username_1 Then, is there any way to list all the addresses I've imported into this wallet?  
> **username_1**: It should be on the receive tab.  
> **username_0**: @username_1 In `Receive` tab, I don't see my imported address. I see a button `Create new receiving address` though. But that creates a new address.  
> **username_1**: Sorry, then I don't know. I don't work on the GUI.  
> **username_0**: @username_1 Is there any command(s) on command line `bitcoin-cli` to show my addresses?  

---

## 0 answers

