Visit our website Join our discord Visit our website
Deploy your VPS using our referral link to get 20€ bonus
Official documentation:
Explorer:
Here are the minimal hardware configs required for running a validator/sentry node
- 4 vCPU
- 8 GB RAM
- 200 GB Disk space
To set up monitoring for your validator node navigate to Set up monitoring and alerting for coho validator
You can setup your coho fullnode in few minutes by using automated script below. It will prompt you to input your validator node name!
wget -O coho_testnet.sh https://raw.githubusercontent.com/kj89/testnet_manuals/main/coho/coho_testnet.sh && chmod +x coho_testnet.sh && ./coho_testnet.sh
You can follow manual guide if you better prefer setting up node manually
When installation is finished please load variables into system
source $HOME/.bash_profile
Next you have to make sure your validator is syncing blocks. You can use command below to check synchronization status
cohod status 2>&1 | jq .SyncInfo
To check logs
journalctl -u cohod -f -o cat
To create new wallet you can use command below. Don’t forget to save the mnemonic
cohod keys add $WALLET
(OPTIONAL) To recover your wallet using seed phrase
cohod keys add $WALLET --recover
To get current list of wallets
cohod keys list
Add wallet address
WALLET_ADDRESS=$(cohod keys show $WALLET -a)
Add valoper address
VALOPER_ADDRESS=$(cohod keys show $WALLET --bech val -a)
Load variables into system
echo 'export WALLET_ADDRESS='${WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export VALOPER_ADDRESS='${VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile
To get 20 free tokens in defund-private-1 testnet:
- navigate to https://bitszn.com/faucets.html
- switch to
COSMOS
tab and selectCosmic Horizon Testnet
- input your wallet address and click
Request
Before creating validator please make sure that you have at least 1 coho (1 coho is equal to 1000000 ucoho) and your node is synchronized
To check your wallet balance:
cohod query bank balances $WALLET_ADDRESS
If your wallet does not show any balance than probably your node is still syncing. Please wait until it finish to synchronize and then continue
To create your validator run command below
cohod tx staking create-validator \
--amount 1000000ucoho \
--from $WALLET \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.2" \
--commission-rate "0.07" \
--min-self-delegation "1" \
--pubkey $(cohod tendermint show-validator) \
--moniker $NODENAME \
--chain-id $CHAIN_ID
To protect you keys please make sure you follow basic security rules
Good tutorial on how to set up ssh keys for authentication to your server can be found here
Start by checking the status of ufw.
sudo ufw status
Sets the default to allow outgoing connections, deny all incoming except ssh and 26656. Limit SSH login attempts
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh/tcp
sudo ufw limit ssh/tcp
sudo ufw allow 26656,26660/tcp
sudo ufw enable
To monitor and get alerted about your validator health status you can use my guide on Set up monitoring and alerting for coho validator
Check logs
journalctl -fu cohod -o cat
Start service
systemctl start cohod
Stop service
systemctl stop cohod
Restart service
systemctl restart cohod
Synchronization info
cohod status 2>&1 | jq .SyncInfo
Validator info
cohod status 2>&1 | jq .ValidatorInfo
Node info
cohod status 2>&1 | jq .NodeInfo
Show node id
cohod tendermint show-node-id
List of wallets
cohod keys list
Recover wallet
cohod keys add $WALLET --recover
Delete wallet
cohod keys delete $WALLET
Get wallet balance
cohod query bank balances $WALLET_ADDRESS
Transfer funds
cohod tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 10000000ucoho
Delegate stake
cohod tx staking delegate $VALOPER_ADDRESS 10000000ucoho --from=$WALLET --chain-id=$CHAIN_ID --gas=auto
Redelegate stake from validator to another validator
cohod tx staking redelegate <srcValidatorAddress> <destValidatorAddress> 10000000ucoho --from=$WALLET --chain-id=$CHAIN_ID --gas=auto
Withdraw all rewards
cohod tx distribution withdraw-all-rewards --from=$WALLET --chain-id=$CHAIN_ID --gas=auto
Withdraw rewards with commision
cohod tx distribution withdraw-rewards $VALOPER_ADDRESS --from=$WALLET --commission --chain-id=$CHAIN_ID
Edit validator
cohod tx staking edit-validator \
--moniker=$NODENAME \
--identity=<your_keybase_id> \
--website="<your_website>" \
--details="<your_validator_description>" \
--chain-id=$CHAIN_ID \
--from=$WALLET
Unjail validator
cohod tx slashing unjail \
--broadcast-mode=block \
--from=$WALLET \
--chain-id=$CHAIN_ID \
--gas=auto
This commands will completely remove node from server. Use at your own risk!
systemctl stop cohod
systemctl disable cohod
rm /etc/systemd/system/coho* -rf
rm $(which cohod) -rf
rm $HOME/.coho* -rf
rm $HOME/coho -rf