Staking guide
Select an operator to nominate
Three important factors to pay attention to are minimumNominatorStake
, nominationTax
, and status
.
Visit PolkadotJS Network Explorer.
Go to
Developer
->Chain state
.Select
domains
underselected state query
and chooseoperators
, excludeoption
and click on+
to run the query.Browse the list of available operators, make sure the status is
Registered
and thatminimumNominatorStake
is lower than your staking amount.
Number 17 on the screenshot above corresponds to operatorId
.
Operator Nomination using Polkadot.js
Any account can nominate any existing operator with at least a minimum nominator stake set by the operator.
The only staking mechanism available to non-operators is nominating an operator.
Make sure to select the correct network at the top-left corner.
Select the account you want to use in
using the selected account
.Select
domains
undersubmit the following extrinsic
and choosenominateOperator(operatorId, amount)
in the dropdown.Set an
operatorId
- in the example, it's set to 1.приміткаIn the example below, 1 TSSC is selected for staking. 18 zeros are added because of the
u128
type, so make sure to put 1000000000000000000 instead.Enter the desired amount in the
amount
field for staking.Submit the signed transaction.
Once nomination is finalized when the domain epoch is complete, the nominator will start receiving rewards.
Any nominator can add more stake by using the same functionality.
Check if your nomination worked succesfully.
There are two ways to check your nomination:
You can use PolkadotJS Network Explorer.
Browse the recent events and you should see domains.OperatorNominated event.
Click on the dropdown arrow to view the domainId and operatorId.
Alternatively, you can use Subscan which is a little easier to navigate for this job.
Navigate to Subspace Subscan portal.
Click on
Blockchain
->Extrinsics
.Scroll to the bottom of the page to view all recent events, search for
nominate_operator
event.Click on
Extrinsic ID
for the desired event.Scroll to
Parameters
to view the stake value.Scroll to
Events
and click on dropdown arrow fordomains(OperatorNominated)
.Inspect and ensure that
nominatorId
matches yourid
.
Stake withdrawal using Polkadot.js
Any operator or nominator can initiate withdrawal. They can withdraw the total staked amount or a portion of their stake.
- If an operator is initiating a withdrawal, then their remaining balance should be at least the minimum operator stake, otherwise the request is rejected.
- If a nominator is initiating a withdrawal, and the remaining balance is less than the operator-defined minimum nominator stake, then the total nominator stake is unlocked otherwise, only the requested amount is unlocked.
- Select the account you want to use in
using the selected account
. - Select
domains
undersubmit the following extrinsic
and choosewithdrawStake(operatorId, withdraw)
in the dropdown. - Choose an operator by selecting an
operatorId
- in the example, it's set to17
. - Choose the withdrawal amount in the
withdraw
field - you can specify to withdrawall
orsome
staking amount.
Example of withdrawal of 1 TSSC stake amount from nominating an operator 17
.
Once the withdrawal is submitted, it's finalized after the domain epoch is completed. All the withdrawn funds are unlocked after the unlocking period is complete.
Calculating your nominator balance
- Proceed to PolkadotJS Network Explorer.
- Go to
Developer
->Chain state
. - Select
domains
underselected state query
andnominators(u64, AccoundId32)
. - Provide the
operatorId
and select youraccount
from the dropdown. - Run the query, remember the
shares
number. - On the same screen, choose
domainStakingSummary(u32)
. - Provide the
domainId
. - Run the query, remember the
currentTotalStake
number. - Without leaving the page, select
operators(u64)
. - Provide
operatorId
that you nominated previously. - Run the query, remember the
currentTotalStake
number.
To calculate your nominator balance:
- Calculate share price by dividing currentTotalStake from the domain by operator currentTotalStake.
- Multiply share price and your nominator shares number.