SCRT tutorial: Redelegate from INACTIVE node to ACTIVE node using SecretCli (Windows + WSL Ubuntu)
At the writing of this there are tens of thousands of SCRT delegated to validators that are no longer in the ACTIVE validator set. These SCRT are missing out on staking rewards (~25% APR) and there is currently no way to redelegate from INACTIVE nodes using most popular wallets Keplr or Citadel.one.
This is a guide on how to install SecretCli and redelegate. 𝕊ecret Keeper offers support and can help you go through this tutorial (will NOT DM you first). Contact me on twitter by sending a DM to — 𝕊ecret Keeper.
In this tutorial we will first install Ubuntu system on windows and then SecretCli.
Enable the Windows Subsystem for Linux
Before installing Ubuntu from Microsoft Store we first have to make sure we have “Windows subsystem for Linux” enabled on our Windows machine. To enable it:
- Open “Control Panel” by typing it in search bar and pressing “Enter”.
- Click on the “Programs” option.
- Click on the “Programs and Features” option.
- Select the “Turn Windows Features On or OFF” option in the left pane.
- Scroll down and select “Windows Subsystem for Linux“.
For this to take effect it will ask you to reboot your PC. Do that before continuing with the tutorial.
1. Open “Microsoft Store” from the start menu or typing it in search bar.
2. Type in “Ubuntu” in Microsoft store search bar and select “Ubuntu 20.04 LTS”
3. Click on “Get”, you will have to sign in to your Microsoft account to be able to download it.
After downloading open the app by clicking “Open” in the same page in MS store or just type in “Ubuntu” in windows search bar and you will see “Ubuntu 20.04 LTS” app installed.
The first time you open Ubuntu it will start installing which can take a few minutes. Afterwards you will be asked to create your Ubuntu machine user by typing in UNIX username (use lowercase letters) and password. See pic. below.
- Download SecretCli: Type in the command bellow and click enter (see pic.):
2. Install SecretCli by running the command:
sudo dpkg -i secret*.deb
Copy-paste and enter each of these lines one by one:
secretcli config chain-id secret-4
secretcli config output json
secretcli config node http://188.8.131.52:26657
Check the installation by typing in:
Should see something like this:
Import wallet and redelegate
To import your account with mnemonic use this command:
secretcli keys add --recover test
(last word “test” is the name of your account on this machine, so it can be anything e.g. secretkeeper)
Enter your mnemonic (DO NOT share your seed phrase with anyone) and new keyring passphrase which will be used to confirm transactions.
If we look at the docs the command to redelegate looks like this:
We need 3 things here:
- Validator address that we are redelegating FROM
- Validator address that we are redelegating TO
- And the correct amount to redelegate (Note: in the command we use uSCRT and 1 SCRT = 1,000,000 uSCRT)
To get the address of INACTIVE validator you want to redelegate from go to secretnodes.org validators page and filter by “Inactive”, or just use the link below:
Find and click on the validator you are staking with. The address you need to copy is “Owner” (see pic. below):
The final command — change the first address with the address of a validator you are redelegating FROM (this example redelegates from “Stefani” node):
secretcli tx staking redelegate secretvaloper13nddx75w3fggn8x6awf2u4wv30hha27lx64mec secretvaloper1lyafdwwzwfmjc8zhsew5pdcdu46na6pg09fql4 1000000uscrt --from=test --chain-id=secret-4 --gas=auto --gas-adjustment=1.15
This command redelegates to 𝕊ecret Keeper node to redelegate to someone else change the second address to theirs.
Note: If you named your account something else then “test” when recovering your account, change “test” in the command accordingly. The two gas flags at the end are to make sure you use enough gas for the command to go through.
That’s it! Now go to secretnodes.com and enter your address in the search bar and look at the latest transaction to confirm successful redelegation.
𝕊ecret Keeper offers support and can help you go through this tutorial (will NOT DM you first). Contact me on twitter by sending a DM to — 𝕊ecret Keeper.