Service operations ⚙️
Check logs
Copy sudo journalctl -u initiad-f
Start service
Copy sudo systemctl start initiad
Stop service
Copy sudo systemctl stop initiad
Restart service
Copy sudo systemctl restart initiad
Check service status
Copy sudo systemctl status initiad
Reload services
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable initiad
Disable Service
Copy sudo systemctl disable initiad
Node info
Copy initiad status 2>&1 | jq
Your node peer
Copy echo $( initiad tendermint show-node-id ) '@' $( wget -qO- eth0.me ) ':' $( cat $HOME /.initia/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//' )
Key management
Add New Wallet
Copy initiad keys add $WALLET
Restore executing wallet
Copy initiad keys add $WALLET --recover
List All Wallets
Delete wallet
Copy initiad keys delete $WALLET
Check Balance
Copy initiad q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
Copy initiad keys export $WALLET
View EVM Prived Key
Copy initiad keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
Copy initiad keys import $WALLET wallet.backup
Tokens
To valoper addressTo wallet addressAmount, uward
Withdraw all rewards
Copy initiad tx distribution withdraw-all-rewards --from $WALLET --chain-id initiation-1 --gas auto --gas-adjustment 1.5 --fees 0uinit
Withdraw rewards and commission from your validator
Copy initiad tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id initiation-1 --gas auto --gas-adjustment 1.5 --fees 0uinit -y
Check your balance
Copy initiad query bank balances $WALLET_ADDRESS
Delegate to Yourself
Copy initiad tx staking delegate $( wardend keys show $WALLET --bech val -a ) 1000000uinit --from $WALLET --chain-id initiation-1 --gas auto --gas-adjustment 1.5 --fees 0unit -y
Delegate
Copy initiad tx staking delegate < TO_VALOPER_ADDRES S > 1000000uinit --from $WALLET --chain-id initiation-1 --gas auto --gas-adjustment 1.5 --fees 0uinit -y
Redelegate Stake to Another Validator
Copy initiad tx staking redelegate $VALOPER_ADDRESS < TO_VALOPER_ADDRES S > 1000000uinit --from $WALLET --chain-id initiation-1 --gas auto --gas-adjustment 1.5 --fees uinit -y
Unbond
Copy initiad tx staking unbond $( initiad keys show $WALLET --bech val -a ) 1000000uinit --from $WALLET --chain-id buenavista-1 --gas auto --gas-adjustment 1.5 --fees 0uinit -y
Transfer Funds
Copy initiad tx bank send $WALLET_ADDRESS < TO_WALLET_ADDRES S > 1000000uinit --gas auto --gas-adjustment 1.5 --fees 0uinit -y
Validator operations
MonikerIdentityDetailsAmount, uwardCommission rateCommission max rateCommission max change rate
Create New Validator
Copy initiad tx mstaking create-validator \
--amount= "5000000uinit" \
--pubkey=$(initiad tendermint show-validator ) \
--moniker = "test" \
--chain-id=initiation-1 \
--from=wallet \
--commission-rate= "0.10" \
--commission-max-rate= "0.20" \
--commission-max-change-rate= "0.01" \
--identity= "" \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.15uinit \
-y
Edit Existing Validator
Copy initiad tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id initiation-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.15uinit \
-y
Validator info
Copy initiad status 2>&1 | jq
Validator Details
Copy initiad q staking validator $( initiad keys show $WALLET --bech val -a )
Jailing info
Copy initiad q slashing signing-info $( initiad tendermint show-validator )
Slashing parameters
Copy initiad q slashing params
Unjail validator
Copy initiad tx slashing unjail --from $WALLET --chain-id initiation-1 --gas auto --gas-adjustment 1.5 --fees 0uinit -y
Active Validators List
Copy initiad q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
Copy [[ $( initiad q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key ) = $( initiad status | jq -r .ValidatorInfo.PubKey.value ) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
Copy initiad q slashing signing-info $( initiad tendermint show-validator )
Governance
TitleDescriptionDeposit, uward
Create New Text Proposal
Copy initiad tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uinit \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 --fees 0uinit \
-y
Proposals List
Copy initiad query gov proposals
Proposal IDProposal optionYesNoNo with vetoAbstain
View proposal
Copy initiad query gov proposal 1
Vote
Copy initiad tx gov vote 1 yes --from $WALLET --chain-id initiation-1 --gas auto --gas-adjustment 1.5 --fees 0uinit -y
Last updated 8 months ago