CastVoteParams
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / CastVoteParams
Interface: CastVoteParams
Section titled “Interface: CastVoteParams”Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12026
Parameters for casting a vote
Properties
Section titled “Properties”proposalId
Section titled “proposalId”proposalId:
string
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12028
Proposal ID to vote on
choice
Section titled “choice”choice:
number
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12030
Vote choice (e.g., 0 = no, 1 = yes, 2 = abstain)
weight
Section titled “weight”weight:
bigint
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12032
Voting weight/power
encryptionKey
Section titled “encryptionKey”encryptionKey:
string
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12034
Encryption key (timelock or committee key)
voter?
Section titled “voter?”
optionalvoter?:string
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12036
Optional voter identifier (defaults to ‘anonymous’)