proposals

Calls the "proposals" function on the contract.

Example

import { proposals } from "thirdweb/extensions/vote";
const result = await proposals({
contract,
key: ...,
});
function proposals(
): Promise<readonly [bigint, string, bigint, bigint, string]>;

Parameters

The options for the proposals function.

Type

Returns

let returnType: Promise<
readonly [bigint, string, bigint, bigint, string]
>;

The parsed result of the function call.