castVoteWithReasonAndParamsBySig

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

Example

import { castVoteWithReasonAndParamsBySig } from "thirdweb/extensions/vote";
const transaction = castVoteWithReasonAndParamsBySig({
contract,
proposalId: ...,
support: ...,
reason: ...,
params: ...,
v: ...,
r: ...,
s: ...,
overrides: {
...
}
});
// Send the transaction
...
function castVoteWithReasonAndParamsBySig(
| {
asyncParams: () => Promise<CastVoteWithReasonAndParamsBySigParams>;
}
>,

Parameters

The options for the "castVoteWithReasonAndParamsBySig" function.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.