<p>You're using on incorrect bitcoin-cli method to list your addresses.</p>

<p>The command you're looking for is:</p>

<pre><code>bitcoin-cli listreceivedbyaddress 0 true
</code></pre>

<p>The <code>0</code> parameter means you're requesting information on any address and the <a href="https://bitcoin.stackexchange.com/questions/16827/listreceivedbyaddress-returns-empty-list"><code>true</code> flag means you want empty addresses included</a>.</p>

<p>The original command you were attempting, <code>listaddressgroupings</code>, is described <a href="https://bitcoin.stackexchange.com/questions/25473/what-does-the-listaddressgroupings-rpc-method-do">here</a>.</p>

CC BY-SA 4.0
2019-10-12T16:28:12.733Z
2019-10-12T16:28:12.733Z
Jose Fonseca
<p>I am running new bitcond server</p>

<pre><code>$bitcoin-cli importaddress '32om7Xx7GnwxkiAQjpp3hhayDX4mSNLmR1' 'label' false
$
</code></pre>

<p>it seems added.</p>

<p>Then I try to list all addresses in wallet it return empty list.</p>

<pre><code>$bitcoin-cli listaddressgroupings
[
]
</code></pre>

<p>here my bitcoind.conf</p>

<pre><code>server=1
rpcuser=uname
rpcpassword=pass
rpcallowip=127.0.0.1
rpcbind=127.0.0.1
rpcport=18332
daemon=1
addresstype=p2sh-segwit

$ bitcoin-cli listwallets
[
  ""
]
</code></pre>

<bitcoin-core><bitcoind><importaddress>
Import watch-only address to 0.18 core wallet, addresses missing
Saim Neftci
# Import watch-only address to 0.18 core wallet, addresses missing

(Asked by: username_0 on 2019-10-10)

I am running new bitcond server

```
$bitcoin-cli importaddress '32om7Xx7GnwxkiAQjpp3hhayDX4mSNLmR1' 'label' false
$

```

it seems added.

Then I try to list all addresses in wallet it return empty list.

```
$bitcoin-cli listaddressgroupings
[
]

```

here my bitcoind.conf

```
server=1
rpcuser=uname
rpcpassword=pass
rpcallowip=127.0.0.1
rpcbind=127.0.0.1
rpcport=18332
daemon=1
addresstype=p2sh-segwit

$ bitcoin-cli listwallets
[
  ""
]

```

**Tags:** bitcoin-core, bitcoind, importaddress


---

## 1 answers

### Answer by username_1 on 2019-10-12. Score: 1

You're using on incorrect bitcoin-cli method to list your addresses.

The command you're looking for is:

```
bitcoin-cli listreceivedbyaddress 0 true

```

The `0` parameter means you're requesting information on any address and the [`true` flag means you want empty addresses included](https://bitcoin.stackexchange.com/questions/16827/listreceivedbyaddress-returns-empty-list).

The original command you were attempting, `listaddressgroupings`, is described [here](https://bitcoin.stackexchange.com/questions/25473/what-does-the-listaddressgroupings-rpc-method-do).


---

