Making a private zCash wallet

Store your cryptocurrency safelyPosted by Rakesh Bhakta on Jul 18, 2017

Would you prefer to put your money in a bank, or would you rather keep it safe in your pocket?

I personally prefer my own pocket, and I will tell you why. My Zcash was on Poloniex (it was the first exchange I found on Google) and I thought everything was OK. Then, one day, without a warning they disabled Zcash withdrawals and deposits. My wallet got locked and stayed that way for about 2 weeks. I Googled more about exchanges and found out that all of them were hacked at one moment, and for me that means they are not completely safe. I would rather have my own wallet, but how can you do that?

The official Zcash wallet is supported only on Linux, so if you don't have one, you can install VirtualBox and get a Linux running on a virtual machine.

You should enter Linux terminal and enter following commands:

sudo apt-get install apt-transport-https
wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -
echo "deb [arch=amd64] https://apt.z.cash/ jessie main" | sudo tee /etc/apt/sources.list.d/zcash.list
sudo apt-get update && sudo apt-get install zcash
zcash-fetch-params
mkdir ~/.zcash
echo "rpcuser=username" >> ~/.zcash/zcash.conf
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >> ~/.zcash/zcash.conf

That's it, your ready to go. Start the service with zcashd and wait for the blockchain to download (it can take hours, you can see the chain height here)

Use zcash-cli to create an address and make transactions. This is a short list of all you need for transparent addresses:

  • Generate new address: zcash-cli getnewaddress
  • Get all addresses: zcash-cli getaddressesbyaccount ""
  • Get address balance: zcash-cli z_getbalance t1gDuSvSLJfC8dhUAgVKAfyXCF3zdn1qfMq
  • Make a payment*: zcash-cli z_sendmany t1gDuSvSLJfC8dhUAgVKAfyXCF3zdn1qfMq "[{\"address\":\"t1gDuSvSLJfC8dhUAgVKAfyXCF3zdn1qfMq\",\"amount\":0.012}]"

* All unspent balance when making a payment will go to a new random address, that is the default.

You can find official download instructions here.

There is no wallet encryption so you might want to encrypt entire hard drive, or wallet files on your hard drive. Otherwise your Zcash might be compromised if your PC is compromised.

That is all, simpe and fast, and you can do it even if you are not very tech savvy with Linux. Donations are welcome and you can send them to my Zcash address: t1gDuSvSLJfC8dhUAgVKAfyXCF3zdn1qfMq