<p>You can set account like that</p>

<pre><code>bitcoin-cli importprivkey "myPrivKey" "Account" true
</code></pre>

<p>if you want to import multi private keys do it like that</p>

<pre><code>bitcoin-cli importprivkey "myPrivKey" "Account" false
bitcoin-cli importprivkey "myPrivKey" "Account" false
bitcoin-cli importprivkey "myPrivKey" "Account" false
bitcoin-cli importprivkey "myPrivKey" "Account" true
</code></pre>

<p>So you don't rescan the entire local block database each time, but the last time.</p>

<p>to import it to default account leave it empty </p>

<pre><code>bitcoin-cli importprivkey "myPrivKey" "" true
</code></pre>

<p>Also please consider stopping using accounts since it will be removed in 0.16 version.</p>

CC BY-SA 3.0
2018-01-22T10:27:24.197Z
The 0.16 version will stop using accounts, so how does it manage different users' private keys?
styling
CC BY-SA 3.0
2018-01-22T10:29:23.083Z
it's a different question. Please consider ask a new question.
Tailer
CC BY-SA 3.0
2018-01-22T07:49:26.617Z
2018-01-22T09:15:47.087Z
2018-01-22T09:15:47.087Z
Tailer
<p>If i call the bitcoin-cli importprivkey multiple times, does it import the private key to the same user or to different users? In the bitcoin-cli importprivkey, it does not specify to which user account is the key importing to.</p>

<bitcoin-cli>
bitcoin-cli importprivkey to the same user or different users
styling
# bitcoin-cli importprivkey to the same user or different users

(Asked by: username_0 on 2018-01-22)

If i call the bitcoin-cli importprivkey multiple times, does it import the private key to the same user or to different users? In the bitcoin-cli importprivkey, it does not specify to which user account is the key importing to.

**Tags:** bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2018-01-22. Score: 1

You can set account like that
bitcoin-cli importprivkey "myPrivKey" "Account" true

if you want to import multi private keys do it like that
bitcoin-cli importprivkey "myPrivKey" "Account" false
bitcoin-cli importprivkey "myPrivKey" "Account" false
bitcoin-cli importprivkey "myPrivKey" "Account" false
bitcoin-cli importprivkey "myPrivKey" "Account" true

So you don't rescan the entire local block database each time, but the last time.
to import it to default account leave it empty 
bitcoin-cli importprivkey "myPrivKey" "" true

Also please consider stopping using accounts since it will be removed in 0.16 version.

> **Comments:**
> **username_0**: The 0.16 version will stop using accounts, so how does it manage different users' private keys?  
> **username_1**: it's a different question. Please consider ask a new question.  

---

