Minimal Anti Collusion Infrastructure (MACI) / getJoinedUserData
Function: getJoinedUserData()
getJoinedUserData(
-
):Promise
<{isJoined
:boolean
;pollStateIndex?
:string
;voiceCredits?
:string
; }>
Defined in: packages/sdk/ts/user/utils.ts:68
Checks if user is joined to a poll with their public key and get its data
Parameters
-
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