Skip to main content

Vote.execute() method

Execute Proposal

Example

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

Signature:

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

Parameters

ParameterTypeDescription
proposalIdstringThe proposal id to execute.

Returns:

Promise<TransactionResult>

Remarks

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