Installation Guide/
testnet/
dymension

Rpc status: Active

Install Dependencies

sudo apt update
sudo 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 lz4 -y

Install Go

cd $HOME && \
ver="1.22.6" && \
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

Set Variables

echo "export WALLET='wallet'" >> $HOME/.bash_profile
echo "export MONIKER='validator'" >> $HOME/.bash_profile
echo "export PORT_DYMENSION='26'" >> $HOME/.bash_profile
source $HOME/.bash_profile

Build Binary

cd $HOME
rm -rf dymension
git clone https://github.com/dymensionxyz/dymension.git
cd dymension
git checkout 2.0.0-alpha.8
make install

dymd version --long | grep -e version -e commit

Config and Initialize Node

dymd init "validator" --chain-id froopyland_100-1
dymd config chain-id froopyland_100-1
dymd config keyring-backend os
dymd config node tcp://localhost:${PORT_DYMENSION}657

Download Genesis and Addrbook

wget -O $HOME/.dymension/config/genesis.json https://download.dteam.tech/dymension/testnet/genesis
wget -O $HOME/.dymension/config/addrbook.json https://download.dteam.tech/dymension/testnet/addrbook

Set Seeds and Peers

SEEDS="c82cc8460798bb99c8b9309ed3589f3c853c5f1b@seed.dymension.testnet.dteam.tech:28656"
PEERS="fa38da9a2195eb234e8ba9ab9ddbcccc24ddd06e@peer.dymension.testnet.dteam.tech:26656,[email protected]:4000,[email protected]:36656,[email protected]:26656,[email protected]:26666,[email protected]:26656,[email protected]:42656,[email protected]:26656,[email protected]:27656,[email protected]:26656,[email protected]:26656,[email protected]:35656,[email protected]:3240,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:29151,[email protected]:41992,[email protected]:20556,[email protected]:20556,[email protected]:28756,[email protected]:27086,[email protected]:20556,[email protected]:26656,[email protected]:33656,[email protected]:26666,[email protected]:26656,[email protected]:15658,[email protected]:20556"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.dymension/config/config.toml

Set Custom Ports / Optional

sed -i.bak -e "s%:1317%:${PORT_DYMENSION}317%g;
s%:8080%:${PORT_DYMENSION}080%g;
s%:9090%:${PORT_DYMENSION}090%g;
s%:9091%:${PORT_DYMENSION}091%g;
s%:8545%:${PORT_DYMENSION}545%g;
s%:8546%:${PORT_DYMENSION}546%g;
s%:6065%:${PORT_DYMENSION}065%g" $HOME/.dymension/config/app.toml

sed -i.bak -e "s%:26658%:${PORT_DYMENSION}658%g;
s%:26657%:${PORT_DYMENSION}657%g;
s%:6060%:${PORT_DYMENSION}060%g;
s%:26656%:${PORT_DYMENSION}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${PORT_DYMENSION}656\"%;
s%:26660%:${PORT_DYMENSION}660%g" $HOME/.dymension/config/config.toml

Config Pruning / Optional

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.dymension/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.dymension/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"20\"/" $HOME/.dymension/config/app.toml

Set Minimum Gas Price / Optional

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "5000000000adym"|g' $HOME/.dymension/config/app.toml

Disable Indexing / Optional

INDEXER="null"
sed -i -e "s/^indexer *=.*/indexer = \"$INDEXER\"/" $HOME/.dymension/config/config.toml

Disable Snapshots / Optional

SNAPSHOT_INTERVAL=0
sed -i.bak -e "s/^snapshot-interval *=.*/snapshot-interval = \"$SNAPSHOT_INTERVAL\"/" ~/.dymension/config/app.toml

Create Service File

sudo tee /etc/systemd/system/dymd.service > /dev/null <<EOF
[Unit]
Description=dymension testnet node
After=network-online.target

[Service]
User=$USER
WorkingDirectory=$HOME/.dymension
ExecStart=$(which dymd) start
Restart=on-failure
RestartSec=5
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Download Snapshot / Optional

dymd tendermint unsafe-reset-all --home $HOME/.dymension
curl https://download.dteam.tech/dymension/testnet/pruned/latest-snapshot | lz4 -dc - | tar -xf - -C $HOME/.dymension

Enable and Start Service

sudo systemctl daemon-reload
sudo systemctl enable dymd
sudo systemctl restart dymd
sudo journalctl -u dymd -f -o cat