Staking
Last updated
Last updated
The staking process in crypto projects is very important because it allows you to attract more independent parties to maintain the decentralization of the network.
Obviously, not everyone is able to put a large amount to launch a validator, and not everyone has the necessary technical skills to maintain a validator (it is still a server) - update it, work with the cloud, and so on.
Staking gives you the opportunity to put your coins on those who can maintain a server, and in return - the validator will share with you part of the profit from the network.
Below we will demonstrate the staking process.
First of all - search for the staking pool (validator) you want to stake on.
You have several ways to do this:
Own data channels - this can be your own pool, some large staking provider (for example Everstake or staking by some top-tiers exchanges).
Search on our resources - you can find a staking pool in the explorer and select it for staking
Visit the main page of explorer and choose Epoch data
Now below you should see the list of leaders on shards for current epoch:
By clicking on a specific validator you will be redirected to a page with information about it.
Below is a list of stakers of this pool. For example, for this pool, only the owner himself is a staker. The total strength of the pool is 55,000 KLY, while the owner has staked all 55,000 KLY
However, using this pool as an example, we will demonstrate the staking process below.
The easiest way is to go to our website, connect your wallet and start the staking process in a special form
Click Select Wallet
and choose your provider (Metamask, Coinbase Wallet, OKX Wallet, etc.)
Metamask shows us that we have 200 coins on balance
After connecting the wallet, select the desired account from the list
Select the number of coins you want to stake and select the pool
If we visit the page of pool before the transaction, we'll see that currently pool has only one staker - it's pool owner itself
Initiate the transaction
After this, you should see the decreased balance
If we open the transaction details - it's possible to copy the transaction ID
Let's visit the explorer and try to find our transaction
Please note that the stake will not be activated immediately, but only after 3 epochs
Check the duration of epoch on the main page of explorer
Look at the block ID in which your staking transaction was located. The first part of the ID stands for the epoch ID. In this case, it is 3.
Therefore, your stake will be activated in epoch:
After waiting for epoch 6 - let's go to the page of the validator we stake on:
Now your account will be in the list of stakers and you will be able to see the reward for this epoch
Imagine that you have some keypair of your account. Definitely you should have some coins on this address to stake
For example, this account have 20M
KLY
Now use the Web1337 SDK to create the special transaction which calls system smart contract related to staking
The structure of transaction that will be sent to node should be like this:
And in console you should see something like this:
Once you have the transaction ID, go to the explorer and look at the transaction status:
Due to the network features (such as multi-level sharding, parallel virtual machines, etc.) - you need to wait some time until the rate comes into effect.
On the transaction status page, you will see a field that indicates which block the transaction was in.
The first part of the identifier (44) indicates the epoch index when the block was created. This block was created in epoch 44.
Well, that's it - only after 3 epoches your stake will come into effect. So, in this case, the stake will be activated on the epoch 47
Now if you visit the validator page, you will see yourself in the list of stakers:
As you can see, the stake here is actually 100 coins.