<p>The account API has been deprecated for a while, and was completely removed in Bitcoin Core 0.18.0.</p>

<p>You should be using the new mutliwallet API, or handling account based labelling externally.</p>

CC BY-SA 4.0
2019-07-08T11:19:40.900Z
2019-07-08T11:19:40.900Z
Raghav Sood
<p>On macOS Mojave I have a full bitcoin node synced using <code>bitcoind</code>.</p>

<p>I want to get the public address of the default account (i.e. the empty string <code>""</code>).</p>

<p>So I run <code>bitcoin-cli getaddressesbyaccount ""</code> but I get:</p>

<pre><code>error code: -32601
error message:
Method not found
</code></pre>

<p>Version of <strong>bitcoind</strong> is: Bitcoin Core Daemon version v0.18.0.0-g2472733a24a9364e4c6233ccd04166a26a68cc65
Copyright (C) 2009-2019 The Bitcoin Core developers</p>

<p>And of <strong>bitcoin-cli</strong> is: Bitcoin Core RPC client version v0.18.0.0-g2472733a24a9364e4c6233ccd04166a26a68cc65</p>

<p>What's wrong?</p>

<bitcoin-core><bitcoind><address><public-key><bitcoin-cli>
Bitcoin Core `getaddressesbyaccount` method not found (-32601)
kitsune
# Bitcoin Core `getaddressesbyaccount` method not found (-32601)

(Asked by: username_0 on 2019-07-08)

On macOS Mojave I have a full bitcoin node synced using `bitcoind`.

I want to get the public address of the default account (i.e. the empty string `""`).

So I run `bitcoin-cli getaddressesbyaccount ""` but I get:

```
error code: -32601
error message:
Method not found

```

Version of **bitcoind** is: Bitcoin Core Daemon version v0.18.0.0-g2472733a24a9364e4c6233ccd04166a26a68cc65
Copyright (C) 2009-2019 The Bitcoin Core developers

And of **bitcoin-cli** is: Bitcoin Core RPC client version v0.18.0.0-g2472733a24a9364e4c6233ccd04166a26a68cc65

What's wrong?

**Tags:** bitcoin-core, bitcoind, address, public-key, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2019-07-08. Score: 1 | Accepted answer

The account API has been deprecated for a while, and was completely removed in Bitcoin Core 0.18.0.

You should be using the new mutliwallet API, or handling account based labelling externally.


---

