💻Useful Commands

Key management

Add new key

sourced keys add <key_name>

Recover existing key

sourced keys add <key_name> --recover

List of all keys

sourced keys list

Save chain-id configuration

sourced config chain-id source-1

Tokens and Staking

Send tokens from key_name to destination_address

sourced tx bank send <key_name> <destination_address> <amount>usource --from <key_name>  --gas-prices 0.25usource --gas-adjustment 1.5 --gas auto -y 

Delegate tokens to validator_address

sourced tx staking delegate <validator_address> <amount>usource --from <key_name> --gas-prices 0.25usource --gas-adjustment 1.5 --gas auto -y 

Redelegate tokens from validator_address to new_validator_address

sourced tx staking redelegate <validator_address> <new_validator_address> <amount>usource --from <key_name> --gas-prices 0.25usource --gas-adjustment 1.5 --gas auto -y 

Unbond tokens from validator_address

sourced tx staking unbond <validator_address> <amount>usource --from <key_name> --gas-prices 0.25usource --gas-adjustment 1.5 --gas auto -y

Withdraw staking rewards from all validators

sourced tx distribution withdraw-all-rewards --from <key_name> --gas-prices 0.25usource --gas-adjustment 1.5 --gas auto -y

Withdraw commission and rewards from your validator

sourced tx distribution withdraw-rewards <your_validator_address> --commission --from <key_name> --gas-prices 0.25usource --gas-adjustment 1.5 --gas auto -y


Vote yes/no/no_with_veto/abstain on proposal

sourced  tx gov vote <proposal_id> <voting_option> --commission --from <key_name> --gas-prices 0.25usource --gas-adjustment 1.5 --gas auto -y

Last updated