The Honeycomb instance to use for creating the operation.
The arguments required to create the withdraw rewards operation.
An object containing the created operation.
// Assuming you have initialized the `honeycomb` instance and imported necessary types
const stakingPool = new NectarStaking(honeycomb, "your_staking_pool_address");
const withdrawRewardsArgs: CreateWithdrawRewardsCrx = {
amount: 100, // The amount of rewards to withdraw
stakingPool: stakingPool,
receiverWallet: "your_receiver_wallet_address",
};
const operationResult = await createWithdrawRewardsOperation(honeycomb, withdrawRewardsArgs);
console.log("Created withdraw rewards operation:", operationResult.operation);
Generated using TypeDoc
Creates a withdraw rewards operation to withdraw rewards from the specified staking pool.