propose

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

Example

import { sendTransaction } from "thirdweb";
import { propose } from "thirdweb/extensions/vote";
const transaction = propose({
contract,
targets: ...,
values: ...,
calldatas: ...,
description: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function propose(
ProposeParams | { asyncParams: () => Promise<ProposeParams> }
>,

Parameters

The options for the "propose" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.