⛏️addRewards

Description

The addRewards function allows a user to add rewards to a staked position on the volary blockchain network.

Parameters

Name
Type
Description

rewards

string

The amount of rewards to be added

stakeId

number

The ID of the staked position

signature

string

The signature of the user

privateKey

string

The private key of the user

Response

Property
Type
Description

receipt

object

The transaction receipt for the rewards added

Example Request and Response

Prerequisites

Before making requests with Volary SDK, you must have it installed.

You can install Volary SDK using either npm or yarn. Use the following commands to install Volary SDK:

Request

Here is an example of how to make a addRewards request using the Volary SDK:

Response

Use Cases

  • Staking Platforms: The function can be used by staking platforms to add rewards to the stakeholders' accounts.

  • Governance Systems: The function can be used by governance systems to distribute rewards to the participants for their contributions to the network.

  • Token Distribution: The function can be used by token distribution systems to distribute rewards to early adopters or token holders.

Last updated