Check if a proposal exists based on a given proposalId
import { proposalExists } from "thirdweb/extensions/vote"; // Check if the proposal with proposalId `4` existsconst exists = await proposalExists({ contract, proposalId: 4n }); // either `true` or `false`
function proposalExists( options: BaseTransactionOptions<StateParams>,): Promise<boolean>;
let options: BaseTransactionOptions<StateParams>;
let returnType: Promise<boolean>;
true if the proposal exists, else false
true
false