Skip to main content

Claim Staking Rewards

Until runtime version 1.7.5 (spiritnet-10750), staking rewards were automatically minted. In 1.8.0 (spiritnet-10801) this will change: Hereafter, the rewards are still accounted to the collators and their delegators in each block. However, they need to be actively claimed by calling an extrinsic, similar to the pull-based approach on Polkadot. Since the rewards never expire, one does not need to rush to do so.

This change improves the scalability of our LDPoS by orders of magnitude because it removes the Rewarded events for a collator and all their delegators in each block. This reduces the number of taxable events from many thousands per year to any number a user might find suitable. Please check our blogpost for more details.

How to check the reward amount

Unfortunately, the amount of accumulated rewards are not directly stored on the chain but divided into multiple storage entries. Luckily, you can easily query your current reward status by performing a runtime API call which we created for that specific purpose. Since this is just a simple query, it does not cost any transaction fees.

In the Polkadot JS Apps (wss://spiritnet.kilt.io, or wss://peregrine.kilt.io) go to Developer -> Runtime calls.

  1. Select the parachainStaking endpoint.
  2. Select the getUnclaimedStakingRewards(account) call.
  3. Select your KILT address (the account: AccountId32 field)
  4. Submit the runtime call (the Submit Runtime call button). You do not need to sign or pay any fees.

How to claim

In order to move the staking rewards into your wallet, you need to call two different extrinsics: increment{Collator, Delegator}Rewards and claimRewards. This can be done sequentially or in a batch. To save transaction fees, we recommend the latter batched call.

info

You can either execute this transaction in Polkadot JS Apps or the KILT Stakeboard, which serves as an in-house developed Frontend for all KILT staking activity. Below, we outline the steps for Polkadot JS Apps. The process for KILT Stakeboard is described in detail in the BOTLabs Trusted Entity support hub.

In the Polkadot JS Apps (wss://spiritnet.kilt.io, or wss://peregrine.kilt.io) go to Developer -> Extrinsics -> Submission.

Prepare claiming

First, you need to convert your reward points into balance.

  1. Select the collator account for which you want to claim the rewards. It should have enough balance to cover the transaction fee which is around 0.0001 KILT (the using the selected account field)
  2. Select the appropriate extrinsic: parachainStaking -> incrementCollatorRewards()
  3. Sign and submit the extrinsic (the Submit Transaction button)

Claim

Finally, you can claim your well deserved staking rewards.

  1. Select the collator account for which you want to claim the rewards. It should have enough balance to cover the transaction fee which is around 0.0001 KILT (the using the selected account field)
  2. Select the appropriate extrinsic: parachainStaking -> claimRewards()
  3. Sign and submit the extrinsic (the Submit Transaction button)

Recommendation: Batched call

We recommend to execute both extrinsics in a single batch to save on transaction fees:

  1. Select the collator account for which you want to claim the rewards. It should have enough balance to cover the transaction fee which is around 0.000112 KILT (the using the selected account field)
  2. Select the batch extrinsic: utility -> batch()
  3. Select the reward increment extrinsic: parachainStaking -> incrementCollatorRewards()
  4. Press the + button and add the reward claiming extrinsic: parachainStaking -> claimRewards()
  5. Sign and submit the extrinsic (the Submit Transaction button)