Home > @3rdweb/sdk > VoteModule > execute
Execute Proposal
Signature:
execute(proposalId: string): Promise<void>;
Parameter | Type | Description |
---|---|---|
proposalId | string | The proposal id to execute. |
Returns:
Promise<void>
Execute the related transactions for a proposal if the proposal succeeded.
// The proposal ID ofthe proposal you want to execute
const proposalId = "0"
await module.execute(proposalId);