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.
"bitcoin-cli -testnet getreceivedbyaddress 'mvKoQLrzovNbgALa2D7prh9pagd2QUKpWo'" returns the correct amount, but balance of the whole wallet still says 0. I'm beyond confused – Setheroni – 2018-02-22T01:29:26.277