Chain ID: union-1 | Node Version: v1.2.2
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export UNION_CHAIN_ID="union-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
uniond keys add wallet
Recovery Wallet
uniond keys add wallet --recover
List All Wallet
uniond keys list
Delete Wallet
uniond keys delete wallet
Check Wallet Balance
uniond q bank balances $(uniond keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
uniond tx staking create-validator \
--amount=1000000000000000000au \
--pubkey=$(uniond tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$UNION_CHAIN_ID \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=100000000au
Edit Validator
uniond tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$UNION_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=100000000au
Check Jailed Reason
uniond query slashing signing-info $(uniond tendermint show-validator)
Unjail Validator
uniond tx slashing unjail --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
Token
Withdraw Rewards
uniond tx distribution withdraw-all-rewards --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
Withdraw Rewards with Comission
uniond tx distribution withdraw-rewards $(uniond keys show wallet --bech val -a) --commission --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
Delegate Tokens to Your Validator
uniond tx staking delegate $(uniond keys show wallet --bech val -a) 1000000000000000000au --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
Redelegate Tokens to Another Validator
uniond tx staking redelegate $(uniond keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000au --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
Unbond Tokens from Your Validator
uniond tx staking unbond $(uniond keys show wallet --bech val -a) 1000000000000000000au --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
Send Tokens to Any Wallet
uniond tx bank send wallet <TO_WALLET_ADDRESS> 1000000000000000000au --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable uniond
Disable Service
sudo systemctl disable uniond
Start Service
sudo systemctl start uniond
Stop Service
sudo systemctl stop uniond
Restart Service
sudo systemctl restart uniond
Check Service Status
sudo systemctl status uniond
Check Service Logs
sudo journalctl -u uniond -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
uniond tx gov vote 1 yes --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
List all Proposals
uniond query gov proposals
Check Vote
uniond tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $UNION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 100000000au -y
Create new Proposal
uniond tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000unil \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=100000000au \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.union/config/config.toml
Get Validator Info
uniond status 2>&1 | jq .ValidatorInfo
Get Denom Info
uniond q bank denom-metadata -oj | jq
Get Sync Status
uniond status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
uniond status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(uniond tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.union/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Set Minimum Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"100000000au\"/" $HOME/.union/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.union/config/config.toml
Reset Chain Data
uniond tendermint unsafe-reset-all --home $HOME/.union --keep-addr-book
Delete
WARNING!!! Please, before you advance to the following step! The entire chain data will be gone! Make sure you have a backup of your priv_validator_key.json!
Delete Node
sudo systemctl stop uniond && sudo systemctl disable uniond && sudo rm /etc/systemd/system/uniond.service && sudo systemctl daemon-reload && sudo rm -rf $(which uniond) && rm -rf $HOME/.union