# Installation

**Chain ID**: rhye-1 | **Latest Version Tag**: v1.4.4-rc.3 | **Wasm**:&#x20;

## Installation

## Install dependencies

**Update system and install build tools**

```
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential tmux libgmp3-dev flex bison
sudo apt -qy upgrade
```

**Install Go**

```
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.19.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
```

**Set Variable**

```
echo "export WALLET="YOUR WALLET"" >> $HOME/.bash_profile
echo "export MONIKER="YOUR NODE NAME"" >> $HOME/.bash_profile
echo "export QUICKSILVER_CHAIN_ID="rhye-1"" >> $HOME/.bash_profile
echo "export QUICKSILVER_PORT="15"" >> $HOME/.bash_profile
source $HOME/.bash_profile
```

**Download and build binaries**

```
cd $HOME
rm -rf ~/quicksilver
git clone https://github.com/ingenuity-build/quicksilver
cd quicksilver
git fetch
git checkout v1.4.4-rc.3
make install
```

Set config and init app

```
quicksilverd config node tcp://localhost:${QUICKSILVER_PORT}657
quicksilverd config keyring-backend os
quicksilverd config chain-id rhye-1
quicksilverd init "YOUR NODE NAME" --chain-id rhye-1
```

#### Set custom ports in app.toml

```
sed -i.bak -e "s%:1317%:${QUICKSILVER_PORT}317%g;
s%:8080%:${QUICKSILVER_PORT}080%g;
s%:9090%:${QUICKSILVER_PORT}090%g;
s%:9091%:${QUICKSILVER_PORT}091%g;
s%:8545%:${QUICKSILVER_PORT}545%g;
s%:8546%:${QUICKSILVER_PORT}546%g;
s%:6065%:${QUICKSILVER_PORT}065%g" $HOME/.quicksilverd/config/app.toml
```

#### Set custom ports in config.toml

```
sed -i.bak -e "s%:26658%:${QUICKSILVER_PORT}658%g;
s%:26657%:${QUICKSILVER_PORT}657%g;
s%:6060%:${QUICKSILVER_PORT}060%g;
s%:26656%:${QUICKSILVER_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${QUICKSILVER_PORT}656\"%;
s%:26660%:${QUICKSILVER_PORT}660%g" $HOME/.quicksilverd/config/config.toml
```

#### Config pruning

```
sed -i -e "s/^pruning *=.*/pruning = \"nothing\"/" $HOME/.quicksilverd/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.quicksilverd/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.quicksilverd/config/app.toml
```

#### Set minimum gas price, enable prometheus and disable indexing

```
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.0uqck"|g' $HOME/.quicksilverd/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.quicksilverd/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.quicksilverd/config/config.toml
```

#### Create a service

```
sudo tee /etc/systemd/system/quicksilverd.service > /dev/null <<EOF
[Unit]
Description=Quicksilver node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.quicksilverd
ExecStart=$(which quicksilverd) start --home $HOME/.quicksilverd
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
```

#### Snapshot

```
sudo systemctl stop quicksilverd

cp $HOME/.quicksilverd/data/priv_validator_state.json $HOME/.quicksilverd/priv_validator_state.json.backup

rm -rf $HOME/.quicksilverd/data 
curl https://snapshot.qck.arweave.tech/qck/qck-snapshot-20231218.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.quicksilverd

mv $HOME/.quicksilverd/priv_validator_state.json.backup $HOME/.quicksilverd/data/priv_validator_state.json

sudo systemctl restart quicksilverd && sudo journalctl -u quicksilverd -f
```

#### Start service and check the logs

```
sudo systemctl daemon-reload
sudo systemctl enable quicksilverd
sudo systemctl restart quicksilverd && sudo journalctl -u quicksilverd -f
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.logosnodos.online/testnet-node/quicksilver-protocol/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
