Guide
Here is a node installation guide (Simplified and manual)
Preparing the server for installation
apt update && apt upgrade -y
apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
Installing Go
ver="1.21.3" && \
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
git clone https://github.com/dymensionxyz/dymension.git
cd dymension
git checkout v3.0.0
make install
Init your node
dymd init <YOUR MONIKER> --chain-id dymension_1100-1
Create or recover your wallet
#NEW WALLET
dymd keys add <WALLET_NAME>
#RECOVER OLD WALLET
dymd keys add <WALLET_NAME> --recover
Download Genesis
wget -O $HOME/.dymension/config/genesis.json "https://github.com/dymensionxyz/networks/raw/main/mainnet/dymension/genesis.json"
Set up the minimum gas price and Peers/Seeds/Filter peers/MaxPeers
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"5000000000adym\"|" $HOME/.dymension/config/app.toml
sed -i -e "s|^target_height_duration *=.*|timeout_commit = \"11s\"|" $HOME/.dymension/config/config.toml
Download addrbook
wget -O $HOME/.dymension/config/addrbook.json "https://raw.githubusercontent.com/nodersteam/cosmos-adrbook/main/dymension_mainnet/addrbook.json"
Create a service file
sudo tee /etc/systemd/system/dymd.service > /dev/null <<EOF
[Unit]
Description=dymension
After=network-online.target
[Service]
User=$USER
ExecStart=$(which dymd) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Use our StateSync
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.dymension/config/config.toml
SNAP_RPC=http://dymension.rpc.nodersteam.com:29657
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 500)); \
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\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.dymension/config/config.toml
Start your node
sudo systemctl daemon-reload
sudo systemctl enable dymd
sudo systemctl restart dymd && sudo journalctl -u dymd -f -o cat
Wait for full synchronization and create a validator
dymd tx staking create-validator \
--amount 1000000000000000000adym \
--pubkey $(dymd tendermint show-validator) \
--moniker "<YOUR_MONIKER>" \
--identity "<YOUR_KEYBASE_ID>" \
--details "<YOUR_DETAILS>" \
--website "<YOUR_WEBSITE_URL>" \
--chain-id dymension_1100-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from <WALLET_NAME> \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 5000000000adym - y
If you want to delete a node
systemctl stop dymd
systemctl disable dymd
rm /etc/systemd/system/dymd.service
systemctl daemon-reload
cd $HOME
rm -rf .dymension dymension
rm -rf $(which dymd)
Last updated