• Creates a new participate operation to join a mission.

    Parameters

    • honeycomb: Honeycomb

      An instance of the Honeycomb class.

    • args: CreateParticipateOperationArgs

      The arguments for participating in the mission.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the participate operation.

    Example

    const honeycomb = new Honeycomb(...); // Initialize Honeycomb instance
    const mission = await honeycomb.mission(missionAddress);
    const nft = { stakingPool: stakingPoolAddress, mint: nftMintAddress, staker: stakerAddress };
    const args: ParticipateArgs = {
    ...
    // Add other required fields for ParticipateArgs
    };
    const createParticipateArgs: CreateParticipateOperationArgs = {
    args,
    mission,
    nft,
    programId: myCustomProgramId, // (Optional) Provide a custom program ID if needed
    };
    const { operation } = createParticipateOperation(honeycomb, createParticipateArgs);
    // Execute the participate transaction
    await operation.send(confirmOptions);

Generated using TypeDoc