Command
Wallet:
Add New Wallet:
uniond keys add wallet
Restore executing wallet:
uniond keys add wallet --recover
List All Wallets:
uniond keys list
Delete wallet:
uniond keys delete wallet
Check Balance:
uniond q bank balances $(uniond keys show wallet -a)
Validator:
Create Validator:
export PRIV_KEY=$(jq -r '.priv_key.value' ~/.union/config/priv_validator_key.json)
export POSSESSION_PROOF=$(uniond prove-possession "$PRIV_KEY")
uniond tx union-staking create-union-validator <(cat <<EOF
{
"pubkey": $(uniond tendermint show-validator),
"amount": "1000000000000000000au",
"moniker": "Node39-Guide",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security-contact": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) "$POSSESSION_PROOF" \
--from wallet \
--chain-id union-1 \
--fees 100000000000000au \
--gas 300000 \
--gas-adjustment 1.5 \
-y
Check sync | False -> done.
uniond status 2>&1 | jq .SyncInfo.catching_up
Delegate:
uniond tx staking delegate $(uniond keys show wallet --bech val -a) 1000000000000000000au \
--from wallet \
--chain-id union-1 \
--fees 100000000000000au \
--gas 300000 \
--gas-adjustment 1.2 \
--node=https://union-rpc.node39.top:443 \
-y
Withdraw rewards and commission:
uniond tx distribution withdraw-rewards $(uniond keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id union-1 \
--fees 100000000000000au \
--gas 300000 \
--gas-adjustment 1.2 \
--node=https://union-rpc.node39.top:443 \
-y
Unjail:
uniond tx slashing unjail \
--from wallet \
--chain-id union-1 \
--fees 100000000000000au \
--gas 300000 \
--gas-adjustment 1.2 \
--node=https://union-rpc.node39.top:443 \
-y
Unbond:
uniond tx staking unbond $(uniond keys show wallet --bech val -a) 1000000000000000000au \
--from wallet \
--chain-id union-1 \
--fees 100000000000000au \
--gas 300000 \
--gas-adjustment 1.2 \
--node=https://union-rpc.node39.top:443 \
-y
Vote:
uniond tx gov vote proposal_id yes \
--from wallet \
--chain-id union-1 \
--fees 100000000000000au \
--gas 300000 \
--gas-adjustment 1.2 \
--node=https://rpc.union.build:443 \
-y
System:
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 -fo cat