VinuChain
  • VinuChain | VC
  • 📃Whitepaper
    • Whitepaper
      • Disclaimer
      • Abstract
      • Introduction
      • Background
      • VinuChain Protocol
      • Consensus Mechanism
      • Quota System
      • Network Architecture
      • VinuChain Coin (VC)
      • Conclusion
      • References
    • Tokenomics
    • Launchpads
    • Roadmap
  • 🧑‍💻Technical Docs
    • VinuChain Mainnet
      • Connect to Mainnet
      • Install Read-Only Node
      • Install Validator Node
      • Install API Node
    • VinuChain Testnet
      • Connect to Testnet
      • Install Read-Only Node
      • Install Validator Node
      • Private Network (Fakenet)
    • Nodes & Validators
      • Read-Only Node
      • Become a Validator
      • Update Validator Info
      • API Node
      • Delegation Calls
      • Lockup Calls
      • Reward Calls
      • Validator Calls
      • Troubleshooting
      • FAQ
    • Staking
      • Overview
      • Stake VC on VinuChain
      • FAQ - Staking
    • Smart Contracts
      • Deploy a Smart Contract
    • API
      • Public API Endpoints
      • GraphQL
      • REST API
    • Web3 Methods
      • gasprice.js
      • transfer.js
      • web3.eth.abi.js
      • web3.eth.accounts.js
      • web3.eth.contract.js
      • web3.eth.iban.js
      • web3.eth.js
      • web3.eth.net.js
      • web3.eth.subscribe.js
      • web3.eth.utils.js
      • .gitignore
      • LICENSE
      • app.js
      • common.js
      • constants.js
      • package-lock.json
      • package.json
      • yarn.lock
    • Cross-chain Bridging
      • Native $VC vs Wrapped $VC
      • Wanbridge
      • Add bep20 VC to Trust Wallet
Powered by GitBook
On this page
  • Claim rewards
  • Restake rewards
  • Transfer rewards
  1. Technical Docs
  2. Nodes & Validators

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 15.0 * validator's self-stake

Transfer rewards

Transfer your VC to another wallet

vc.sendTransaction({from: vc.accounts[0], 
to: "target_address", 
value: web3.toWei("AMOUNT", "VC")})
  • Change AMOUNT to the number of VC you wish to transfer.

PreviousLockup CallsNextValidator Calls

Last updated 11 months ago

🧑‍💻