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( options: BaseTransactionOptions< ProposeParams | { asyncParams: () => Promise<ProposeParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "propose" function.
let options: BaseTransactionOptions< ProposeParams | { asyncParams: () => Promise<ProposeParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.