DiscoverMyself / Dymension-Testnet

0 stars 1 forks source link

Dymension testnet

Hardware requirements

Installation

Automatic Instalation:

wget -O dym.sh https://raw.githubusercontent.com/DiscoverMyself/Dymension-Testnet/main/dym.sh && chmod +x dym.sh && ./dym.sh

Manual Instalation

Dymension Official Docs

Configurations

Wallet Configuration

Add new wallet

dymd keys add $WALLET

Recover wallet

dymd keys add $WALLET --recover

Wallet list

dymd keys list

Check Balance

dymd query bank balances $(dymd keys show wallet -a)

Delete Wallet

dymd keys delete $WALLET

Validator Configuration

Create Validator

dymd tx staking create-validator \
    --amount=500000000000$DENOM \
    --pubkey=$(dymd tendermint show-validator) \
    --moniker="$NODENAME" \
    --chain-id=$CHAIN \
    --from=$WALLET \
    --commission-rate="0.10" \
    --commission-max-rate="0.20" \
    --commission-max-change-rate="0.01" \
    --min-self-delegation="1"

Check Validator address

dymd keys show wallet --bech val -a

Edit Validator

dymd tx staking edit-validator \
  --moniker=$NODENAME \
  --identity=<your_keybase_id> \
  --website="<your_website>" \
  --details="<your_validator_description>" \
  --chain-id=$CHAIN \
  --from=$WALLET

Delegate to Validator

dymd tx staking delegate $(dymd tendermint show-validator) 1000000udym --from $WALLET --chain-id $DYM_CHAIN_ID --fees 5000udym

Unjail Validator

dymd tx slashing unjail \
  --broadcast-mode=block \
  --from=$WALLET \
  --chain-id=$CHAIN \
  --gas=auto --gas-adjustment 1.4

Useful Commands

  1. Synchronization info

dymd status 2>&1 | jq .SyncInfo

  1. Validator Info

dymd status 2>&1 | jq .ValidatorInfo

  1. Node Info

dymd status 2>&1 | jq .NodeInfo

  1. Show Node ID

dymd tendermint show-node-id

  1. Delete Node
systemctl stop dymd
systemctl disable dymd
rm -rvf .dymension
rm -rvf dym.sh
rm -rvf dymension
rm -rf ${which dymd}