Dymension is a blockchain powering the Internet of RollApps. It is a Layer-1 blockchain built to support Modular Rollapps natively with its own RaaS and rollup framework.
dymd keys add
dymd keys add --recover
dymd keys list
dymd keys delete
dymd keys export
dymd keys import .backup
dymd q bank balances $(dymd keys show -a)
sudo journalctl -u dymd -f --no-hostname -o cat
sudo systemctl start dymd
sudo systemctl stop dymd
sudo systemctl restart dymd
sudo systemctl status dymd
sudo systemctl daemon-reload
sudo systemctl enable dymd
sudo systemctl disable dymd
dymd status 2>&1 | jq .SyncInfo
echo $(dymd tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.dymension/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
curl -sS http://localhost:657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
dymd tx staking create-validator \
--amount=000000000000000000adym \
--moniker="" \
--pubkey=$(dymd tendermint show-validator) \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=dymension_1100-1 \
--commission-rate=0. \
--commission-max-rate=0.20 \
--commission-max-change-rate=0. \
--min-self-delegation=1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"
dymd tx staking edit-validator \
--new-moniker="" \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym" -ydymd tx staking edit-validator \
--identity="" \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--details="" \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--commission-rate=0. \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--new-moniker="" \
--identity="" \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--new-moniker="" \
--details="" \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--new-moniker="" \
--commission-rate=0. \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--identity="" \
--details="" \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--identity="" \
--commission-rate=0. \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--details="" \
--commission-rate=0. \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--new-moniker="" \
--identity="" \
--commission-rate=0. \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--new-moniker="" \
--details="" \
--commission-rate=0. \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--identity="" \
--details="" \
--commission-rate=0. \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--commission-rate=0. \
--chain-id=dymension_1100-1 \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"dymd tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=dymension_1100-1 \
--commission-rate=0. \
--from= \
--gas="1000000" \
--gas-prices="30000000000adym"
dymd status 2>&1 | jq .ValidatorInfo
dymd q staking validator $(dymd keys show --bech val -a)
dymd q slashing signing-info $(dymd tendermint show-validator)
dymd tx slashing unjail --broadcast-mode=block --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
dymd q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
[[ $(dymd q staking validator $(dymd keys show --bech val -a) -oj | jq -r .consensus_pubkey.key) = $(dymd status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
dymd q slashing signing-info $(dymd tendermint show-validator)
dymd tx distribution withdraw-all-rewards --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
dymd tx distribution withdraw-rewards $(dymd keys show --bech val -a) --commission --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
dymd tx staking delegate $(dymd keys show --bech val -a) 000000000000000000adym --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
dymd tx staking redelegate $(dymd keys show --bech val -a) 000000000000000000adym --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
dymd tx staking delegate 000000000000000000adym --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
dymd tx staking unbond $(dymd keys show --bech val -a) 000000000000000000adym --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
dymd tx bank send 000000000000000000adym --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
dymd query gov proposal
dymd tx gov vote --from --chain-id dymension_1100-1 --gas="1000000" --gas-prices="30000000000adym"
CUSTOM_PORT=
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%" $HOME/.dymension/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%; s%^address = \"127.0.0.1:8545\"%address = \"0.0.0.0:${CUSTOM_PORT}545\"%; s%^ws-address = \"127.0.0.1:8546\"%ws-address = \"0.0.0.0:${CUSTOM_PORT}546\"%" $HOME/.dymension/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.dymension/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.dymension/config/config.toml
dymd tendermint unsafe-reset-all --home $HOME/.dymension --keep-addr-book
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 $(which dymd)
wget -O $HOME/.dymension/config/genesis.json "https://github.com/dymensionxyz/networks/raw/main/mainnet/dymension/genesis.json"
wget -O $HOME/.dymension/config/addrbook.json "https://snapshots.kynraze.com/file/dymension/addrbook.json"
PEERS=
sed -i -e "s|^persistent_peers *=.*|persistent_peers = "$PEERS"|" $HOME/.dymension/config/config.toml
Coming Soon
DYMENSION
_NODENAME="
"
echo "export
DYMENSION_NODENAME=$DYMENSION_NODENAME" >> $HOME/.bash_profile
if [ ! $WALLET ]; then
echo "export WALLET=wallet" >> $HOME/.bash_profile
fi
echo "export
DYMENSION_CHAIN_ID=dymension_1100-1" >> $HOME/.bash_profile
source $HOME/.bash_profile
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y
ver="
1.20"
cd $HOME
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" >> ~/.bash_profile
source ~/.bash_profile
go version
git clone https://github.com/dymensionxyz/dymension.git cd dymension git checkout v3.0.0 make install
dymd version
--long
CUSTOM_PORT=
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}660\"%"
$HOME/.dymension/config/config.tomlsed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}317\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}091\"%
; s%^address = \"127.0.0.1:8545\"%address = \"0.0.0.0:${CUSTOM_PORT}545\"%; s%^ws-address = \"127.0.0.1:8546\"%ws-address = \"0.0.0.0:${CUSTOM_PORT}546\"%
"
$HOME/.dymension/config/app.toml
dymd config chain-id $DYMENSION_CHAIN_ID dymd config keyring-backend file dymd config node tcp://localhost:657
dymd init $DYMENSION_NODENAME
--chain-id
$DYMENSION_CHAIN_ID
wget -O $HOME/.dymension/config/genesis.json "https://github.com/dymensionxyz/networks/raw/main/mainnet/dymension/genesis.json"
wget -O $HOME/.dymension/config/addrbook.json "https://snapshots.kynraze.com/file/dymension/addrbook.json"
PEERS="
"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/
.dymension/config/config.tomlsed -i -e "s|^seeds *=.*|seeds = \"
\"|" $HOME/
.dymension/config/config.toml
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/
.dymension/config/app.tomlsed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/
.dymension/config/app.tomlsed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/
.dymension/config/app.tomlsed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/
.dymension/config/app.toml
sudo tee /etc/systemd/system/
dymd.service > /dev/null << EOF
[Unit]
Description=
dymdAfter=network-online.target
[Service]
User=$USER
ExecStart=$(which
dymd)start --home $HOME/
.dymensionRestart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
curl -o - -L
https://snapshots.kynraze.com/dymension/snapshot-latest.tar.lz4| lz4 -c -d - | tar -x -C $HOME/
.dymension
sudo systemctl daemon-reload
sudo systemctl enable
dymdsudo systemctl restart
dymdsudo journalctl -fu
dymd-o cat
# Update & install lz4(Required)
sudo apt install snapd lz4 -y
# Reset Chain Data
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.dymension/config/config.toml
sudo systemctl stop dymd
cp $HOME/.dymension/data/priv_validator_state.json $HOME/.dymension/priv_validator_state.json.backup
rm -rf $HOME/.dymension/data
# Download Data Snapshot
curl -o - -L https://snapshots.kynraze.com/dymension/snapshot-latest.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.dymension
mv $HOME/.dymension/priv_validator_state.json.backup $HOME/.dymension/data/priv_validator_state.json
# Restart
sudo systemctl restart dymd
sudo journalctl -fu dymd -o cat
systemctl stop dymd
dymd tendermint unsafe-reset-all --home $HOME/.dymension --keep-addr-book
STATE_SYNC_RPC=""
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height) \
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000)) \
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $SYNC_BLOCK_HEIGHT $SYNC_BLOCK_HASH
PEERS=""
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.dymension/config/config.toml
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.dymension/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
$HOME/.dymension/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
$HOME/.dymension/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
$HOME/.dymension/config/config.toml
systemctl restart dymd && journalctl -fu dymd -o cat