getVotes

Calls the "getVotes" function on the contract.

Example

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

Parameters

The options for the getVotes function.

Type

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.