Everything was done on regtest network.
So I've generated a new address using getrawchangeaddress
on wallet 2
and made a 0.1 BTC transaction from wallet 1
to wallet 2
and tried check this address balance on wallet 2
using getreceivedbyaddress
.
Well, it says that address received 0.1 BTC, but when I try to execute listreceivedbyaddress
, it returns an empty list.
NOTE: This transaction have above 6 confirmations.
> bitcoin-cli --rpcport=19011 --rpcuser=admin --rpcpassword=123 listreceivedbyaddress 1 true true bcrt1qn858fc33j9f6w83vu6vglk2d3e5th3zhrxj9lg
[
]
> bitcoin-cli --rpcport=19011 --rpcuser=admin --rpcpassword=123 getreceivedbyaddress bcrt1qn858fc33j9f6w83vu6vglk2d3e5th3zhrxj9lg
0.10000000
Weird thing also is that I've marked include_empty
to true
, but the answer is an empty list.
EDIT: listtransactions
shows the transactions, but there is a lot of other transactions.