Delete Quest
Delete Quest & withdraw remaining rewards.
const {txHash, error, errorMessage } = await newEnvoker.deleteQuest(
1,
);Terminate & Withdraw Props
/* The Quest Id to close. If you need to find the Quest Id from the Lens Publication Id, you can call getQuestIdFromPublication from the Helpers functions or call getQuestIdFromLensData directly to the KinoraQuestData contract. */
questId: number;
/* (Optional) Existing Kinora Escrow Contract from a previously Factory instantiation. */
kinoraEscrowContract?: `0x${string}`;
/* (Optional) Wallet instance for Polygon Network. If you have passed the wallet object to the constructor, it is not necessary here. */
wallet?: ethers.Wallet;Response Object
/* Transaction hash for Quest deletion. */
txHash?: string;
/* Boolean to indicate whether an error was encountered during termination. */
error: boolean;
/* Message of the encountered error. */
errorMessage?: string;Last updated