Skip to content

CastVoteParams

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / CastVoteParams

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12026

Parameters for casting a vote

proposalId: string

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12028

Proposal ID to vote on


choice: number

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12030

Vote choice (e.g., 0 = no, 1 = yes, 2 = abstain)


weight: bigint

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12032

Voting weight/power


encryptionKey: string

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12034

Encryption key (timelock or committee key)


optional voter?: string

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:12036

Optional voter identifier (defaults to ‘anonymous’)