Home > @3rdweb/sdk > VoteModule > canExecute
Can Execute
Signature:
canExecute(proposalId: string): Promise<boolean>;
Parameter | Type | Description |
---|---|---|
proposalId | string | The proposal ID to check. |
Returns:
Promise<boolean>
Check if a proposal can be executed (if the proposal has succeeded).
// The proposal ID of the proposal you want to check
const proposalId = "0";
const canExecute = await module.canExecute(proposalId);
console.log(canExecute);