executeProposal

Execute a Proposal

Example

import { executeProposal } from "thirdweb/extensions/vote";
const transaction = executeProposal({ contract, proposalId });
const tx = await sendTransaction({ transaction, account });
function executeProposal(
options: BaseTransactionOptions<{ proposalId: bigint }>,

Parameters

Type

let options: BaseTransactionOptions<{ proposalId: bigint }>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

a prepared transaction for the execute method