RPC : https://rpc.quasar-test.theamsolutions.info API : https://api.quasar-test.theamsolutions.info
gRPC : https://grpc.quasar-test.theamsolutions.info:9194
SEED : 89427b98e35b23dacafa8df90df6ae173245439b@seed-c4e.theamsolutions.info:16656
EXPLORER : https://explorer.theamsolutions.info
NODE SETUP GUIDE
Official DOCS HERE
Install GO & Dependencies HERE
cd $HOME
wget https://github.com/quasar-finance/binary-release/raw/main/v0.0.2-alpha-11/quasarnoded-linux-amd64
sudo mv quasarnoded-linux-amd64 /usr/local/bin/quasarnoded
sudo chmod +x /usr/local/bin/quasarnoded
quasarnoded version
quasarnoded init <name> --chain-id qsr-questnet-04
curl -s https://rpc.quasar-test.theamsolutions.info/genesis | jq -r '.result.genesis' > $HOME/.quasarnode/config/genesis.json
sudo tee /etc/systemd/system/quasard.service << EOF
[Unit]
Description=Mars-Mainnet
After=network-online.target
#
[Service]
User=$USER
ExecStart=$(which quasarnoded) start
RestartSec=10
Restart=on-failure
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable quasard
sudo systemctl daemon-reload
SHRUNK DATA SNAPSHOT
#check snapshot height : curl -s http://94.250.203.6:90 | egrep -o ">quasar-snap*.*tar" | tr -d ">"
snap=$(curl -s http://94.250.203.6:90 | egrep -o ">quasar-snap*.*tar" | tr -d ">")
sudo systemctl stop quasard
mv ~/.quasarnode/data/priv_validator_state.json ~/
rm -rf $HOME/.quasarnode/data
quasarnoded tendermint unsafe-reset-all --home $HOME/.quasarnode
wget -P $HOME http://94.250.203.6:90/${snap}
tar xf $HOME/${snap} -C $HOME/.quasarnode
rm $HOME/${snap}
mv ~/priv_validator_state.json ~/.quasarnode/data/
wget -qO $HOME/.quasarnode/config/addrbook.json http://94.250.203.6:90/quasar-addrbook.json
sudo systemctl restart quasard
journalctl -u quasard -f -o cat
STATE SYNC SERVICE
Please make sure You have latest, officially launched version of Quasar binaries
sudo systemctl stop quasard
quasarnoded tendermint unsafe-reset-all --home $HOME/.quasarnode
SNAP_RPC="https://rpc.quasar-test.theamsolutions.info:443"; \
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height) \
&& BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)) \
&& TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash); \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.quasarnode/config/config.toml; \
wget -qO $HOME/.quasarnode/config/addrbook.json http://94.250.203.6:90/quasar-addrbook.json
sudo systemctl restart quasard && sudo journalctl -u quasard -f -o cat
Use command below to switch off your State Sync mode, after node fully synced to avoid problems in future node restarts!
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.quasarnode/config/config.toml
A fully synced node supposed to be ready in 10-15 min. depending on computer/bandwidth power.
Enjoy.
CREATE VALIDATOR
#node has to be fully synced!
quasarnoded tx staking create-validator \
--amount=1000000uqsr \
--pubkey=$(quasarnoded tendermint show-validator) \
--moniker="<monker>" \
--chain-id="qsr-questnet-04" \
--from=<walle-name> \
--commission-rate=0.1 \
--commission-max-rate=0.2 \
--commission-max-change-rate=0.2 \
--min-self-delegation=1
GOOD LUCK!
AM Solutions © Copyright. All rights reserved.