Useful commands
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export LUMERA_CHAIN_ID="lumera-testnet-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
WALLET MANAGEMENT
#Add new wallet
lumerad keys add wallet
#Recover Wallet
lumerad keys add wallet --recover
#List Wallet
lumerad keys list
#Delete Wallet
lumerad keys delete wallet
#Check Wallet Balance
lumerad q bank balances $(lumerad keys show wallet -a)
VALIDATOR MANAGEMENT
#check pubkey
lumerad tendermint show-validator
#Make file validator.json
tee $HOME/.lumera/validator.json > /dev/null << EOF
{
"pubkey": YOUR_PUBKEY,
"amount": "1000000ulume",
"moniker": "MONIKER",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"details": "YOUR_DETAILS.",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
EOF
#Create Validator
lumerad --home $HOME/.lumera tx staking create-validator $HOME/.lumera/validator.json --from wallet --chain-id $LUMERA_CHAIN_ID --gas auto --gas-prices 0.025ulume
#Create Validator
lumerad tx staking create-validator \
--amount=1000000ulume \
--pubkey=$(lumerad tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$LUMERA_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.025ulume \
-y
#Edit Validator
lumerad tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$LUMERA_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=0.025ulume \
-y
#Unjail Validator
lumerad tx slashing unjail --from wallet --chain-id $LUMERA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
#Check Jailed Reason
lumerad query slashing signing-info $(lumerad tendermint show-validator)
TOKEN MANAGEMENT
#Withdraw Rewards
lumerad tx distribution withdraw-all-rewards --from wallet --chain-id $LUMERA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
#Withdraw Rewards with Comission
lumerad tx distribution withdraw-rewards $(lumerad keys show wallet --bech val -a) --commission --from wallet --chain-id $LUMERA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
#Delegate Token to your own validator
lumerad tx staking delegate $(lumerad keys show wallet --bech val -a) 100000aaron --from wallet --chain-id $LUMERA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
#Delegate Token to other validator
lumerad tx staking redelegate $(lumerad keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 100000aaron --from wallet --chain-id $LUMERA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
#Unbond Token from your validator
lumerad tx staking unbond $(lumerad keys show wallet --bech val -a) 100000aaron --from wallet --chain-id $LUMERA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
#Send Token to another wallet
lumerad tx bank send wallet <TO_WALLET_ADDRESS> 100000aaron --from wallet --chain-id $LUMERA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
GOVERNANCE
#Vote, You can change the value of yes to no,abstain,nowithveto
lumerad tx gov vote 1 yes --from wallet --chain-id $LUMERA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
#List all proposals
lumerad query gov proposals
#Create new text proposal
lumerad tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000ulume \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=0.025ulume \
-y
SERVICES MANAGEMENT
# Reload Service
sudo systemctl daemon-reload
# Enable Service
sudo systemctl enable lumerad
# Disable Service
sudo systemctl disable lumerad
# Start Service
sudo systemctl start lumerad
# Stop Service
sudo systemctl stop lumerad
# Restart Service
sudo systemctl restart lumerad
# Check Service Status
sudo systemctl status lumerad
# Check Service Logs
sudo journalctl -u lumerad -f --no-hostname -o cat
UTILITY
#Set Indexer NULL / KV
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.lumera/config/config.toml
#Get Validator info
lumerad status 2>&1 | jq .ValidatorInfo
#Get denom info
lumerad q bank denom-metadata -oj | jq
#Get sync status
lumerad status 2>&1 | jq .sync_info.catching_up
#Get latest height
lumerad status 2>&1 | jq .sync_info.latest_block_height
#Reset Node
lumerad tendermint unsafe-reset-all --home $HOME/.lumera --keep-addr-book
DELETE NODE
WARNING! Use this command wisely Backup your key first it will remove node from your system
sudo systemctl stop lumerad && sudo systemctl disable lumerad && sudo rm /etc/systemd/system/lumerad.service && sudo systemctl daemon-reload && sudo rm -rf $(which lumerad) && rm -rf $HOME/.lumera
Last updated