• Creates a withdraw rewards operation to withdraw rewards from the specified staking pool.


    • honeycomb: Honeycomb

      The Honeycomb instance to use for creating the operation.

    • args: CreateWithdrawRewardsCrx

      The arguments required to create the withdraw rewards operation.

    Returns Promise<{
        operation: 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