Code to Check How Many Blocks Mined


#1

Does anyone know what to enter into a linux terminal for Zcashd to show total blocks mined (none stale)


#2

You can see your mined blockes here:

~/zcash/./src/zcash-cli listunspent


#3

I want total blocks not details if anyone has an idea to do this.

X Blocks nothing more


#4
echo `src/zcash-cli listunspent | grep txid | wc -l` blocks

#5

Thanks for the help.

Edit : echo ~/zcash/./src/zcash-cli listunspent | grep txid | wc -l blocks
works for me