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( >,
The options for the "execute" function.
>;
A prepared transaction object.