An instance of the Honeycomb class.
The arguments for participating in the mission.
An object containing the participate operation.
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
Creates a new participate operation to join a mission.