Chain ID: dungeon-1 Block Height: Loading...
RPC Status:

Network Overview

Dungeon Chain

Dungeon Games is an online play‑to‑earn Web3 RPG platform featuring titles like Kosmic Quest, where players engage in blockchain‑integrated gameplay, earn DAO tokens, access decentralized governance, and explore NFT collections

https://rpc-dungeon.sychonix.com

https://api-dungeon.sychonix.com

Installation

  • Install Dependencies
sudo apt update && sudo apt upgrade -y
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 aria2 -y
  • Install Go
VER="1.21.6"
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go$VER.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
  • Install Binary
cd $HOME
rm -rf dungeonchain 
git clone https://github.com/Crypto-Dungeon/dungeonchain.git
cd dungeonchain
git checkout v5.0.0
make install
  • Initialize The Node
dungeond init $MONIKER --chain-id dungeon-1
sed -i -e "s|^keyring-backend *=.*|keyring-backend = \"os\"|" $HOME/.dungeonchain/config/client.toml
sed -i -e "s|^chain-id *=.*|chain-id = \"dungeon-1\"|" $HOME/.dungeonchain/config/client.toml
sed -i -e "s|^node *=.*|node = \"tcp://localhost:11457\"|" $HOME/.dungeonchain/config/client.toml
  • Download Genesis & Addrbook
curl -L https://snapshot.sychonix.com/mainnet/dungeon/genesis.json > $HOME/.dungeonchain/config/genesis.json
curl -L https://snapshot.sychonix.com/mainnet/dungeon/addrbook.json > $HOME/.dungeonchain/config/addrbook.json
  • Configure Seeds and Peers
SEEDS="fcce5929b590511d992b17deffb516161ea04d58@dungeon-mainnet.sychonix.com:11456"
PEERS="$(curl -sS https://rpc-dungeon.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^seeds *=.*|seeds = '"$SEEDS"'|; s|^persistent_peers *=.*|persistent_peers = '"$PEERS"'|" $HOME/.dungeonchain/config/config.toml
  • Update Port Configuration
sed -i -e "s%:1317%:11417%; s%:8080%:11480%; s%:9090%:11490%; s%:9091%:11491%; s%:8545%:11445%; s%:8546%:11446%; s%:6065%:11465%" $HOME/.dungeonchain/config/app.toml
sed -i -e "s%:26658%:11458%; s%:26657%:11457%; s%:6060%:11460%; s%:26656%:11456%; s%:26660%:11461%" $HOME/.dungeonchain/config/config.toml
  • Customize Pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
  $HOME/.dungeonchain/config/app.toml
  • Set Minimum Gas Price, Enable Prometheus, and Disable the Indexer
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.05udgn\"|" $HOME/.dungeonchain/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.dungeonchain/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.dungeonchain/config/config.toml
  • Create Service File
sudo tee /etc/systemd/system/dungeond.service > /dev/null <<EOF
[Unit]
Description=dungeon node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which dungeond) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
  • Download Current Snapshot
curl "https://snapshot.sychonix.com/mainnet/dungeon/dungeon-snapshot.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.dungeonchain"
  • Enable the Service and Start the Node
sudo systemctl daemon-reload
sudo systemctl enable dungeond.service
sudo systemctl restart dungeond.service && sudo journalctl -u dungeond.service -f --no-hostname -o cat
  • Create Validator
dungeond tendermint show-validator
sudo nano $HOME/.dungeonchain/validator.json
  • Create validator.json file

{
  "pubkey": {"#pubkey"},
  "amount": "100000000udgn", 
  "moniker": "", 
  "identity": "",
  "website": "",
  "security": "", 
  "details": "", 
  "commission-rate": "0.05",
  "commission-max-rate": "0.2",
  "commission-max-change-rate": "0.05",
  "min-self-delegation": "1"
}
dungeond tx staking create-validator $HOME/.dungeonchain/validator.json \
--from wallet \
--chain-id dungeon-1 \
--gas-prices=0.01udgn \
--gas-adjustment=1.5 \
--gas=auto

Upgrade

No chain upgrades scheduled yet.

Peers

PEERS="$(curl -sS https://rpc-dungeon.sychonix.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.dungeonchain/config/config.toml

Snapshot

Height: Loading... | Last updated: Loading... | Size: Loading...
  • Install dependencies, if needed
sudo apt update && sudo apt install aria2
  • Stop Service
sudo systemctl stop dungeond
  • Back up priv_validator_state.json
cp $HOME/.dungeonchain/data/priv_validator_state.json $HOME/.dungeonchain/priv_validator_state.json.backup
  • Reset the data
dungeond tendermint unsafe-reset-all --home $HOME/.dungeonchain --keep-addr-book
  • Download Snapshot
aria2c -x 16 -s 16 -o dungeon-snapshot.tar.lz4 https://snapshot.sychonix.com/mainnet/dungeon/dungeon-snapshot.tar.lz4
lz4 -dc dungeon-snapshot.tar.lz4 | tar -xf - -C $HOME/.dungeonchain
rm -v dungeon-snapshot.tar.lz4
  • Restore Backup and Restart Service
mv $HOME/.dungeonchain/priv_validator_state.json.backup $HOME/.dungeonchain/data/priv_validator_state.json
sudo systemctl restart dungeond && sudo journalctl -u dungeond -f -o cat

Addrbook

curl -L https://snapshot.sychonix.com/mainnet/dungeon/addrbook.json > $HOME/.dungeonchain/config/addrbook.json

Genesis

curl -L https://snapshot.sychonix.com/mainnet/dungeon/genesis.json > $HOME/.dungeonchain/config/genesis.json

API

https://api-dungeon.sychonix.com

RPC

https://rpc-dungeon.sychonix.com

CLI Cheatsheet

Wallet Management

dungeond keys add 

dungeond keys add  --recover

dungeond keys list 

dungeond keys delete 

dungeond keys export 

dungeond keys import .backup

dungeond q bank balances $(dungeond keys show  -a)

Validator Management

Moniker

Identity

Details

Website

Security Contact

Amount

dungeond tx staking create-validator \
--amount=1000000udgn \
--pubkey=$(dungeond tendermint show-validator) \
--moniker="" \
--identity="" \
--details="" \
--website="" \
--security-contact= \
--chain-id=dungeon-1 \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--gas-prices 0.05udgn \
--gas "auto" \
--gas-adjustment "1.5" \
--from wallet \
-y

dungeond tx staking edit-validator \
--new-moniker="" \
--identity="" \
--details="" \
--website="" \
--chain-id=dungeon-1 \
--commission-rate=0.07 \
--from wallet \
--gas=auto \
--gas-prices 0.05udgn \
-y

dungeond tx slashing unjail --from wallet --chain-id dungeon-1 --gas auto --gas-adjustment 1.5  

dungeond query slashing signing-info $(dungeond tendermint show-validator)

dungeond q staking validator $(dungeond keys show wallet --bech val -a)

dungeond q bank denom-metadata -oj | jq

dungeond status 2>&1 | jq -r '.SyncInfo.catching_up // .sync_info.catching_up'

dungeond status 2>&1 | jq -r '.SyncInfo.latest_block_height // .sync_info.latest_block_height'

Token Management

dungeond tx distribution withdraw-all-rewards --from wallet --chain-id dungeon-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.05udgn -y 

dungeond tx distribution withdraw-rewards $(dungeond keys show wallet --bech val -a) --commission --from wallet --chain-id dungeon-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.05udgn -y 

dungeond tx staking delegate $(dungeond keys show wallet --bech val -a) 1000000udgn --from wallet --chain-id dungeon-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.05udgn -y 

dungeond tx staking redelegate $(dungeond keys show wallet --bech val -a)  1000000udgn --from wallet --chain-id dungeon-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.05udgn -y

dungeond tx staking delegate  1000000udgn --from  --chain-id dungeon-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.05udgn -y 

dungeond tx staking unbond $(dungeond keys show wallet --bech val -a) 1000000udgn --from wallet --chain-id dungeon-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.05udgn -y

dungeond tx bank send wallet  1000000udgn --from wallet --chain-id dungeon-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.05udgn -y

Service Management

sudo systemctl daemon-reload

sudo systemctl enable dungeond

sudo systemctl disable dungeond

sudo systemctl start dungeond

sudo systemctl stop dungeond

sudo systemctl restart dungeond

sudo systemctl status dungeond

sudo journalctl -u dungeond -f --no-hostname -o cat

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