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