-
Notifications
You must be signed in to change notification settings - Fork 70
Quick guide for beginners
BitcoinZ edited this page Sep 30, 2017
·
33 revisions
- Install Ubuntu 16.04 (or buy VPS in Amazon AWS or Google GCP etc) & login to shell
- Install packages
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake p7zip-full pwgen
- Download BitcoinZ
cd ~
wget https://github.com/bitcoinz-pod/bitcoinz/releases/download/1.1.1/bitcoinz1_1_1_x64.zip
- Extract BitcoinZ
7z x bitcoinz1_1_1_x64.zip
- Change directory
cd ~/bitcoinz-pkg
- Create config file
mkdir -p ~/.bitcoinz
echo "rpcuser=rpc`pwgen 15 1`
rpcpassword=rpc`pwgen 15 1`" > ~/.bitcoinz/bitcoinz.conf
- Run full node and wait for download all blocks. Full node should be running don't kill it.
cd ~/bitcoinz-pkg ./zcashd -exportdir=.
- Login to second console & change directory to bitcoinz-pkg
cd bitcoinz-pkg/
- Get your public BitcoinZ address (taddr)
./zcash-cli listreceivedbyaddress 0 true
- Get address private key
./zcash-cli dumpprivkey t1VHqiM5GTzVPZY9uSysPP48LfwQgaii1wy
Save private key in safe location
- Send coins
./zcash-cli z_sendmany t1eRPBQ6FAagpjbpRmtzXsjsSvGkorAQFSr '[{"amount": 1, "address": "t1f8xsf4U6qxYajSLD6sFLwKj4qyNRtqLk8"}]'
or Windows client example
zcash-cli z_sendmany "t1eRPBQ6FAagpjbpRmtzXsjsSvGkorAQFSr" "[{"amount": 0.1, "address": "t1f8xsf4U6qxYajSLD6sFLwKj4qyNRtqLk8"}]"
where:
t1eRPBQ6FAagpjbpRmtzXsjsSvGkorAQFSr - from address
1 - amount
t1f8xsf4U6qxYajSLD6sFLwKj4qyNRtqLk8 - to address
- Get transaxtion id (txid)
./zcash-cli z_getoperationstatus
- Get transaction details (as an argument pass txid from previous step)
./zcash-cli gettransaction ad4a0557eb45dc81ffdc15030be0dbad93e31ac00b66f9311b0e4526103916ff
- Check total balance
./zcash-cli z_gettotalbalance
- In case of disaster recover your address from private key
./zcash-cli importprivkey Kxnabekc1eXJyT7Pwb23GEvmzjArsHW3EYt93KWzrrL7ncqBoSMK
where priv key = Kxnabekc1eXJyT7Pwb23GEvmzjArsHW3EYt93KWzrrL7ncqBoSMK
***Backup your wallet***
- copy wallet.dat from ~/.bitcoinz folder to safe locations
In Windows wallet directory is %APPDATA%\BitcoinZ.
Run in cmd:
cd %APPDATA%\BitcoinZ && explorer .
- Run the following command & safe walletdata in safe locations
./zcash-cli z_exportwallet walletdata
More commands:
https://github.com/zcash/zcash/blob/master/doc/payment-api.md