proposalExists

Check if a proposal exists based on a given proposalId

Example

import { proposalExists } from "thirdweb/extensions/vote";
// Check if the proposal with proposalId `4` exists
const exists = await proposalExists({ contract, proposalId: 4n }); // either `true` or `false`
function proposalExists(
): Promise<boolean>;

Parameters

Returns

let returnType: Promise<boolean>;

true if the proposal exists, else false