proposalIndex

Calls the "proposalIndex" function on the contract.

Example

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

Parameters

The options for the proposalIndex function.

Type

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

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.