Prepares a transaction to call the "propose" function on the contract.
import { sendTransaction } from "thirdweb";import { propose } from "thirdweb/extensions/vote"; const transaction = propose({ contract, targets: ..., values: ..., calldatas: ..., description: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function propose( >,
The options for the "propose" function.
>;
A prepared transaction object.