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