# Installation

## [**EXPLORER**](https://mainnet.block-pro.net/Quasar)

## **Hardware Requirements:**

| Node Type | CPU | RAM  | Storage |
| --------- | --- | ---- | ------- |
| Testnet   | 8   | 16GB | 250GB   |

## Preparing the server

```
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
```

## GO 1.21.6

```
ver="1.21.6"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
```

## Build

```
cd $HOME
git clone https://github.com/quasar-finance/quasar.git
cd quasar
git checkout v3.0.0-rc0
make install
```

```
quasarnoded version --long | grep -e commit -e version
```

* version: 3.0.0-rc0
* commit: af7a94d86e7f36807fa657fe876f215d458c503a

<pre><code>quasarnoded init <a data-footnote-ref href="#user-content-fn-1">BlockPro </a>--chain-id quasar-test-1
quasarnoded config chain-id quasar-test-1
</code></pre>

## Create/recover wallet

```
quasarnoded keys add <walletname>
quasarnoded keys add <walletname> --recover
```

## Download Genesis and addrbook

```
wget -O $HOME/.quasarnode/config/genesis.json "https://github.com/Shoni-O/files/blob/main/testnet-files/quasar/genesis.json"
wget -O $HOME/.quasarnode/config/addrbook.json "https://github.com/Shoni-O/files/blob/main/testnet-files/quasar/addrbook.json"
```

## Setup the minimum gas price and Peers

```
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0uqsr\"|" $HOME/.quasarnode/config/app.toml
```

## Pruning

```
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
  $HOME/.quasarnode/config/app.toml
```

## Create a service file

```
sudo tee /etc/systemd/system/quasarnoded.service > /dev/null << EOF
[Unit]
Description=quasarnoded
After=network-online.target

[Service]
User=root
ExecStart=/root/go/bin/quasarnoded start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF
```

## Start

```
sudo systemctl daemon-reload
sudo systemctl enable nolusd
sudo systemctl restart quasarnoded && sudo journalctl -u quasarnoded -f -o cat
```

## Create validator

```
quasarnoded tx staking create-validator \
  --amount 1000000uqsr \
  --from <walletName> \
  --commission-max-change-rate "0.05" \
  --commission-max-rate "0.20" \
  --commission-rate "0.05" \
  --min-self-delegation "1" \
  --pubkey $(quasarnoded tendermint show-validator) \
  --moniker YOUR_MONIKER_NAME \
  --chain-id quasar-test-1 \
  --identity="YOUR_KEYBASE_ID" \
  --details="YOUR_DETAILS" \
  --website="YOUR_WEBSITE_URL"
  --gas-adjustment 1.4 \
  --gas auto \
  --gas-prices 0.1uqsr \
  -y
```

## Delete node

```
sudo systemctl stop quasarnoded && \
sudo systemctl disable quasarnoded && \
rm /etc/systemd/system/quasarnoded.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf quasar && \
rm -rf .quasarnode && \
rm -rf $(which quasarnoded)
```

[^1]: \[custom\_moniker]


---

# 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://service.block-pro.net/testnet/quasar/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.
