• Creates an unstake operation to unstake an NFT from the specified staking pool.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance to use for creating the operation.

    • args: CreateUnstakeOperationArgs

      The arguments required to create the unstake operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the created operation.

    Example

    // Assuming you have initialized the `honeycomb` instance and imported necessary types

    const stakingPool = new NectarStaking(honeycomb, "your_staking_pool_address");

    // Assuming you have an initialized `StakedNft` object `stakedNft`

    const createUnstakeArgs: CreateUnstakeOperationArgs = {
    stakingPool,
    nft: stakedNft,
    };

    const operationResult = await createUnstakeOperation(honeycomb, createUnstakeArgs);
    console.log("Created unstake operation:", operationResult.operation);

Generated using TypeDoc