This guide builds a small Zcash stack from source: a Zebra full node, the Zaino indexer on top of it, and the zingo-cli command-line client that connects to Zaino.
An introduction to Zingolib + Zaino
You will need to install 3 things for this to work correctly. I also recommend screen or something similar to help with screen management
sudo apt install screen
git clone https://github.com/ZcashFoundation/zebra.git
cd zebra
cargo install --git https://github.com/ZcashFoundation/zebra --tag v7.0.0 zebrad
Use Zebra 7.0.0 or newer: NU7 activated on Mainnet at block 3,543,405, and older zebrad versions can't follow the chain past that height (release notes).
optional (create a screen session for zebrad)
screen -S zebra
zebrad start
note: this will need to fully sync!
git clone https://github.com/zingolabs/zaino.git
cd zaino
cargo build --release
PATH=$PATH:~/Desktop/zaino/target/release/
optional (create a screen session for zaino)
screen -S zaino
cd ~/zaino/zainod
nano zindexer.toml => Adjust port to 8232 for mainnet
zainod --config zindexer.toml
git clone https://github.com/zingolabs/zingolib.git
cd zingolib
cargo build --release --package zingo-cli
optional (create a screen session for zingo-cli)
screen -S zingo
./zingo-cli --server http://127.0.0.1:8137 --data-dir /media/zebra5/zebra/.cache/lightwalletd
note: this will need to fully sync, as zebrad does. I recommend using an external drive to save time :)
If you're running these in screens, screen -r will list each screen for you to move to as needed