Prepares a transaction to call the "execute" function on the contract.
import { execute } from "thirdweb/extensions/vote"; const transaction = execute({ contract, targets: ..., values: ..., calldatas: ..., descriptionHash: ..., overrides: { ... }}); // Send the transaction...
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.