castVoteWithReasonAndParamsBySig

Prepares a transaction to call the "castVoteWithReasonAndParamsBySig" function on the contract.

Example

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 });
function castVoteWithReasonAndParamsBySig(
| {
asyncParams: () => Promise<CastVoteWithReasonAndParamsBySigParams>;
}
>,

Parameters

The options for the "castVoteWithReasonAndParamsBySig" function.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.