typescript-sdk

Home > @3rdweb/sdk > VoteModule > canExecute

VoteModule.canExecute() method

Can Execute

Signature:

canExecute(proposalId: string): Promise<boolean>;

Parameters

Parameter Type Description
proposalId string The proposal ID to check.

Returns:

Promise<boolean>

Remarks

Check if a proposal can be executed (if the proposal has succeeded).

Example

// The proposal ID of the proposal you want to check
const proposalId = "0";
const canExecute = await module.canExecute(proposalId);
console.log(canExecute);