<p>I have a problem that wallet does not recognize transactions of my address. The problem is present on testnet.</p>

<p>Relevant address is n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj (<a href="https://testnet.blockexplorer.com/address/n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj" rel="nofollow noreferrer">https://testnet.blockexplorer.com/address/n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj</a>).</p>

<pre><code>bitcoin-cli validateaddress n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj
{
  "isvalid": true,
  "address": "n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj",
  ...
  "ismine": true,
  ...
}
</code></pre>

<p>Transaction 405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850 (<a href="https://testnet.blockexplorer.com/tx/405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850" rel="nofollow noreferrer">https://testnet.blockexplorer.com/tx/405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850</a>) is having my address as an output:</p>

<pre><code>bitcoin-cli getrawtransaction 405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850 1
{
  "txid": "405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850",
  ...
  "vin": [
  ...
  ],
  "vout": [
    {
      "value": 0.49953560,
      "n": 0,
      "scriptPubKey": {
        ...
        "addresses": [
          "mxiFoE5bNxXMRdgXyFrc6zW3aw7zsuynSK"
        ]
      }
    }, 
    {
      "value": 16.05588800,
      "n": 1,
      "scriptPubKey": {
        ...
        "addresses": [
          "n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj"
        ]
      }
    }
  ],
  ...
}
</code></pre>

<p>But my node does not recognize it:</p>

<pre><code>bitcoin-cli listunspent 0 9999999 "[\"n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj\"]"
[
]

bitcoin-cli gettransaction 405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850
{
  "amount": 0.00000000,
  ...
  "txid": "405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850",
  ...
  "details": [
    {
      "account": "",
      "address": "mxiFoE5bNxXMRdgXyFrc6zW3aw7zsuynSK",
      "category": "send",
      "amount": -0.49953560,
      "fee": -0.00046440,
      "abandoned": false
      ...
    }, 
    {
      "account": "",
      "address": "mxiFoE5bNxXMRdgXyFrc6zW3aw7zsuynSK",
      "category": "receive",
      "amount": 0.49953560,
      ...
    }
  ],
  ...
}
</code></pre>

<p>Rescan of the node didn't help.</p>

CC BY-SA 3.0
2018-04-16T09:55:21.837Z
The interesting thing is that if I export (dumpprivkey) the private key (from this problematic address) from my wallet and import to some other wallet (node) then the balance for this address is correct and I can spend that amount.
Vlado Tosev
CC BY-SA 3.0
2018-04-26T13:42:12.213Z
The transaction I mentioned is from my address to my address and therefore `gettransaction` returned amount = 0.
It seems that my node recognize spending but not receiving of BTCs by that transactoin.
Vlado Tosev
CC BY-SA 3.0
2018-04-27T11:29:48.120Z
Copying a wallet.dat file from one node to the other didn't help.
Vlado Tosev
<transactions><wallet><address>
Problem with balance of my address
Vlado Tosev
# Problem with balance of my address

(Asked by: username_0 on 2018-04-12)

I have a problem that wallet does not recognize transactions of my address. The problem is present on testnet.
Relevant address is n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj (https://testnet.blockexplorer.com/address/n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj).
bitcoin-cli validateaddress n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj
{
  "isvalid": true,
  "address": "n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj",
  ...
  "ismine": true,
  ...
}

Transaction 405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850 (https://testnet.blockexplorer.com/tx/405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850) is having my address as an output:
bitcoin-cli getrawtransaction 405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850 1
{
  "txid": "405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850",
  ...
  "vin": [
  ...
  ],
  "vout": [
    {
      "value": 0.49953560,
      "n": 0,
      "scriptPubKey": {
        ...
        "addresses": [
          "mxiFoE5bNxXMRdgXyFrc6zW3aw7zsuynSK"
        ]
      }
    }, 
    {
      "value": 16.05588800,
      "n": 1,
      "scriptPubKey": {
        ...
        "addresses": [
          "n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj"
        ]
      }
    }
  ],
  ...
}

But my node does not recognize it:
bitcoin-cli listunspent 0 9999999 "[\"n3qPR7uHUSoqnd8DZpE8GVhqnmrMzYu7Vj\"]"
[
]

bitcoin-cli gettransaction 405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850
{
  "amount": 0.00000000,
  ...
  "txid": "405920020c236f3faa483b72baf5181955ac25f8946323f9f0827b94e08a2850",
  ...
  "details": [
    {
      "account": "",
      "address": "mxiFoE5bNxXMRdgXyFrc6zW3aw7zsuynSK",
      "category": "send",
      "amount": -0.49953560,
      "fee": -0.00046440,
      "abandoned": false
      ...
    }, 
    {
      "account": "",
      "address": "mxiFoE5bNxXMRdgXyFrc6zW3aw7zsuynSK",
      "category": "receive",
      "amount": 0.49953560,
      ...
    }
  ],
  ...
}

Rescan of the node didn't help.

**Tags:** transactions, wallet, address

> **Comments:**
> **username_0**: The interesting thing is that if I export (dumpprivkey) the private key (from this problematic address) from my wallet and import to some other wallet (node) then the balance for this address is correct and I can spend that amount.  
> **username_0**: The transaction I mentioned is from my address to my address and therefore `gettransaction` returned amount = 0. It seems that my node recognize spending but not receiving of BTCs by that transactoin.  
> **username_0**: Copying a wallet.dat file from one node to the other didn't help.  

---

## 0 answers

