• Create an operation to claim rewards for a staked NFT.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • args: CreateClaimRewardsOperationArgs

      The context arguments for creating the ClaimRewards operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the ClaimRewards operation.

    Example

    // Usage example:
    const honeycomb = new Honeycomb(connection, wallet);
    const stakingPool = await NectarStaking.fromAddress(connection, stakingPoolAddress);
    const stakedNft = { mint: nftMintAddress, staker: stakerAddress };
    const args = { stakingPool, nft: stakedNft };
    const { operation } = await createClaimRewardsOperation(honeycomb, args);
    // Send the transaction
    const txSignature = await honeycomb.sendTransaction(operation);

Generated using TypeDoc