state

Calls the "state" function on the contract.

Example

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

Parameters

Returns

The parsed result of the function call.