<p>I am trying to use &quot;importaddress&quot; in regtest mode. I have two bitcoin-core nodes running.  I generated address on one node, imported it on another node and then sent some coins to this address. If I run &quot;listreceivedbyaddress 0 true&quot; on the first node, I see right amount of coins on this adddress and right txid. If I run &quot;listreceivedbyaddress 0 true&quot; on the second node, I see zero amount of coins on this adddress and no txid.</p>

CC BY-SA 4.0
2020-06-23T16:49:22.023Z
Did you rescan after importing the address?
pinhead
CC BY-SA 4.0
2020-06-24T08:05:23.487Z
Yes, I did rescan after importing the address.
Liverd
CC BY-SA 4.0
2020-06-24T11:44:35.837Z
Are you sure the two regtest nodes are actually connected to each other?
pinhead
CC BY-SA 4.0
2020-06-24T11:59:39.507Z
Yes, I am sure. When I send coins from wallet on one node to wallet on another node I can see this transaction in "listtransactions" output on both.
Liverd
CC BY-SA 4.0
2020-06-24T12:35:38.057Z
What if you generate a block and confirm the TX?
pinhead
CC BY-SA 4.0
2020-06-24T13:36:28.263Z
Ok. You could check the logs on both nodes as well maybe there is a reason the unconfirmed tx wasn't accepted in the mempool of node 2, for example
pinhead
<importaddress>
How does "importaddress" command in bitcoin-cli work?
Liverd
# How does "importaddress" command in bitcoin-cli work?

(Asked by: username_0 on 2020-06-23)

I am trying to use "importaddress" in regtest mode. I have two bitcoin-core nodes running. I generated address on one node, imported it on another node and then sent some coins to this address. If I run "listreceivedbyaddress 0 true" on the first node, I see right amount of coins on this adddress and right txid. If I run "listreceivedbyaddress 0 true" on the second node, I see zero amount of coins on this adddress and no txid.

**Tags:** importaddress

> **Comments:**
> **username_1**: Did you rescan after importing the address?  
> **username_0**: Yes, I did rescan after importing the address.  
> **username_1**: Are you sure the two regtest nodes are actually connected to each other?  
> **username_0**: Yes, I am sure. When I send coins from wallet on one node to wallet on another node I can see this transaction in "listtransactions" output on both.  
> **username_1**: What if you generate a block and confirm the TX?  
> **username_1**: Ok. You could check the logs on both nodes as well maybe there is a reason the unconfirmed tx wasn't accepted in the mempool of node 2, for example  

---

## 0 answers

