Service operations ⚙️
Check logs
sudo journalctl -u initiad -fCheck service status
sudo systemctl status initiadStart service
sudo systemctl start initiadReload service
sudo systemctl daemon-reloadStop service
sudo systemctl stop initiadEnable Service
sudo systemctl enable initiadRestart service
sudo systemctl restart initiadDisable Service
sudo systemctl disable initiadNode Info
initiad status 2>&1 | jqYour node peer
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
initiad keys add $WALLETRestore executing wallet
initiad keys add $WALLET --recoverList All Wallets
initiad keys listDelete wallet
initiad keys delete $WALLETCheck Balance
initiad q bank balances $WALLET_ADDRESS Export Key (save to wallet.backup)
initiad keys export $WALLETImport Key (restore from wallet.backup)
initiad keys import $WALLET wallet.backupWithdraw all rewards
initiad tx distribution withdraw-all-rewards --from $WALLET --chain-id initiation-2 --gas-adjustment 1.6 --gas 2000000 --fees 30000uinit Withdraw rewards and commission from your validator
initiad tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id initiation-2 --gas-adjustment 1.6 --gas 2000000 --fees 30000uinit -y Check your balance
initiad q bank balances $WALLET_ADDRESSDelegate to Yourself
initiad tx mstaking delegate $(initiad keys show $WALLET --bech val -a) 1000000uinit --from $WALLET --chain-id initiation-2 --fees 30000uinit -yDelegate
initiad tx mstaking delegate <TO_VALOPER_ADDRESS> 1000000uinit --from $WALLET --chain-id initiation-2 --fees 30000uinit -y Redelegate Stake to Another Validator
initiad tx mstaking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uinit --from $WALLET --chain-id initiation-2 --fees 30000uinit -y Unbond
initiad tx mstaking unbond $(initiad keys show $WALLET --bech val -a) 1000000uinit --from $WALLET --chain-id initiation-2 --fees 30000uinit -y Transfer Funds
initiad tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uinit --gas-adjustment 1.6 --gas 2000000 --fees 30000uinit -y Query for all the currency-pairs being tracked by the module
initiad query oracle currency-pairsQuery for the price of a specified currency-pair
initiad query oracle price <BASE> <QUOTE>Creat New Validator
initiad tx mstaking create-validator \
--amount 1000000uinit \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--pubkey $(initiad tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id initiation-2 \
--gas-adjustment 1.6 --gas 2000000 --fees 30000uinit \
-y Edit Existing Validator
initiad tx staking edit-validator \
--commission-rate 0.1 \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id initiation-2 \
--gas-adjustment 1.6 --gas 2000000 --fees 30000uinit \
-y Validator info
initiad status 2>&1 | jqValidator Details
initiad q mstaking validator $(initiad keys show $WALLET --bech val -a) Jailing info
initiad q slashing signing-info $(initiad tendermint show-validator) Slashing parameters
initiad q slashing params Unjail validator
initiad tx slashing unjail --from $WALLET --chain-id initiation-2 --gas-adjustment 1.6 --gas 2000000 --fees 30000uinit -y Signing info
pellcored q slashing signing-info $(pellcored tendermint show-validator)Create New Proposal
initiad tx gov submit-proposal path/to/proposal.json --from $WALLET --fees 30000uinit -y Where Proposal.json contains:
// array of proto-JSON-encoded sdk.Msgs
"messages": [
{
"@type": "/cosmos.bank.v1beta1.MsgSend",
"from_address": "cosmos1...",
"to_address": "cosmos1...",
"amount":[{"denom": "stake","amount": "10"}]
}
],
// metadata can be any of base64 encoded, raw text, stringified json, IPFS link to json
// see below for example metadata
"metadata": "4pIMOgIGx1vZGU=",
"deposit": "10stake",
"title": "My proposal",
"summary": "A short summary of my proposal",
"expedited": false
}
metadata example:
{
"title": "",
"authors": [""],
"summary": "",
"details": "",
"proposal_forum_url": "",
"vote_option_context": "",
}Proposals List
initiad q gov proposals
Proposal ID
```bash copy
1View proposal
initiad q gov proposal 1 Yes
initiad tx gov vote 1 yes --from $WALLET --chain-id initiation-2 --gas-adjustment 1.6 --gas 2000000 --fees 30000uinit -y No
initiad tx gov vote 1 no --from $WALLET --chain-id initiation-2 --gas-adjustment 1.6 --gas 2000000 --fees 30000uinit -y No With vote
initiad tx gov vote 1 no_with_veto --from $WALLET --chain-id initiation-2 --gas-adjustment 1.6 --gas 2000000 --fees 30000uinit -y Abastain
initiad tx gov vote 1 abstain --from $WALLET --chain-id initiation-2 --gas-adjustment 1.6 --gas 2000000 --fees 30000uinit -y