<blockquote>
  <p>I realize that the whole "Accounts" feature is being deprecated, but there is no getaddressesbylabel. </p>
</blockquote>

<p>It looks like there actually will be a <code>getaddressesbylabel</code> API call in a future version. Along with a handful of other methods that replace the accounts feature. <a href="https://github.com/bitcoin/bitcoin/pull/7729/files?diff=unified#diff-df7d84ff2f53fcb2a0dc15a3a51e55ceR3216" rel="nofollow noreferrer">Check out this PR</a>.</p>

<blockquote>
  <p>what does DEPRECATED means for future versions? will the parameter be ignored or removed or will the whole getaddressesbyaccount be removed?</p>
</blockquote>

<p>When a feature is deprecated it will usually stick around for a while reporting that it will be removed in future versions of the software.</p>

CC BY-SA 3.0
2018-02-06T11:06:54.090Z
2018-02-06T11:18:58.423Z
2018-02-06T11:18:58.423Z
Tony Rizko
<p>it's not preferred to use Accounts in any future projects.</p>

<p>So far you can use as an alternative <code>getaccount</code> and <code>getbalance</code> RPC call.</p>

<p>The getaccount RPC returns the name of the account associated with the given address.</p>

<pre><code>bitcoin-cli -testnet getaccount mjSk1Ny9spzU2fouzYgLqGUD8U41iR35QN
</code></pre>

<p>The getbalance RPC gets the balance in decimal bitcoins across all accounts or for a particular account.</p>

<pre><code>bitcoin-cli -testnet getbalance "test1" 1 true
</code></pre>

<p>Parameter #1—an account name</p>

<p>Parameter #2—the minimum number of confirmations</p>

<p>Parameter #3—whether to include watch-only addresses</p>

CC BY-SA 3.0
2018-02-06T10:45:49.187Z
2018-02-06T10:45:49.187Z
Tailer
<p>I'm using Bitcoin Core v0.15.1. when I use <code>getaddressesbyaccount</code> in the debug console I can see the "account" is DEPRECATED. in fact all methods that uses "account" mark this parameter as DEPRECATED.</p>

<p>I realize that the whole "Accounts" feature is being deprecated, but 
there is no getaddressesby<strong>label</strong>. </p>

<p>How can I replace this method to get the address by the label? what does DEPRECATED means for future versions? will the <strong>parameter</strong> be ignored or removed or will the whole <code>getaddressesbyaccount</code> be removed? </p>

<p>in fact I'm not sure how to handle other methods with "account" parameter. this label is essential to my application. (I want to lookup address by a unique label/id I will give for each user that uses <em>my</em> wallet).</p>

<p>Thanks.</p>

<bitcoin-core><bitcoind><json-rpc>
getaddressesbyaccount RPC alternative?
kobik
# getaddressesbyaccount RPC alternative?

(Asked by: username_0 on 2018-02-06)

I'm using Bitcoin Core v0.15.1. when I use `getaddressesbyaccount` in the debug console I can see the "account" is DEPRECATED. in fact all methods that uses "account" mark this parameter as DEPRECATED.

I realize that the whole "Accounts" feature is being deprecated, but
there is no getaddressesby**label**.

How can I replace this method to get the address by the label? what does DEPRECATED means for future versions? will the **parameter** be ignored or removed or will the whole `getaddressesbyaccount` be removed?

in fact I'm not sure how to handle other methods with "account" parameter. this label is essential to my application. (I want to lookup address by a unique label/id I will give for each user that uses *my* wallet).

Thanks.

**Tags:** bitcoin-core, bitcoind, json-rpc


---

## 2 answers

### Answer by username_1 on 2018-02-06. Score: 3 | Accepted answer

> I realize that the whole "Accounts" feature is being deprecated, but there is no getaddressesbylabel.

It looks like there actually will be a `getaddressesbylabel` API call in a future version. Along with a handful of other methods that replace the accounts feature. [Check out this PR](https://github.com/bitcoin/bitcoin/pull/7729/files?diff=unified#diff-df7d84ff2f53fcb2a0dc15a3a51e55ceR3216).

> what does DEPRECATED means for future versions? will the parameter be ignored or removed or will the whole getaddressesbyaccount be removed?

When a feature is deprecated it will usually stick around for a while reporting that it will be removed in future versions of the software.


---

### Answer by username_2 on 2018-02-06. Score: 0

it's not preferred to use Accounts in any future projects.
So far you can use as an alternative getaccount and getbalance RPC call.
The getaccount RPC returns the name of the account associated with the given address.
bitcoin-cli -testnet getaccount mjSk1Ny9spzU2fouzYgLqGUD8U41iR35QN

The getbalance RPC gets the balance in decimal bitcoins across all accounts or for a particular account.
bitcoin-cli -testnet getbalance "test1" 1 true

Parameter #1—an account name
Parameter #2—the minimum number of confirmations
Parameter #3—whether to include watch-only addresses


---

