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
...

Parameters

Returns

A prepared transaction object.