Installation
Install Dependencies
sudo apt update && sudo apt upgrade -y && sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
Go Version
cd $HOME
sudo rm -rf /usr/local/go
VER="1.26.5"
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
mkdir -p ~/go/bin
go version
Install Binary
cd $HOME
mkdir -p ~/go/bin
wget https://github.com/dasgrid/mucoin/releases/download/rewards-v0.8.0/mucoind-linux-amd64 -O mucoind
chmod +x mucoind
mv mucoind ~/go/bin/
Initialize Node
mucoind init "Your_Validator_Name" --chain-id mucoin-1 --home $HOME/.mucoind
Download Genesis and Addrbook
wget -O $HOME/.mucoind/config/genesis.json https://backup.codeblocklabs.com/mucoin/genesis.json
wget -O $HOME/.mucoind/config/addrbook.json https://backup.codeblocklabs.com/mucoin/addrbook.json
Configure Pruning
pruning="custom"
pruning_keep_recent="500"
pruning_keep_every="0"
pruning_interval="20"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.mucoind/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.mucoind/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.mucoind/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.mucoind/config/app.toml
Set Minimum Gas Price
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.0025umuc"|g' $HOME/.mucoind/config/app.toml
Configure Indexer
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.mucoind/config/config.toml
Create Service
sudo tee /etc/systemd/system/mucoind.service > /dev/null <<EOF
[Unit]
Description=MuCoin node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.mucoind
ExecStart=$(which mucoind) start --home $HOME/.mucoind
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
mkdir -p $HOME/.mucoind/cosmovisor/genesis/bin
mv $HOME/go/bin/mucoind $HOME/.mucoind/cosmovisor/genesis/bin/
sudo ln -s $HOME/.mucoind/cosmovisor/genesis $HOME/.mucoind/cosmovisor/current -f
sudo ln -s $HOME/.mucoind/cosmovisor/current/bin/mucoind /usr/local/bin/mucoind -f
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
sudo tee /etc/systemd/system/mucoind.service > /dev/null <<EOF
[Unit]
Description=MuCoin node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start --home $HOME/.mucoind
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.mucoind"
Environment="DAEMON_NAME=mucoind"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
EOF
Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable mucoind
sudo systemctl restart mucoind && sudo journalctl -u mucoind -f
Create Wallet
# Create new wallet
mucoind keys add wallet --home $HOME/.mucoind
# Restore existing wallet
mucoind keys add wallet --recover --home $HOME/.mucoind
# Check sync status (false = fully synced)
mucoind status --home $HOME/.mucoind 2>&1 | jq .sync_info
Create Validator
Create validator.json
tee $HOME/validator.json > /dev/null <<EOF
{
"pubkey": $(mucoind comet show-validator),
"amount": "1000000umuc",
"moniker": "CodeBlockLabs",
"identity": "E1ADDC27DCE641C2",
"website": "https://codeblocklabs.com",
"details": "Join Our Community on Telegram @CodeBlockLabs",
"commission-rate": "0.05",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.1",
"min-self-delegation": "1"
}
EOF
Create Validator
mucoind tx staking create-validator $HOME/validator.json --from wallet --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Delete Node
sudo systemctl stop mucoind
sudo systemctl disable mucoind
sudo rm -rf /etc/systemd/system/mucoind.service
sudo rm $(which mucoind)
sudo rm -rf $HOME/.mucoind
Service Operations
Check logs
sudo journalctl -u mucoind -f
Sync info
mucoind status --home $HOME/.mucoind 2>&1 | jq .sync_info
Node info
mucoind status --home $HOME/.mucoind 2>&1 | jq .node_info
Your node peer
# CometBFT
echo $(mucoind comet show-node-id --home $HOME/.mucoind)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.mucoind/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
# Tendermint (legacy)
# echo $(mucoind tendermint show-node-id --home $HOME/.mucoind)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.mucoind/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key Management
Add New Wallet
mucoind keys add wallet --home $HOME/.mucoind
Restore existing wallet
mucoind keys add wallet --recover --home $HOME/.mucoind
List All Wallets
mucoind keys list --home $HOME/.mucoind
Delete wallet
mucoind keys delete wallet --home $HOME/.mucoind
Check Balance
mucoind q bank balances $(mucoind keys show wallet -a --home $HOME/.mucoind) --home $HOME/.mucoind
Export Key (save to wallet.backup)
mucoind keys export wallet --home $HOME/.mucoind
Export Key to EVM
mucoind keys export wallet --unarmored-hex --unsafe --home $HOME/.mucoind
Import Key (restore from wallet.backup)
mucoind keys import wallet wallet.backup --home $HOME/.mucoind
Tokens
Withdraw all rewards
mucoind tx distribution withdraw-all-rewards --from wallet --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Withdraw rewards and commission from your validator
mucoind tx distribution withdraw-rewards $(mucoind keys show wallet --bech val -a --home $HOME/.mucoind) --from wallet --commission --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Delegate to Yourself
mucoind tx staking delegate $(mucoind keys show wallet --bech val -a --home $HOME/.mucoind) 1000000umuc --from wallet --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Delegate to Other Validator
mucoind tx staking delegate <TO_VALOPER_ADDRESS> 1000000umuc --from wallet --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Redelegate Stake to Another Validator
mucoind tx staking redelegate $(mucoind keys show wallet --bech val -a --home $HOME/.mucoind) <TO_VALOPER_ADDRESS> 1000000umuc --from wallet --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Unbond
mucoind tx staking unbond $(mucoind keys show wallet --bech val -a --home $HOME/.mucoind) 1000000umuc --from wallet --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Transfer Funds
mucoind tx bank send $(mucoind keys show wallet -a --home $HOME/.mucoind) <TO_WALLET_ADDRESS> 1000000umuc --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Validator Operations
Edit Existing Validator
mucoind tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I am validator" \
--from wallet \
--chain-id mucoin-1 \
--home $HOME/.mucoind \
--gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc \
-y
Validator info
mucoind status --home $HOME/.mucoind 2>&1 | jq .validator_info
Validator Details
mucoind q staking validator $(mucoind keys show wallet --bech val -a --home $HOME/.mucoind) --home $HOME/.mucoind
Jailing info
# CometBFT
mucoind q slashing signing-info $(mucoind comet show-validator --home $HOME/.mucoind) --home $HOME/.mucoind# Tendermint (legacy)
# mucoind q slashing signing-info $(mucoind tendermint show-validator --home $HOME/.mucoind) --home $HOME/.mucoind
Slashing parameters
mucoind q slashing params --home $HOME/.mucoind
Unjail validator
mucoind tx slashing unjail --from wallet --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
Active Validators List
mucoind q staking validators -oj --limit=2000 --home $HOME/.mucoind | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
# CometBFT
[[ $(mucoind q staking validator $(mucoind keys show wallet --bech val -a --home $HOME/.mucoind) -oj --home $HOME/.mucoind | jq -r .consensus_pubkey.key) = $(mucoind status --home $HOME/.mucoind 2>&1 | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
# Tendermint (legacy)
# [[ $(mucoind q staking validator $(mucoind keys show wallet --bech val -a --home $HOME/.mucoind) -oj --home $HOME/.mucoind | jq -r .consensus_pubkey.key) = $(mucoind status --home $HOME/.mucoind 2>&1 | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
# CometBFT
mucoind q slashing signing-info $(mucoind comet show-validator --home $HOME/.mucoind) --home $HOME/.mucoind# Tendermint (legacy)
# mucoind q slashing signing-info $(mucoind tendermint show-validator --home $HOME/.mucoind) --home $HOME/.mucoind
Governance
Create New Text Proposal
mucoind tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000umuc \
--type Text \
--from wallet \
--home $HOME/.mucoind \
--gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc \
-y
Proposals List
mucoind query gov proposals --home $HOME/.mucoind
View proposal
mucoind query gov proposal 1 --home $HOME/.mucoind
Vote
mucoind tx gov vote 1 yes --from wallet --chain-id mucoin-1 --home $HOME/.mucoind --gas auto --gas-adjustment 1.5 --gas-prices 0.0025umuc -y
CodeBlockLabs