# Install Go (one command)ver="1.20.1"&&\wget"https://golang.org/dl/go$ver.linux-amd64.tar.gz"&&\sudorm-rf/usr/local/go&&\sudotar-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&&\goversion# go version go1.20.1 linux/amd64
# Set the variables# Come up with the name of your node and replace it instead <your_moniker>MONIKER_DYMENSION=<your_moniker>echo'export MONIKER_DYMENSION='$MONIKER_DYMENSION >> $HOME/.bash_profileecho"export CHAIN_ID_DYMENSION=35-C">> $HOME/.bash_profileecho"export PORT_DYMENSION=35">> $HOME/.bash_profilesource $HOME/.bash_profile# check whether the last command was executed
Setup config
(OPTIONAL) Turn off indexing in config.toml
Cosmovisor
Now all ok, Check status
Wallets
Create a password for the wallet and write it down so you don't forget it. The wallet has been created. In the last line there will be a phrase that must be written down
Go to the # faucet branch and request tokens
Validator
Do not forget to create a profile on https://keybase.io/ and set a profile photo there that will be imported by key and used for your validators.
Check yourself in the list explorer
Or by command
!!! Save priv_validator_key.json which located in /root/.dymension/config
# correct config (so we can no longer use the chain-id flag for every CLI command in client.toml)
dymd config chain-id 35-C
# adjust if necessary keyring-backend в client.toml
dymd config keyring-backend os
dymd config node tcp://localhost:${PORT_DYMENSION}657
# Set the minimum price for gas
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.025udym\"/;" ~/.dymension/config/app.toml
# Add seeds/peers в config.toml
peers="ebc272824924ea1a27ea3183dd0b9ba713494f83@dymension-testnet-peer.autostake.net:27086,9111fd409e5521470b9b33a46009f5e53c646a0d@178.62.81.245:45656,f8a0d7c7db90c53a989e2341746b88433f47f980@209.182.238.30:30657,1bffcd1690806b5796415ff72f02157ce048bcdd@144.76.67.53:2580,c17a4bcba59a0cbb10b91cd2cee0940c610d26ee@95.217.144.107:20556,e6ea3444ac85302c336000ac036f4d86b97b3d3e@38.146.3.199:20556,b473a649e58b49bc62b557e94d35a2c8c0ee9375@95.214.53.46:36656,db0264c412618949ce3a63cb07328d027e433372@146.19.24.101:26646,281190aa44ca82fb47afe60ba1a8902bae469b2a@dymension.peers.stavr.tech:17806,d8b1bcfc123e63b24d0ebf86ab674a0fc5cb3b06@51.159.97.212:26656,55f233c7c4bea21a47d266921ca5fce657f3adf7@168.119.240.200:26656,139340424dddf85e54e0a54179d06875013e1e39@65.109.87.88:24656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.dymension/config/config.toml
seeds="f97a75fb69d3a5fe893dca7c8d238ccc0bd66a8f@dymension-testnet.seed.brocha.in:30584"
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.dymension/config/config.toml
# Set up filter for "bad" peers
sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $HOME/.dymension/config/config.toml
#
sed -i -e "s/^timeout_commit *=.*/timeout_commit = \"10s\"/" $HOME/.dymension/config/config.toml
sed -i -e "s/^timeout_propose *=.*/timeout_propose = \"10s\"/" $HOME/.dymension/config/config.toml
sed -i -e "s/^create_empty_blocks_interval *=.*/create_empty_blocks_interval = \"10s\"/" $HOME/.dymension/config/config.toml
sed -i 's/create_empty_blocks = .*/create_empty_blocks = true/g' ~/.dymension/config/config.toml
sed -i 's/timeout_broadcast_tx_commit = ".*s"/timeout_broadcast_tx_commit = "10s"/g' ~/.dymension/config/config.tom
# Set up pruning
pruning="custom"
pruning_keep_recent="1000"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.dymension/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.dymension/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.dymension/config/app.toml
indexer="null"
sed -i -e "s/^indexer *=.*/indexer = \"$indexer\"/" $HOME/.dymension/config/config.toml
# Install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
# Check the logs again
journalctl -u dymd -f -o cat
# Escape from logs ctrl+c
dymd status 2>&1 | jq "{catching_up: .SyncInfo.catching_up}"
"catching_up": false means that the node is synchronized, we are waiting for complete synchronization
# Create wallet
dymd keys add wallet
# If the wallet was already there, restore it
dymd keys add wallet --recover
# Insert the seed phrase from your wallet
# If everything is correct, you will see your wallet data
# Save the wallet address
# Replace <your_address> with your wallet address
WALLET_DYMENSION=<your_address>
echo "export WALLET_DYMENSION="${WALLET_DYMENSION}"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Check the ballance
dymd q bank balances $WALLET_DYMENSION
# Save valoper_address in bash
# Change <your_valoper_address> to the address of the validator, starting with dymdvaloper...
VALOPER_DYMENSION=<your_valoper_address>
echo "export VALOPER_DYMENSION="${VALOPER_DYMENSION}"" >> $HOME/.bash_profile
source $HOME/.bash_profile