hasVoted

Calls the "hasVoted" function on the contract.

Example

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

Parameters

The options for the hasVoted function.

Type

Returns

let returnType: Promise<boolean>;

The parsed result of the function call.