setVotingDelay

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

Example

import { setVotingDelay } from "thirdweb/extensions/vote";
const transaction = setVotingDelay({
contract,
newVotingDelay: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.