Installation
Install Pre Requisites
sudo apt update
sudo apt install git build-essential curl jq lz4 --yes
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
rm go1.20.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
cat <<EOF >> ~/.profile
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source ~/.profile
go version
# OUTPUT
# go version go1.20.2 linux/amd64
Install Planq Node
git clone https://github.com/planq-network/planq.git
cd planq
git checkout v1.1.1
make install
planqd version
# OUTPUT
# 1.1.1
Create Background Service
sudo tee /etc/systemd/system/planqd.service > /dev/null << EOF
[Unit]
Description=Planq Network
After=network-online.target
[Service]
User=$USER
ExecStart=/home/$USER/go/bin/planqd start
Restart=always
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
Enable Planq Node In Background
sudo systemctl enable planqd
Initialize Planq Node
planqd config chain-id planq_7070-2
planqd init "your node name" --chain-id planq_7070-2
Set Gas Price
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0026aplq"|g' $HOME/.planqd/config/app.toml
Get Genesis
wget https://snapshot.safeblock.space/planq/genesis.json -P $HOME/.planqd/config
Start Planq Node
sudo systemctl start planqd && sudo journalctl -fu planqd -o cat
Last updated