propose

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

Example

import { propose } from "thirdweb/extensions/vote";
const transaction = propose({
contract,
targets: ...,
values: ...,
calldatas: ...,
description: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.