state

Calls the "state" function on the contract.

Example

import { state } from "thirdweb/extensions/vote";
const result = await state({
contract,
proposalId: ...,
});
function state(
): Promise<number>;

Parameters

The options for the state function.

Type

Returns

let returnType: Promise<number>;

The parsed result of the function call.