Docs
v1

Guide

Staking and delegation

Stake TRAI with a validator step by step, in the Tenrai Wallet or on the command line. How rewards are earned and paid, unstaking, withdrawal and the risks.

On this page

Staking bonds TRAI to a validator. The validators with the most stake certify the cuts, and half of all new TRAI and half of all fees go to their stakers. You keep the coins: the validator can never move them, and only your wallet can unstake.

To run a validator yourself, see Run a validator.

The numbers

Smallest stake1,000 TRAI
CommitteeThe 64 eligible validators with the most stake
PayoutsOnce a day (34,560 cuts), automatically
Validator commission0 % to 10 % of delegated rewards, in steps of 0.1 %
Unbonding10 days from unstaking

Choose a validator

A validator earns for a day only while it sits in the committee and does its job, so the choice matters:

  • Stake and committee seat. Only the 64 validators with the most stake form the committee. Stake with a validator outside it, shown as standby, earns nothing until it moves up.
  • Health. Healthy means online, at least 95 % of its recent cuts signed and never penalized. A validator that signs less loses whole days of rewards, see Rewards.
  • Commission. The validator keeps this share of your rewards. A change is announced 14 days ahead and shows next to the current rate.

Spread larger amounts over several validators.

Stake

Tenrai Wallet

  1. Open Staking.
  2. Under Validators, compare health, commission and any scheduled change, and choose one. The validator ID links to its page in the explorer.
  3. In Stake, enter the amount, at least 1,000 TRAI. Estimated reward shows the expected reward per day and per year after the validator's fee.
  4. Choose Review stake, check the details and confirm.

The stake appears under Your positions once its transaction is final, within a few seconds.

Command line

  1. List the validators and copy the ID of the one you want:

    Shell
    tenrai-wallet validators
  2. Stake:

    Shell
    tenrai-wallet stake --validator <validator ID> --amount 1000 --wait
  3. Check your positions:

    Shell
    tenrai-wallet positions

Each position has its own ID, which you need to unstake.

A stake carries one more signature than a payment, so it sometimes fits only seven coins. When the amount lies on more, the Tenrai Wallet offers Compound and send; on the command line, run tenrai-wallet compound --wait and stake again.

Rewards

How muchYour share of the day's staking pool, in proportion to your stake, less the validator's commission
WhenOnce a day, in the cuts right after the day's last cut
WhereThe position's reward address, by default the wallet's first address
ClaimingNot needed. Each payout is a normal coin

Each day's rewards go to the positions as they stood when the day began, so a new stake earns from the first full day after it is final. If you unstake during a day, that day pays for the part before the unstake.

A stake over time. The stake is final within seconds and earns from the first full day on, with a payout after each day. After an unstake the rewards stop, the last day pays for the part before the unstake, and the coins can be withdrawn after 10 days of unbonding. BONDED · EARNS FROM THE FIRST FULL DAY UNBONDING · 10 DAYS payout payout payout last, partial day 1 day 2 day 3 Stake final in seconds Unstake rewards stop Withdraw spendable again
A stake earns from its first full day; after an unstake it unbonds for 10 days.

A validator qualifies for a day only if it helped certify cuts in at least 9 of the day's 12 two-hour windows. A validator that misses this earns nothing for that day, nor do its stakers, and it is jailed: it cannot join the committee for the next two days. Downtime and jailing never touch the stake itself.

Rewards are not added to the stake. To stake them too, create another position, and merge many small reward coins with compound. tenrai-wallet reward-address --position <position ID> --to <address> sends a position's future rewards to another address.

Unstake and withdraw

Tenrai Wallet

  1. Choose Unstake on the position under Your positions.
  2. Wait 10 days. The position counts down to the cut at which it can be withdrawn.
  3. Choose Withdraw on the position.

Command line

Shell
tenrai-wallet unstake --position <position ID>
tenrai-wallet positions
tenrai-wallet withdraw --position <position ID>

positions shows the time left in withdrawable_in.

During the 10 days the TRAI earns nothing and cannot be spent. Withdraw returns it as a normal coin to your wallet.

You never need the validator's approval to unstake. When a validator leaves the network, all of its positions start unbonding by themselves, and you withdraw yours after the 10 days.

Risks

This happens when an operator runs the same validator key on two machines, by mistake or not. Choose validators by how reliably they are run, not only by size.

Type to search guides, concepts and reference pages.