castVoteWithReasonAndParams

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

Example

import { sendTransaction } from "thirdweb";
import { castVoteWithReasonAndParams } from "thirdweb/extensions/vote";
const transaction = castVoteWithReasonAndParams({
contract,
proposalId: ...,
support: ...,
reason: ...,
params: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function castVoteWithReasonAndParams(
| {
asyncParams: () => Promise<CastVoteWithReasonAndParamsParams>;
}
>,

Parameters

The options for the "castVoteWithReasonAndParams" function.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.