Installation

Hardware prerequisites

To prepare for the upcoming testnet and network upgrades the Dymension validators and full nodes should be prepared with the following minimum recommended hardware requirements:

  • 8 cores

  • 1TB of NVME disk storage

  • 64gb of memory (RAM)

  • 100mbps network bandwidth

Preparing the server

sudo apt update && sudo apt upgrade -y 
sudo apt install curl lz4 tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

Install Go

cd $HOME 
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

cd $HOME 
 git clone https://github.com/dymensionxyz/dymension.git 
cd dymension 
git checkout v2.0.0-alpha.8
make install

Verify that the Dymension full node is installed correctly

dymd version --long

Example:

name: dymension server_name: dymd version: v2.0.0-alpha.8 commit: 080bbb9ede90170f84a3f4f3665c179ea8742716

dymd init mynode --chain-id=froopyland_100-1
dymd config chain-id froopyland_100-1

Create Wallet:

to restore exexuting wallet, use the flag recover
dymd keys add OR dymd keys add --recover

Download Genesis:

wget https://raw.githubusercontent.com/111STAVR111/props/main/Dymension/Testnet/genesis.json -O $HOME/.dymension/config/genesis.json

Download Addrbook:

wget -O $HOME/.dymension/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Dymension/Testnet/addrbook.json"
Add seeds & Peer 

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0udym\"/;" ~/.dymension/config/app.toml
external_address=$(wget -qO- eth0.me) 
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.dymension/config/config.toml
peers="[email protected]:20556,[email protected]:20556"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.dymension/config/config.toml
seeds="ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@testnet-seeds.polkachu.com:20556"
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.dymension/config/config.toml
sed -i 's/max_num_inbound_peers =.*/max_num_inbound_peers = 50/g' $HOME/.dymension/config/config.toml
sed -i 's/max_num_outbound_peers =.*/max_num_outbound_peers = 50/g' $HOME/.dymension/config/config.toml

Set pruning

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/.dymension/config/app.toml

Create systemd

sudo tee /etc/systemd/system/dymd.service > /dev/null <<EOF 
[Unit] 
Description=DYMENSION\n 
After=network.target 
[Service] 
Type=simple 
User=$USER
 ExecStart=$(which dymd) start 
Restart=on-failure 
RestartSec=10 
LimitNOFILE=65535 
[Install] 
WantedBy=multi-user.target 
EOF

sudo systemctl daemon-reload 
sudo systemctl enable dymd

SnapShot Mainnet updated every 5 hours

cd $HOME 
apt install lz4 
sudo systemctl stop dymd 
cp $HOME/.dymension/data/priv_validator_state.json $HOME/.dymension/priv_validator_state.json.backup 
rm -rf $HOME/.dymension/data 
curl -L https://snapshots.kjnodes.com/dymension-testnet/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.dymension
mv $HOME/.dymension/priv_validator_state.json.backup $HOME/.dymension/data/priv_validator_state.json 
sudo systemctl restart dymd && journalctl -u dymd -f -o cat

Create Validator

dymd tx staking create-validator
--commission-rate 0.1
--commission-max-rate 0.2
--commission-max-change-rate 0.2
--min-self-delegation "1000000"
--amount 1000000000000000000adym
--pubkey $(dymd tendermint show-validator)
--from
--gas 350000
--fees 7000000000000000adym
--moniker="Your Validator"
--chain-id="froopyland_100-1"
--identity=""
--website=""
--details="" -y

Delete Node ( Be careful when using this command, all your data will be deleted)

sudo systemctl stop dymd sudo systemctl disable dymd rm /etc/systemd/system/dymd.service sudo systemctl daemon-reload cd $HOME rm -rf dymension rm -rf .dymension rm -rf $(which dymd)

Last updated