Self-Delegating RISE
Validators can self-delegate RISE to themselves to earn staking rewards.
The method for delegating RISE differs depending on whether the tokens are in a regular wallet balance or a lockup account. The module and command used will be different for each case.
Delegating from a Regular Balance (x/shareclass)
Section titled “Delegating from a Regular Balance (x/shareclass)”To delegate RISE held directly in your wallet, use the non-voting-delegate command from the x/shareclass module.
How to Delegate
Section titled “How to Delegate”Usage:
sunrised tx shareclass non-voting-delegate [validator_address] [amount] [flags]Example:
# Get validator addressVALIDATOR_ADDRESS=$(sunrised keys show <your_validator_key> --bech val -a)
# Execute delegationsunrised tx shareclass non-voting-delegate $VALIDATOR_ADDRESS 10000000urise \ --from <your_validator_key> \ --chain-id <your_chain_id> \ --gas-prices=0.025uusdrise --gas-adjustment 1.2 \ --gas=auto \ -yHow to Claim Rewards
Section titled “How to Claim Rewards”Use the claim-rewards command from the x/shareclass module to claim your accumulated staking rewards. The rewards will be sent to your wallet.
Usage:
sunrised tx shareclass claim-rewards [validator_address] [flags]Example:
VALIDATOR_ADDRESS=$(sunrised keys show <your_validator_key> --bech val -a)
sunrised tx shareclass claim-rewards $VALIDATOR_ADDRESS \ --from <your_validator_key> \ --chain-id <your_chain_id> \ --gas-prices=0.025uusdrise --gas-adjustment 1.2 \ --gas=auto \ -yDelegating from a Lockup Account (x/lockup)
Section titled “Delegating from a Lockup Account (x/lockup)”To delegate RISE that is part of a lockup (e.g., from an airdrop), you must use the x/lockup module.
1. Find Your Lockup Account ID
Section titled “1. Find Your Lockup Account ID”First, you need to identify the ID of the lockup account you wish to delegate from. You can list all lockup accounts owned by your key using the lockup-accounts query.
Usage:
sunrised query lockup lockup-accounts [owner] [flags]Example:
OWNER_ADDRESS=$(sunrised keys show <your_validator_key> -a)
sunrised query lockup lockup-accounts $OWNER_ADDRESS --output jsonFrom the output of this command, find the correct account and note its id.
2. How to Delegate
Section titled “2. How to Delegate”Once you have the lockup account ID, use the non-voting-delegate command from the x/lockup module.
Usage:
sunrised tx lockup non-voting-delegate [lockup_account_id] [validator_address] [amount] [flags]Example:
LOCKUP_ID="<your_lockup_account_id>"VALIDATOR_ADDRESS=$(sunrised keys show <your_validator_key> --bech val -a)
sunrised tx lockup non-voting-delegate $LOCKUP_ID $VALIDATOR_ADDRESS 10000000urise \ --from <your_validator_key> \ --chain-id <your_chain_id> \ --gas-prices=0.025uusdrise --gas-adjustment 1.2 \ --gas=auto \ -y3. How to Claim Rewards
Section titled “3. How to Claim Rewards”Use the claim-rewards command from the x/lockup module.
Usage:
sunrised tx lockup claim-rewards [lockup_account_id] [flags]Example:
LOCKUP_ID="<your_lockup_account_id>"
sunrised tx lockup claim-rewards $LOCKUP_ID \ --from <your_validator_key> \ --chain-id <your_chain_id> \ --gas-prices=0.025uusdrise --gas-adjustment 1.2 \ --gas=auto \ -yUsing the Sunrise App
Section titled “Using the Sunrise App”These delegation and reward claiming operations can also be performed easily through the Sunrise App interface.
For more details, please refer to the following documents:
- For regular delegation: Governance
- For delegating locked assets: Lockup