In Massa, the minimal number of coins required to be able to stake is 100 MAS (which is called one “roll”). The total initial supply is 500m MAS, so in theory, there could be 5 million people staking.
Addresses are randomly selected to stake (create blocks) in all threads, based on the number of rolls they possess. The list of stakers and their rolls can be seen there.
Rolls can be bought with Massa coins or sold to get the coins back. If you already have more than 100 Massa, you can continue this tutorial, otherwise, send your address to the faucet bot in the “testnet-faucet” channel of our Discord.
Get the address that has coins in your wallet. In the Massa client:
Buy rolls with it: put your address, the number of rolls you want to buy, and the operation fee (you can put 0):
buy_rolls <address> <roll count> <fee>
As an example, the command for buying 1 roll with 0 fee for the address
A12dr48yZaL2NpQkwsrpsNLGDpndFUCVSdYdSiQh4UfkYRMo17km 1 0
It should take less than one minute for your roll to become final, check with:
Telling your node to start staking with your rolls
Get the address that has rolls in your wallet:
Register your address so that your node start to stake with it:
Now you should wait some time so that your rolls become active: 3 cycles of 128 periods (one period is 32 blocks - 16 sec), so about 1h40 minutes.
You can check if your rolls are active with the same command:
When your rolls become active, that’s it! You’re staking! Please note, having one roll is enough. On the testnet, we don’t value how many rolls you have, but how reliable is your node.
You should be selected to create blocks in the different threads.
To check when your address is selected to stake, run this command:
and look at the “next draws” section.
Also check that your balance increases, for each block or endorsement that you create you should get a small reward.
If you want to get back some or all of your coins, sell rolls the same way you bought them:
sell_rolls <address> <roll count> <fee>
It should take some time again for your coins to be credited, and they will be frozen for 1 cycle before you can spend them, again check with: