castVoteWithReason

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

Example

import { castVoteWithReason } from "thirdweb/extensions/vote";
const transaction = castVoteWithReason({
contract,
proposalId: ...,
support: ...,
reason: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.