auth module defines basic account logic like sequences.
Query account info, including balances, account number and sequence.
likecli query auth account [ADDRESS]
bank module mainly defines transfer of coins.
Send coins to recipient.
[COINS] should be formatted like
1000000000nanolike (1 LIKE in this example)
likecli tx send [FROM_ADDRESS_OR_KEY_NAME] [TO_ADDRESS] [COINS]
There are a few modules related to staking:
Create validator, so the node with the corresponding consensus key can start to validate blocks.
Others can then delegate to the validator to increase its voting power and receive block rewards and transaction fee as return.
likecli tx staking create-validator [OPTIONS]
--help for available options.
Edit validator info, including moniker, description, identity, website and commission rate.
Commission rate modification is limited by the validators maximum commission rate and maximum commission change rate which are set when creating the validators.
likecli tx staking edit-validator [OPTIONS]
--help for available options.
Delegate to a validator, increasing its voting power, collecting block rewards and transaction fee as return.
likecli tx staking delegate [VALIDATOR_ADDRESS] --from [DELEGATOR_ADDRESS] [COINS] --chain-id [CHAIN_ID]
Move some delegations from one validator to another.
Unlike unbond, this action takes effect immediately and does not need to wait for unbond period.
However, user needs to wait for 3 weeks before the same redelegation can be redelegated again. For example, user delegated to A and then redelegated from A to B, then the user needs to wait for 3 weeks before redelegating from B to C.
likecli tx staking redelegate [FROM_VALIDATOR_ADDRESS] [TO_VALIDATOR_ADDRESS] --from [DELEGATOR_ADDRESS] [COINS] --chain-id [CHAIN_ID]
Take away some delegations from a validator.
The delegation will enter unbonding state, which is locked for unbond period (3 weeks) before moving back into available balance.
likecli tx staking unbond [VALIDATOR_ADDRESS] --from [DELEGATOR_ADDRESS] [COINS] --chain-id [CHAIN_ID]
Get the accumulated rewards from a delegation. Can add the
--commission flag to also withdraw validator's commission.
likecli tx distribution withdraw-rewards [VALIDATOR_ADDRESS] --from [DELEGATOR_ADDRESS] [--commission] --chain-id [CHAIN_ID]
Get the accumulated rewards from all delegations among different validators.
likecli tx distribution withdraw-all-rewards --from [DELEGATOR_ADDRESS] --chain-id [CHAIN_ID]
Unjail validator who got jailed because of downtime.
Note that validators who got jailed because of double signing cannot be unjailed.
likecli tx slashing unjail
Get current delegations info from a delegator.
likecli query staking delegations [DELEGATOR_ADDRESS] --chain-id [CHAIN_ID]
Get current validators info.
likecli query staking validators
Get current inflation rate.
likecli query mint inflation
Get current rewards which are not yet withdrawn.
likecli query distribution rewards [DELEGATOR_ADDRESS] --chain-id [CHAIN_ID] [OPTIONAL_VALIDATOR_ADDRESS]
Submit a governance proposal, open for deposits before getting into voting.
Proposal content can be supplied either by command arguments or a file.
likecli tx gov submit-proposal [OPTIONS]
Deposit into an open proposal for voting.
likecli tx gov deposit [PROPOSAL_ID] [COINS]
Vote in a proposal.
likecli tx gov vote [PROPOSAL_ID] [yes|no|abstain]
likecli query gov proposals
Query proposal deposits.
likecli query gov deposits [PROPOSAL_ID]
Query proposal votes.
likecli query gov votes [PROPOSAL_ID]