typescript-sdk

Home > @3rdweb/sdk > VoteModule > execute

VoteModule.execute() method

Execute Proposal

Signature:

execute(proposalId: string): Promise<void>;

Parameters

Parameter Type Description
proposalId string The proposal id to execute.

Returns:

Promise<void>

Remarks

Execute the related transactions for a proposal if the proposal succeeded.

Example

// The proposal ID ofthe proposal you want to execute
const proposalId = "0"
await module.execute(proposalId);