Casper and other Proof-of-Stake protocols allow token holders to earn rewards and participate in the protocol through a mechanism called staking. This tutorial shows you how to stake your Casper tokens with a validator on the network. This process is also called delegation. We will use these terms interchangeably in this guide, but we will explain the technical difference for clarity.
Node operators stake their own tokens to earn the eligibility to propose and approve blocks on the network. For this reason, we also refer to them as validators. They also run and maintain servers connected to the Casper Network. With these actions, node operators enable the Proof-of-Stake aspect of the network. This process is different from mining tokens. Validators thus earn rewards for participating and for securing the network.
You can also participate in the protocol to earn rewards without maintaining a Casper node (a server that stores a copy of the blockchain). To accomplish this, you can delegate or allocate your CSPR tokens to a chosen node operator on the network. The node operator will retain a commission, which is a percentage of the rewards generated from your staked tokens. By participating in the protocol this way, you help improve the network’s decentralization and security and earn rewards in return. The base annual reward rate is currently 8% of the total supply.
This tutorial will show you how to earn rewards by delegating your Casper tokens. We will also cover the steps to undelegate your tokens at the end of the tutorial.
Staking the process by which node operators participate in the blockchain network. It is important to understand the fundamentals of staking because when you delegate your tokens to a validator, they will be staking those tokens on your behalf. Here are a few common topics related to staking, but we encourage you to do your own research.
Presently Casper does not slash if a node operator equivocates or misbehaves. If a node equivocates, other validators will ignore its messages, and the node will become inactive.
Node operators (also known as validators) define a commission they take to provide staking services. This commission is a percentage of the rewards node operators take for their services.
Validators receive rewards, proportional to their stake, for participating in the network. Delegators receive a portion of the validator’s rewards, proportional to what they staked, minus the validator’s commission (or delegation rate).
As a prospective delegator, you need to select a validating node that you can trust. Please do your due diligence before you stake your tokens with a validator.
To get to know the active validators, join the official Casper discord server. Validators are identified with the @Validator role and a red tint in their display names. They are usually active community members.
Remember that you have complete controle over how you delegate your CSPR tokens.
To stake tokens, you need access to a wallet with CSPR tokens. At the moment, you can use the CasperLabs Signer tool. The Signer acts as your CSPR wallet, keeping your accounts secure and helping you perform actions like staking, un-staking, or sending tokens to another account. Please follow the Signer Guide for additional details on how to set up this tool.
You can create, store, and use one or more CSPR accounts with your Signer wallet. A password protects all accounts in what we call a vault.
If you are new or have logged out of the Signer, you can log in with these steps:
If you are using the CasperLabs Signer for the first time, follow these steps to create an account and download the account’s keys:
If you do not have these three files, you need to enable multiple downloads in your browser. It is crucial to proceed to the next step only if you have all of these files. This screenshot shows the files downloaded for an account called My-CSPR.
If you already have your secret keys and would like to set up and use your wallet with your existing accounts, you can do so with the following steps. These steps also apply for users migrating from the outdated Clarity tool to cspr.live.
Now that you have your CasperLabs Signer wallet, you can continue to connect to the mainnet blockchain.
Using the active account in the Signer tool, connect to the Casper blockchain by clicking on the DISCONNECTED button to toggle the connection.
You are now in the block explorer and connected to the Casper blockchain using your active account!
Next, click on View Account in the top right corner. You will see the following fields:
If you wish, you can also explore the Transfers, Deploys, Delegations, and Staking Rewards tabs.
In this tutorial, we are interested in the Delegations tab, where you can see a list of validators to which you have delegated tokens and the amount you have delegated.
You will see details about your rewards in the Staking Rewards tab, such as the validator you have staked with and the amount you have received for each era.
It is important to know that the cost of the delegation process is approximately 3 CSPR. Ensure you have extra CSPR on your account apart from the amount you are delegating; otherwise, the transaction will fail. For example, if you want to delegate 1000 CSPR, you need to have at least 1003 CSPR in your account.
IMPORTANT NOTE: If you want to send your CSPR coins from an exchange to this account, you need to copy the Public Key value. Use the quick copy button to the right of the public key address to copy it. Then set up a withdrawal request from the exchange using the public key.
The transfer from an exchange takes a few minutes. After your tokens arrive in your account, you can delegate them. This section demonstrates a withdrawal from the Coinlist exchange (http://coinlist.co/) to the Casper Mainnet (https://cspr.live/).
If you need to transfer your CSPR tokens from an exchange, you will need your public key from the account page. You can also find this key in the public_key_hex file, which you can download from the CasperLabs Signer.
If you already have funds in your Signer wallet, you can skip this section. If you are working with a different exchange, you need to contact that exchange directly.
Warning: Before you withdraw, please note that a transfer ID is required in addition to an address. Failure to provide a transfer ID may result in funds being lost permanently. Please check with your wallet or exchange on what your transfer ID is. If you confirm that no transfer ID is required, you may use 0. If in doubt, we recommend withdrawing a small amount of CSPR first as a test.
Now you are ready to delegate your tokens.
You can access the delegation functionality in two ways.
Option 1: Click Wallet from the top navigation menu and then click Delegate.
Option 2: Click Validators from the top navigation menu. From the validators table, click on any validator to access their details. Once you find the validator to which you want to delegate tokens, click the Delegate button.
Then follow these instructions to delegate your tokens:
The delegation transaction initiates as soon as the corresponding deploy is signed. You can review the details and status of the deploy by clicking Deploy Details. Now that you have everything set up, subsequent delegation operations will be much easier.
We recommend that you check in on how your stake is performing. The following points are important to understand and will be helpful in maximizing your rewards.
If the validator you staked with decides to unbond, your stake will also be unbonded. Make sure that the validator you have selected is performing as per your expectations.
Validators have to win a staking auction by competing for a validator slot with prospective and current validators. This process is permissionless, meaning validators can join and leave the auction without restrictions, except for the unbonding wait period, which lasts 14 hours.
Staking rewards are delivered to your account after each era, which is currently set to 2 hours. Note that it may take up to 2 eras (4 hours) for the first reward to appear after delegation. The rewards are automatically added to your current stake on the corresponding validator. You may view them under the Rewards tab on your account details page on https://cspr.live/.
If you want to undelegate your tokens, you can do so at any time. Note that the cost of the undelegation process is 0.5 CSPR.
TBD