# Installation

## H**ardware Requirements**

<table><thead><tr><th>Node Type</th><th width="155">CPU</th><th width="160">RAM</th><th>Storage</th></tr></thead><tbody><tr><td>Mainnet</td><td>4+</td><td>16+</td><td>240+ GB SSD</td></tr></tbody></table>

## Server preparation

```
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
make install
```

<pre><code><strong>quasarnoded version --long | grep -e commit -e version
</strong></code></pre>

> **Result**
>
> * **version:** 3.0.0
> * **commit:** 899268292f2945f98b7d1f6c4c98b03509ddb9be

***

## Initiation

{% hint style="info" %}
Change \<moniker> to your value, moniker is the name of your validator.
{% endhint %}

```
quasarnoded init <moniker> --chain-id quasar-1
quasarnoded config chain-id quasar-1
```

***

## Create / recover wallet

{% hint style="info" %}
Change \<walletname> to the name of your wallet
{% endhint %}

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

***

## Download genesis and addrbook

```
https://raw.githubusercontent.com/Shoni-O/files/main/mainnet-files/quasar/genesis.json
https://raw.githubusercontent.com/Shoni-O/files/main/mainnet-files/quasar/addrbook.json
```

```
sha256sum $HOME/.quasarnode/config/genesis.json
```

> **Result**
>
> * 2eb786d599f3b52ead11cf3e118aa09b7ca0ec4bc8464922c91cbc0ca68cea09

***

## Setup the minimum gas price and Peers

```
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.1uqsr,0.01ibc/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B,0.01ibc/FA0006F056DB6719B8C16C551FC392B62F5729978FC0B125AC9A432DBB2AA1A5,0.01ibc/FA7775734CC73176B7425910DE001A1D2AD9B6D9E93129A5D0750EAD13E4E63A\"|" $HOME/.quasarnode/config/app.toml
```

***

## Pruning (optional)

```
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

{% hint style="info" %}
Change walletName, YOUR\_MONIKER\_NAME, YOUR\_KEYBASE\_ID, YOUR\_DETAILS and YOUR\_WEBSITE\_URL to your values
{% endhint %}

```
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-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)
```


---

# 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/mainnet/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.
