• Creates an initialization NFT operation. This operation initializes an NFT for a staking pool.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance to use for creating the operation.

    • args: CreateInitNftOperationArgs

      The arguments required to create the initialization NFT 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");
    const nftMint = new web3.PublicKey("your_nft_mint_address");

    const createInitArgs: CreateInitNftOperationArgs = {
    stakingPool,
    nftMint,
    };

    const operationResult = await createInitNFTOperation(honeycomb, createInitArgs);
    console.log("Created operation:", operationResult.operation);

Generated using TypeDoc