Service operations ⚙️
Check logs
sudo journalctl -u initiad -f
Check service status
sudo systemctl status initiad
Start service
sudo systemctl start initiad
Reload service
sudo systemctl daemon-reload
Stop service
sudo systemctl stop initiad
Enable Service
sudo systemctl enable initiad
Restart service
sudo systemctl restart initiad
Disable Service
sudo systemctl disable initiad
Node Info
initiad status 2>&1 | jq
Your 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 $WALLET
Restore executing wallet
initiad keys add $WALLET --recover
List All Wallets
initiad keys list
Delete wallet
initiad keys delete $WALLET
Check Balance
initiad q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
initiad keys export $WALLET
Import Key (restore from wallet.backup)
initiad keys import $WALLET wallet.backup
Withdraw 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_ADDRESS
Delegate to Yourself
initiad tx mstaking delegate $(initiad keys show $WALLET --bech val -a) 1000000uinit --from $WALLET --chain-id initiation-2 --fees 30000uinit -y
Delegate
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-pairs
Query 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 | jq
Validator 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
1
View 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