import { sendTransaction } from "thirdweb";
import { castVoteWithReasonAndParamsBySig } from "thirdweb/extensions/vote";
const transaction = castVoteWithReasonAndParamsBySig({
contract,
proposalId: ...,
support: ...,
reason: ...,
params: ...,
v: ...,
r: ...,
s: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });