Prepares a transaction to call the "execute" function on the contract.
import { sendTransaction } from "thirdweb";import { execute } from "thirdweb/extensions/vote"; const transaction = execute({ contract, targets: ..., values: ..., calldatas: ..., descriptionHash: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function execute( options: BaseTransactionOptions< ExecuteParams | { asyncParams: () => Promise<ExecuteParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "execute" function.
let options: BaseTransactionOptions< ExecuteParams | { asyncParams: () => Promise<ExecuteParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.