Useful commands?

I have the following so far:
src/zcash-cli zcbenchmark solveequihash 5 # check speed of 2 solves
src/zcash-cli getinfo
src/zcash-cli listtransactions
src/zcash-cli listunspent
lsof -i | grep zcashd # show connections, look for "established" at leastauthority
src/zcash-cli getblockcount # block number
src/zcash-cli getdifficulty
src/zcash-cli getblocksubsidy [block number]

How do I get "balance" directly without info and my blocks gained?

4 Likes

src/zcash-cli getbalance

On a tangentially related note, you could copy zcash-cli to your /bin folder so you can run it from anywhere:
sudo cp src/zcash-cli /bin/zcash-cli

1 Like

I have been using this list for commands to use with Zcash.

http://we.lovebitco.in/bitcoin-qt/command-reference/

Many (but not all) work the same way with Zcash as with Bitcoin since Zcash uses Bitcoin core.

better add an alias to your .profile

alias zcash-cli="/home/zcash/src/zcash-cli"

./src/zcash-cli help
returns a list of commands

Heads up there’s this page: https://github.com/zcash/zcash/blob/master/doc/payment-api.md

And of course you can always run: man zcashd which gives full explaination of commands (both zcash specific and those ported from bitcoin)

1 Like