castVoteBySig

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

Example

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

Parameters

The options for the "castVoteBySig" function.

Type

| { asyncParams: () => Promise<CastVoteBySigParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.