<p>If you provide an empty string it will return the default account every time. Note <code>getaccountaddress</code> is deprecated, see <a href="https://bitcoincore.org/en/doc/0.16.2/rpc/wallet/getaccountaddress/" rel="nofollow noreferrer">https://bitcoincore.org/en/doc/0.16.2/rpc/wallet/getaccountaddress/</a>.</p>

<pre><code>getaccountaddress "account"

DEPRECATED. Returns the current Bitcoin address for receiving payments to this account.

Arguments:
1. "account"       (string, required) The account name for the address. It can also 
be set to the empty string "" to represent the default account. The account does not
need to exist, it will be created and a new address created  if there is no account
by the given name.
</code></pre>

CC BY-SA 4.0
2018-09-12T15:04:51.087Z
2018-09-12T15:04:51.087Z
JBaczuk
<p>Always when i need free address (not labled) i use: </p>

<pre><code>getAccountAddress('')
</code></pre>

<p>And i want to know: Can it give me an already occupied address (by label)</p>

<p>I'm worried that I can get an already address in using (by label)</p>

CC BY-SA 4.0
2018-09-12T15:00:37.787Z
Why not just use `getnewaddress`?  The whole account / label system is deprecated and shouldn't be used in new code.
Nate Eldredge
<bitcoind><json-rpc>
RPC get free address
Oliver
# RPC get free address

(Asked by: username_0 on 2018-09-12)

Always when i need free address (not labled) i use: 
getAccountAddress('')

And i want to know: Can it give me an already occupied address (by label)
I'm worried that I can get an already address in using (by label)

**Tags:** bitcoind, json-rpc

> **Comments:**
> **username_1**: Why not just use `getnewaddress`?  The whole account / label system is deprecated and shouldn't be used in new code.  

---

## 1 answers

### Answer by username_2 on 2018-09-12. Score: 1 | Accepted answer

If you provide an empty string it will return the default account every time. Note getaccountaddress is deprecated, see https://bitcoincore.org/en/doc/0.16.2/rpc/wallet/getaccountaddress/.
getaccountaddress "account"

DEPRECATED. Returns the current Bitcoin address for receiving payments to this account.

Arguments:
1. "account"       (string, required) The account name for the address. It can also 
be set to the empty string "" to represent the default account. The account does not
need to exist, it will be created and a new address created  if there is no account
by the given name.


---

