⛏️removeStake
Description
The removeStake
function allows users to remove a previously staked amount from a staking contract and returns a transaction receipt upon successful execution.
Parameters
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
Response
receipt
object
The transaction receipt object
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 removeStake
request using the Nest SDK:
Response
Use Cases
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.
Last updated