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