getVotes

Calls the "getVotes" function on the contract.

Example

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

Parameters

Returns

The parsed result of the function call.