Chain ID: nillion-1 | Node Version: v0.2.5
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export NILLION_CHAIN_ID="nillion-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
nilchaind keys add wallet
Recovery Wallet
nilchaind keys add wallet --recover
List All Wallet
nilchaind keys list
Delete Wallet
nilchaind keys delete wallet
Check Wallet Balance
nilchaind q bank balances $(nilchaind keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
nilchaind tx staking create-validator \
--amount=1000000unil \
--pubkey=$(nilchaind tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$NILLION_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=0.025unil
Edit Validator
nilchaind tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$NILLION_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=0.025unil
Check Jailed Reason
nilchaind query slashing signing-info $(nilchaind tendermint show-validator)
Unjail Validator
nilchaind tx slashing unjail --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
Token
Withdraw Rewards
nilchaind tx distribution withdraw-all-rewards --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
Withdraw Rewards with Comission
nilchaind tx distribution withdraw-rewards $(nilchaind keys show wallet --bech val -a) --commission --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
Delegate Tokens to Your Validator
nilchaind tx staking delegate $(nilchaind keys show wallet --bech val -a) 1000000unil --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
Redelegate Tokens to Another Validator
nilchaind tx staking redelegate $(nilchaind keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000unil --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
Unbond Tokens from Your Validator
nilchaind tx staking unbond $(nilchaind keys show wallet --bech val -a) 1000000unil --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
Send Tokens to Any Wallet
nilchaind tx bank send wallet <TO_WALLET_ADDRESS> 1000000unil --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable nilchaind
Disable Service
sudo systemctl disable nilchaind
Start Service
sudo systemctl start nilchaind
Stop Service
sudo systemctl stop nilchaind
Restart Service
sudo systemctl restart nilchaind
Check Service Status
sudo systemctl status nilchaind
Check Service Logs
sudo journalctl -u nilchaind -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
nilchaind tx gov vote 1 yes --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
List all Proposals
nilchaind query gov proposals
Check Vote
nilchaind tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $NILLION_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025unil -y
Create new Proposal
nilchaind tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000unil \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=0.025unil \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.nillionapp/config/config.toml
Get Validator Info
nilchaind status 2>&1 | jq .ValidatorInfo
Get Denom Info
nilchaind q bank denom-metadata -oj | jq
Get Sync Status
nilchaind status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
nilchaind status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(nilchaind tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.nillionapp/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 = \"0.025unil\"/" $HOME/.nillionapp/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.nillionapp/config/config.toml
Reset Chain Data
nilchaind tendermint unsafe-reset-all --home $HOME/.nillionapp --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 nilchaind && sudo systemctl disable nilchaind && sudo rm /etc/systemd/system/nilchaind.service && sudo systemctl daemon-reload && sudo rm -rf $(which nilchaind) && rm -rf $HOME/.nillionapp