Delegate (Stake) DEC to an Existing Decentr Validator Node

Decentr
3 min readSep 30, 2021

--

Please note, this is a manual process until we add Delegation to the dWallet within the Decentr Browser.

We aim to have the swap process automated in the next week.

Step One

You will need to install the decentr cli to delegate your stake to an existing Decentr validator. The instructions below are for the Linux command line.

git clone -b v1.5.7 https://github.com/Decentr-net/decentr

Enter the folder Decentr was cloned into

cd decentr

Compile and install Decentr

make install

Make sure the correct version of decentrd installed by running

decentrd version

The current version is 1.5.7

Step Two

You will need to import a wallet, which will give you a private key/public key pair for your node. Make sure you do it in a separate terminal or that node is running in background mode.

# Replace <your-key-name> with a name for your key that you will remember

decentrd keys add <your-key-name> -i

You will be asked to enter a BIP39 mnemonic. This is the phrase you generated during registration of your Decentr account.

If you don’t have a Decentr account, create a new one with the Decentr browser. Once the account is created you will need to swap ERC20 Dec to Native DEC and send it to your Native DEC address.

For the second question simply hit “Enter”:

Then you will be asked for a password for your key (enter at least 8 character password that you will remember):

To see a list of wallets on your node, type —

decentrd keys list

Step 3

In order to query state and send transactions, you will need to connect to the Decentr network. You can do this by connecting to a full-node (or your own node). Connect to the full node by copying and pasting the following command into your terminal.

decentrd config node zeus.mainnet.decentr.xyz:26656 
decentrd config trust-node false
decentrd config chain-id mainnet-3

Step 4

To bond your Dec, you will need the following four values.

· validatorAddress :

for example — decentrvaloper1zxy7hdu55ky70nj96rd73pjg2l8s7fh79wppjx

You can see a list of existing validator addresses here — https://explorer.decentr.net

· amountToBound : The amount of Dec you want to delegate, multiplied by 1,000,000 and stated in uDecs. For example, if you want to delegate 1000 DEC, the value would be 1,000,000,000 udec.

· gasPrice : Gas price for bonding tx (e.g “0.025udec”)

· Delegatorkeyname : This is your delegator alias and can be any value you choose (e.g MyDelegatorAlias)

Make sure to replace the validatorAddress, amountToBound, gasPrice and delegatorKeyName with the values as instructed above and the copy and paste the following command into your terminal.

decentrd tx staking delegate <validatorAddress> <amountToBond> \    
--from <delegatorKeyName> \
--gas auto \
--gas-prices <gasPrice> --async

Step Five (Optional)

You will need the following two values to withdraw your unclaimed DEC.

· gasPrice : Gas price for bonding tx (e.g 0.001)

· Delegatorkeyname : This is your delegator alias and can be any value you choose (e.g MyDelegatorAlias)

To withdraw your unclaimed staking rewards execute the following single command in your terminal:

decentrd tx distr withdraw-all-rewards \   
--from <delegatorKeyName> \
--gas auto \
--gas-prices <gasPrice> \
--async

Official Links for Decentr:

Website: https://decentr.net
Twitter: https://twitter.com/DecentrNet
Telegram Group: https://t.me/DecentrNet
Telegram ANN: https://t.me/DecentrAnnouncements
Beta Testers: https://t.me/DecentrBetaTesters
Github: https://github.com/Decentr-net
Windows Browser: https://decentr.net/files/DecentrSetupWin.zip
OSX Browser: https://decentr.net/files/MacOS_X64_Decentr_1.1.3.zip
Linux Browser: https://decentr.net/files/Ubuntu_X64_Decentr_1.1.3.zip

--

--

Decentr
Decentr

Written by Decentr

Your data is value. Decentr makes your data payable and tradeable online. Decentr.net Medium.com https://rich-james.medium.com/ t.me/DecentrNet

No responses yet