Skip to main content
Version: v2.x

Minimal Anti Collusion Infrastructure (MACI) / getJoinedUserData

Function: getJoinedUserData()

getJoinedUserData(-): Promise<{ isJoined: boolean; pollStateIndex: string; voiceCredits: string; }>

Defined in: packages/sdk/ts/user/user.ts:116

Checks if user is joined to a poll with their public key and get its data

Parameters

-

IJoinedUserArgs

The arguments for the join check command

Returns

Promise<{ isJoined: boolean; pollStateIndex: string; voiceCredits: string; }>

user joined or not and poll state index, voice credit balance