⛏️removeStake
Last updated
Last updated
The removeStake
function allows users to remove a previously staked amount from a staking contract and returns a transaction receipt upon successful execution.
Name | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
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:
Here is an example of how to make a removeStake
request using the Nest SDK:
Staking Platforms: The function can be used by staking platforms to allow users to remove their staked tokens and receive rewards.
DeFi Applications: The function can be used by DeFi applications that implement staking features to allow users to withdraw their staked tokens.
Blockchain-based Games: The function can be used by blockchain-based games that offer staking mechanics to enable players to remove their staked tokens as needed.
stakeId
number
The ID of the stake to be removed
amount
string
The amount of the stake to be removed
privateKey
string
The user's private key for the staking contract
receipt
object
The transaction receipt object