castVoteWithReasonAndParams

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

Example

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

Parameters

The options for the "castVoteWithReasonAndParams" function.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.