<p>it seems to be that you are not on the testnet network. and i noticed that you're sending the commands with attaching -testnet </p>

<blockquote>
  <p>bitcoin-cli -testnet getreceivedbyaddress 'mvKoQLrzovNbgALa2D7prh9pagd2QUKpWo'" </p>
</blockquote>

<p><strong>To run Bitcoin on testNet</strong></p>

<p>Stop Bitcoin and open <code>~./bitcoin/bitcoin.conf</code> using any text editor.</p>

<p>and add <code>testnet=1</code> save and close. </p>

<p>try <code>bitcoin-cli listunspent 0 9999</code> you should see the transaction.</p>

<p>Anyway if you were already running it on testnet network</p>

<p>try the following command to get address balance</p>

<pre><code>bitcoin-cli getbalance "" 0 true
</code></pre>

<p><strong>Arguments:</strong></p>

<ol>
<li><p>"account"         (string, optional)</p></li>
<li><p>minconf           (numeric, optional, default=1) Only include transactions confirmed at least this many times.</p></li>
<li><p>include_watchonly (bool, optional, <strong>default=false</strong>) Also include balance in watch-only addresses.</p></li>
</ol>

CC BY-SA 3.0
2018-02-22T02:15:04.107Z
Thank you so much, Adam! I was running on testnet, but my watchonly was equal to false. You're the man, dude!
Setheroni
CC BY-SA 3.0
2018-02-22T02:21:10.173Z
Is there a list somewhere of all the bitcoin.conf options? I can't seem to find one
Setheroni
CC BY-SA 3.0
2018-02-22T03:05:47.090Z
https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File. I believe it's not all the options but the most used ones.
Tailer
CC BY-SA 3.0
2018-02-22T01:58:12.590Z
2018-02-22T01:58:12.590Z
Tailer
<p>I imported a few TestNet addresses and sent some funds to one of them. When I run </p>

<p><code>bitcoin-cli getaccount mvKoQLrzovNbgALa2D7prh9pagd2QUKpWo</code></p>

<p>it responds with the account I named it to. </p>

<p>I sent 1.1BTC to that address, as can be seen <a href="https://testnet.blockchain.info/tx/3652238662b14e30a5b51d766fa7706af89d79625e73ccfdb8ec16645a1412d3" rel="nofollow noreferrer">here</a> but when I run gettransaction it says amount: 0, but everything else looks correct. getbalance also returns 0. What am I doing wrong here? </p>

CC BY-SA 3.0
2018-02-22T01:29:26.277Z
"bitcoin-cli -testnet getreceivedbyaddress 'mvKoQLrzovNbgALa2D7prh9pagd2QUKpWo'" returns the correct amount, but balance of the whole wallet still says 0. I'm beyond confused
Setheroni
<bitcoin-core><bitcoind><testnet><bitcoin-cli>
bitcoin-cli says transaction amount and balance are 0, but that's not the case
Setheroni
# bitcoin-cli says transaction amount and balance are 0, but that's not the case

(Asked by: username_0 on 2018-02-22)

I imported a few TestNet addresses and sent some funds to one of them. When I run

`bitcoin-cli getaccount mvKoQLrzovNbgALa2D7prh9pagd2QUKpWo`

it responds with the account I named it to.

I sent 1.1BTC to that address, as can be seen [here](https://testnet.blockchain.info/tx/3652238662b14e30a5b51d766fa7706af89d79625e73ccfdb8ec16645a1412d3) but when I run gettransaction it says amount: 0, but everything else looks correct. getbalance also returns 0. What am I doing wrong here?

**Tags:** bitcoin-core, bitcoind, testnet, bitcoin-cli

> **Comments:**
> **username_0**: "bitcoin-cli -testnet getreceivedbyaddress 'mvKoQLrzovNbgALa2D7prh9pagd2QUKpWo'" returns the correct amount, but balance of the whole wallet still says 0. I'm beyond confused  

---

## 1 answers

### Answer by username_1 on 2018-02-22. Score: 0 | Accepted answer

it seems to be that you are not on the testnet network. and i noticed that you're sending the commands with attaching -testnet 

bitcoin-cli -testnet getreceivedbyaddress 'mvKoQLrzovNbgALa2D7prh9pagd2QUKpWo'" 

To run Bitcoin on testNet
Stop Bitcoin and open ~./bitcoin/bitcoin.conf using any text editor.
and add testnet=1 save and close. 
try bitcoin-cli listunspent 0 9999 you should see the transaction.
Anyway if you were already running it on testnet network
try the following command to get address balance
bitcoin-cli getbalance "" 0 true

Arguments:

"account"         (string, optional)
minconf           (numeric, optional, default=1) Only include transactions confirmed at least this many times.
include_watchonly (bool, optional, default=false) Also include balance in watch-only addresses.

> **Comments:**
> **username_0**: Thank you so much, Adam! I was running on testnet, but my watchonly was equal to false. You're the man, dude!  
> **username_0**: Is there a list somewhere of all the bitcoin.conf options? I can't seem to find one  
> **username_1**: https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File. I believe it's not all the options but the most used ones.  

---

