<p>The Bitcoin-Qt/bitcoind client will try to maintain a key pool of unused keys at an even size (default is 100 keys).  So each time you click "New key" it is going to try to add one to the key pool.</p>

<p>These keys in the key pool need to be encrypted, so your passphrase is required to do that.</p>

<p>The getnewaddress API call will, I believe, give you an address from the pool and if the wallet is locked, will simply deplete keys from the key pool without requiring the passphrase to replenish.</p>

CC BY-SA 3.0
2013-04-10T09:32:25.683Z
2013-04-10T09:32:25.683Z
Stephen Gornick
<p>I heard that the wallet has 100 of the next receiving addresses already.  Shouldn't I be able to get one of those without unlocking it?</p>

CC BY-SA 3.0
2013-04-09T22:46:53.327Z
I believe you can. So long as the wallet has spare receiving addresses, you should be able to get one without supplying a password. If you can't, then it's probably out of spare receiving addresses.
David Schwartz
<wallet><bitcoin-core>
Why do I need my password to generate a new receiving address in bitcoin-qt?
Eyal
# Why do I need my password to generate a new receiving address in bitcoin-qt?

(Asked by: username_0 on 2013-04-09)

I heard that the wallet has 100 of the next receiving addresses already. Shouldn't I be able to get one of those without unlocking it?

**Tags:** wallet, bitcoin-core

> **Comments:**
> **username_1**: I believe you can. So long as the wallet has spare receiving addresses, you should be able to get one without supplying a password. If you can't, then it's probably out of spare receiving addresses.  

---

## 1 answers

### Answer by username_2 on 2013-04-10. Score: 3

The Bitcoin-Qt/bitcoind client will try to maintain a key pool of unused keys at an even size (default is 100 keys). So each time you click "New key" it is going to try to add one to the key pool.

These keys in the key pool need to be encrypted, so your passphrase is required to do that.

The getnewaddress API call will, I believe, give you an address from the pool and if the wallet is locked, will simply deplete keys from the key pool without requiring the passphrase to replenish.


---

