votingPeriod

Calls the "votingPeriod" function on the contract.

Example

import { votingPeriod } from "thirdweb/extensions/vote";
const result = await votingPeriod({
contract,
});
function votingPeriod(
): Promise<bigint>;

Parameters

The options for the votingPeriod function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.