# Zcash-cli z\_getbalance always empty

**URL:** <https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835>\
**Category:** Technical Support\
**Created:** [November 21, 2016, 4:02pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835 "2016-11-21T16:02:56Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonchs](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gonchs](https://forum.zcashcommunity.com/u/gonchs)\
**Post date:** [November 21, 2016, 4:02pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/1 "2016-11-21T16:02:56Z")

</div>

> zcash-cli getinfo  
> {  
> “version” : 1000350,  
> “protocolversion” : 170002,  
> “walletversion” : 60000,  
> “balance” : 0.00000000,  
> “blocks” : 2100,  
> “timeoffset” : 0,  
> “connections” : 8,  
> “proxy” : “”,  
> “difficulty” : 54990.87397591,  
> “testnet” : false,  
> “keypoololdest” : 1479741580,  
> “keypoolsize” : 101,  
> “paytxfee” : 0.00000000,  
> “relayfee” : 0.00001000,  
> “errors” : “”  
> }

> zcash-cli z\_getbalance t1ZJQNuop1oytQ7ow4Kq8o9if3astavba5W  
> 0.00000000

> zcash-cli listtransactions t1ZJQNuop1oytQ7ow4Kq8o9if3astavba5W  
> [  
> ]

> curl -s “[https://api.zcha.in/v1/mainnet/accounts/t1ZJQNuop1oytQ7ow4Kq8o9if3astavba5W](https://api.zcha.in/v1/mainnet/accounts/t1ZJQNuop1oytQ7ow4Kq8o9if3astavba5W)”  
> {“address”:“t1ZJQNuop1oytQ7ow4Kq8o9if3astavba5W”,“balance”:268.1919688099997,“firstSeen”:1.47910928e+09,“lastSeen”:1.479743329e+09,“minedCount”:1406,“recvCount”:1406,“sentCount”:1367,“totalRecv”:8571.334657259991,“totalSent”:8303.14268844999}

When I run zcash-cli z\_getbalance or zcash-cli listtransactions, it appears the output is always zero balance/transactions, yet according to explorer.zcha.in, the balance is present. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![vaklinov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/vaklinov/32/718_2.png) [@vaklinov](https://forum.zcashcommunity.com/u/vaklinov)\
**Post date:** [November 21, 2016, 4:15pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/2 "2016-11-21T16:15:53Z")

</div>

> [@gonchs](#):
>
> “blocks” : 2100,

The current bock height is 14299 ([https://explorer.zcha.in/](https://explorer.zcha.in/)). Maybe your block chain is not yet synchronized. It might be easier to find out if you use a GUI wallet…

---

<div class="post-metadata">

**Author:** ![vgm](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/vgm/32/13595_2.png) [@vgm](https://forum.zcashcommunity.com/u/vgm)\
**Post date:** [November 21, 2016, 4:29pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/3 "2016-11-21T16:29:53Z")

</div>

Wow! First of all, how did you manage to mine over 8500 ZEC?! Do you have 20,000+ GPUs?

---

<div class="post-metadata">

**Author:** ![gonchs](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gonchs](https://forum.zcashcommunity.com/u/gonchs)\
**Post date:** [November 21, 2016, 4:53pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/4 "2016-11-21T16:53:53Z")

</div>

I wish. The address is not mine, I used it as an example where I assume there will always be some balance.

---

<div class="post-metadata">

**Author:** ![gonchs](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gonchs](https://forum.zcashcommunity.com/u/gonchs)\
**Post date:** [November 21, 2016, 6:33pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/6 "2016-11-21T18:33:10Z")

</div>

The blockchain has been fully synchronized for a few minutes now and I still get the same empty results. Any ideas?

{  
“version” : 1000350,  
“protocolversion” : 170002,  
“walletversion” : 60000,  
“balance” : 0.00000000,  
“blocks” : 14359,  
“timeoffset” : -1,  
“connections” : 8,  
“proxy” : “”,  
“difficulty” : 439725.01352718,  
“testnet” : false,  
“keypoololdest” : 1479745803,  
“keypoolsize” : 101,  
“paytxfee” : 0.00000000,  
“relayfee” : 0.00001000,  
“errors” : “”  
}

---

<div class="post-metadata">

**Author:** ![vaklinov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/vaklinov/32/718_2.png) [@vaklinov](https://forum.zcashcommunity.com/u/vaklinov)\
**Post date:** [November 21, 2016, 7:49pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/7 "2016-11-21T19:49:47Z")

</div>

> [@gonchs](#):
>
> Any ideas?

Something is not right. Are you sure you own this address/private key: [https://explorer.zcha.in/accounts/t1ZJQNuop1oytQ7ow4Kq8o9if3astavba5W](https://explorer.zcha.in/accounts/t1ZJQNuop1oytQ7ow4Kq8o9if3astavba5W) ?  
This means you are a wealthy miner 😉

Try to import and export the private key … maybe it will work then.

---

<div class="post-metadata">

**Author:** ![5thdimension](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/5thdimension/32/778_2.png) [@5thdimension](https://forum.zcashcommunity.com/u/5thdimension)\
**Post date:** [November 21, 2016, 7:56pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/8 "2016-11-21T19:56:55Z")

</div>

zcashd --reindex might help

---

<div class="post-metadata">

**Author:** ![gonchs](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gonchs](https://forum.zcashcommunity.com/u/gonchs)\
**Post date:** [November 21, 2016, 8:04pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/9 "2016-11-21T20:04:12Z")

</div>

So in order to check the balance of some t\_address, I also have to own the private key to it? I can’t check the balance of t\_address that I don’t own? Because if that’s the case, how is explorer.zcha.in able to do it?

---

<div class="post-metadata">

**Author:** ![vaklinov](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/vaklinov/32/718_2.png) [@vaklinov](https://forum.zcashcommunity.com/u/vaklinov)\
**Post date:** [November 21, 2016, 8:20pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/10 "2016-11-21T20:20:26Z")

</div>

> [@gonchs](#):
>
> So in order to check the balance of some t\_address, I also have to own the private key to it?

There is a way of to find any T address balance by scanning the blockchain… but AFAIK commands like z\_getbalance work with addresses already in your wallet only (e.g. created or imported into the wallet).

---

<div class="post-metadata">

**Author:** ![gonchs](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gonchs](https://forum.zcashcommunity.com/u/gonchs)\
**Post date:** [November 21, 2016, 10:05pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/11 "2016-11-21T22:05:51Z")

</div>

I’ve imported my own address and now it shows positive balance, but it’s incorrect, it’s supposed to be 0 at the moment.

[https://explorer.zcha.in/accounts/t1MDVyBvdCd5nsiZf3oHuH6ezcCU8sreuc7](https://explorer.zcha.in/accounts/t1MDVyBvdCd5nsiZf3oHuH6ezcCU8sreuc7)

txcount on the explorer.zcha.in is 33, but zcash-cli getwalletinfo shows only 15. Can my zcashd node be somehow out of sync even when the block count is the same as on explorer.zcha.in? The last transaction has been sent hours ago.

---

<div class="post-metadata">

**Author:** ![maus](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/maus/32/4642_2.png) [@maus](https://forum.zcashcommunity.com/u/maus)\
**Post date:** [May 20, 2017, 6:35am UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/12 "2017-05-20T06:35:50Z")

</div>

I have the same problem.How did you solve this problem? I already have my address in wallet and I can dump out the private key.

---

<div class="post-metadata">

**Author:** ![paige](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/paige/32/31152_2.png) [@paige](https://forum.zcashcommunity.com/u/paige)\
**Post date:** [May 31, 2017, 8:56pm UTC](https://forum.zcashcommunity.com/t/zcash-cli-z-getbalance-always-empty/8835/13 "2017-05-31T20:56:39Z")

</div>

A few problems were discussed in this thread. Can you be more specific?
