Import watch-only address to 0.18 core wallet, addresses missing

0

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
[
  ""
]

Saim Neftci

Posted 2019-10-10T11:04:29.320

Reputation: 13

Answers

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.

The original command you were attempting, listaddressgroupings, is described here.

Jose Fonseca

Posted 2019-10-10T11:04:29.320

Reputation: 541