user2116: i'm trying to see all tx hashes and the balance for an address i don't own:
$ bitcoin-cli importaddress 1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA
$ # wait 5 minutes while bitcoind presumably scans all txs
$ # for this address
$ bitcoin-cli getbalance 1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA
0.00000000

bitcoind claims this address has no balance while blockchain.info currently shows a final balance of 0.00993754 BTC
why is this not working?
however the listunspent command appears to list the unspent transactions correctly:
$ bitcoin-cli listunspent 1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA
[
    {
        "txid" : "0fdcdeff329b91fb9888720c958d550c39716f92abec4e5b6ff7c53a22bb31c2",
        "vout" : 0,
        "address" : "1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA",
        "account" : "",
        "scriptPubKey" : "76a914dbf61ed2ce1def33a34d89ab7b05ccc25d9cf02288ac",
        "amount" : 0.00010000,
        "confirmations" : 3608,
        "spendable" : false
    },
    {
        "txid" : "db1beb183808e8b41064405d43bd6c684874b5f328bfb565c4e16cc2baaa0d18",
        "vout" : 1,
        "address" : "1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA",
        "account" : "",
        "scriptPubKey" : "76a914dbf61ed2ce1def33a34d89ab7b05ccc25d9cf02288ac",
        "amount" : 0.00983754,
        "confirmations" : 4459,
        "spendable" : false
    }
]

adding up the funds here: 0.00983754 + 0.00010000 = 0.00993754 matches the blockchain.info figure. maybe getbalance only shows spendable funds?

user3697: Try getbalance "*" 0 true.
help of getbalance says: getbalance ( "account" minconf includeWatchonly )

2116: <p>i'm trying to see all tx hashes and the balance for an address i don't own:</p>

<pre><code>$ bitcoin-cli importaddress 1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA
$ # wait 5 minutes while bitcoind presumably scans all txs
$ # for this address
$ bitcoin-cli getbalance 1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA
0.00000000
</code></pre>

<p>bitcoind claims this address has no balance while <a href="https://blockchain.info/address/1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA" rel="nofollow">blockchain.info currently shows</a> a final balance of 0.00993754 BTC</p>

<p>why is this not working?</p>

<p>however the <code>listunspent</code> command appears to list the unspent transactions correctly:</p>

<pre><code>$ bitcoin-cli listunspent 1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA
[
    {
        "txid" : "0fdcdeff329b91fb9888720c958d550c39716f92abec4e5b6ff7c53a22bb31c2",
        "vout" : 0,
        "address" : "1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA",
        "account" : "",
        "scriptPubKey" : "76a914dbf61ed2ce1def33a34d89ab7b05ccc25d9cf02288ac",
        "amount" : 0.00010000,
        "confirmations" : 3608,
        "spendable" : false
    },
    {
        "txid" : "db1beb183808e8b41064405d43bd6c684874b5f328bfb565c4e16cc2baaa0d18",
        "vout" : 1,
        "address" : "1M43pksKTGpBd8J8XzjStjgnX5vie1kpYA",
        "account" : "",
        "scriptPubKey" : "76a914dbf61ed2ce1def33a34d89ab7b05ccc25d9cf02288ac",
        "amount" : 0.00983754,
        "confirmations" : 4459,
        "spendable" : false
    }
]
</code></pre>

<p>adding up the funds here: <code>0.00983754 + 0.00010000 = 0.00993754</code> matches the blockchain.info figure. maybe <code>getbalance</code> only shows spendable funds?</p>
 3697: <p>Try <code>getbalance "*" 0 true</code>.</p>

<p>help of getbalance says: <code>getbalance ( "account" minconf includeWatchonly )</code></p>
