Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reward Calls

Reward calls reference

Claim rewards

Claim earned rewards. The rewards will be transferred to the account.

// check you have rewards to claim:
sfcc.pendingRewards("0xAddress", validatorID) // returns: rewards amount
// claim rewards:
sfcc.claimRewards(validatorID, {from: "0xAddress"})

Checks

  • Delegation pendingRewards is greater than zero

Restake rewards

Restake earned rewards. Rewards will be added to the stake amount.

If a part of the reward received for locked up stake, then this reward will be added to the locked stake.

// check you have rewards to claim:
sfcc.pendingRewards("0xAddress", validatorID) // returns: rewards amount
// restake rewards:
sfcc.restakeRewards(validatorID, {from: "0xAddress"})

Checks

  • Delegation pendingRewards is greater than zero

  • Validator's stake is less or equal to 16.0 * validator's self-stake

Transfer rewards

Transfer your VC to another wallet

  • Change AMOUNT to the number of VC you wish to transfer.

Last updated