⛏️addRewards
Description
The addRewards
function allows a user to add rewards to a staked position on the volary blockchain network.
Parameters
Name | Type | Description |
---|---|---|
| string | The amount of rewards to be added |
| number | The ID of the staked position |
| string | The signature of the user |
| string | The private key of the user |
Response
Property | Type | Description |
---|---|---|
| object | The transaction receipt for the rewards added |
Example Request and Response
Prerequisites
Before making requests with Nest SDK, you must have it installed.
You can install Nest SDK using either npm
or yarn
. Use the following commands to install Nest SDK:
Request
Here is an example of how to make a addRewards
request using the Nest 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