Creates a new NectarMission
instance.
The NectarMissions
instance that the mission belongs to.
The public key address of the mission.
The underlying Mission
object representing the mission data.
Throws an error if the mission does not belong to the pool.
Readonly
addressGets the duration of the mission.
The duration of the mission as a Date
.
Gets the name of the mission.
The name of the mission.
Gets the mission requirements.
The mission requirements.
Gets the rewards associated with the mission.
An array of MissionReward
or MissionCurrencyRewards
objects representing the rewards.
Participates in the mission by staking NFTs.
An array of staked NFTs along with their participation arguments.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A promise that resolves to an array of transaction signatures upon successful participation.
// Participate in a mission by staking NFTs
const nftsToStake = [
{ nft: stakedNft1, args: participateArgs1 },
{ nft: stakedNft2, args: participateArgs2 },
// Add more NFTs to stake as needed
];
const participationResult = await nectarMission.participate(nftsToStake);
console.log(participationResult); // Output: Array of transaction signatures
Returns the NectarMissions
instance that the mission belongs to.
The NectarMissions
instance.
Recalls the participation from the mission for the provided participations.
An array of NectarMissionParticipation
instances representing the participations to recall.
Optional
confirmOptions: ConfirmOptionsOptional transaction confirmation options.
A promise that resolves to the transaction signature upon successful recall.
// Recall participation from the mission for specific participations
const participationsToRecall = [participation1, participation2];
const recallResult = await nectarMission.recall(participationsToRecall);
console.log(recallResult); // Output: Transaction signature
Generated using TypeDoc
Represents a Nectar Mission.