# Setting-up NOMIC Testnet Node We will need rustup. ### Install rustup: ``` curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` ### Install dependencies: ``` sudo dnf install clang openssl-devel && sudo dnf group install "C Development Tools and Libraries" ``` ### Download NOMIC repository and install: First we will clone the repository. Then we will scitch to testnet branch and then install. ``` git clone https://github.com/nomic-io/nomic.git nomic && cd nomic git pull git checkout v4d-testnet cargo install --locked --path . ``` ### Create systemd service file: ```sudo tee /etc/systemd/system/nomic.service > /dev/null <<EOF [Unit] Description=Nomic Node After=network-online.target [Service] User=cosmos ExecStart=/bin/bash -c '/home/cosmos/.cargo/bin/nomic start' Restart=always RestartSec=3 LimitNOFILE=65535 [Install] WantedBy=multi-user.target EOF ``` ### Start the service: ``` sudo systemctl daemon-reload sudo systemctl start nomic journalctl -u nomic.service -f ``` ### Fund the wallet: Fund the wallet by asking in the validator testnet channel. To find balance in nomic wallet: ```nomic balance``` ### Declare the node as a validator: First we will find out validator address using the following: ``` curl -s http://127.0.0.1:26657/status ``` validator address can be found in the ```validator_info``` section. Now we will declare the node as validator and delegate to it: ``` nomic declare \ sCl3NhCbe415xIhFhcqQtwjPwrm5EteM9tZMY5Y/Br4= \ 100000 \ 0.042 \ 0.1 \ 0.01 \ 100000 \ "Validatus" \ "https://www.validatus.com" \ DEF3590B1DCD96A4 \ "Validatus - verifying blockchain entries on purely Enterprise Linux based systems with regular security audits. Stay safe. Stake with us." ``` To claim rewards: ``` nomic claim ``` To delegate next time: ``` nomic delegate nomic1aguemq6v6lfzptvfp6z9zjd3ldsfkw2wau0yar 9790000 ```