setVotingDelay

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

Example

import { sendTransaction } from "thirdweb";
import { setVotingDelay } from "thirdweb/extensions/vote";
const transaction = setVotingDelay({
contract,
newVotingDelay: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function setVotingDelay(
| { asyncParams: () => Promise<SetVotingDelayParams> }
>,

Parameters

The options for the "setVotingDelay" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.