Skip to main content

Setup your node

Install pre requis

sudo apt-get update && sudo apt upgrade -y 
sudo apt-get install make build-essential gcc git jq chrony -y

Install go

sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz

Setting up go

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

Install Node

Install the Quasar-node binary by running the following commands

#from $HOME dir 
git clone https://github.com/quasar-finance/quasar-preview.git
cd quasar-preview
git fetch
git checkout v0.1.0
make install

To confirm that the node is well installed

quasarnoded version

#v0.1.0

Setting up the Node

Initialization node

Please choose your MONIKER name and replace it in the next command, it will represent your node

quasarnoded init MONIKER_NAME --chain-id quasar-1

This will generate severals files in ~/.quasarnoded/config/

  • node_key.json
  • genesis.json
  • priv_validator_key.json

Download and replace the genesis file

rm ~/.quasarnode/config/genesis.json 
wget -O genesis.json https://raw.githubusercontent.com/quasar-finance/networks/main/quasar-1/definitive-genesis.json --inet4-only
mv genesis.json ~/.quasarnode/config

Set minimum gas prices

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.01ibc\/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B,0.01ibc\/FA0006F056DB6719B8C16C551FC392B62F5729978FC0B125AC9A432DBB2AA1A5,0.01ibc\/FA7775734CC73176B7425910DE001A1D2AD9B6D9E93129A5D0750EAD13E4E63A\"/" ~/.quasarnode/config/app.toml

Node connexion

In order to connect the node you can either use seeds, lives peers or address book.

Set Seeds


Setup service file

[Unit]
Description="quasar node"


[Service]
User=USER
ExecStart=$(which quasarnoded) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target

If you'd like to synchronise a node from a snapshot check the snapshot part

Start service file

systemctl daemon-reload
systemctl start quasar.service | journalctl -u quasar.service -f