sdk/builders/operations/Vote.ts
Vote overview
Vote operation - submit voting procedures for governance actions.
Added in v2.0.0
Table of contents
programs
createVoteProgram
Creates a ProgramStep for vote operation. Adds voting procedures to the transaction and tracks redeemers for script-controlled voters.
Implementation:
- Validates voting procedures structure
- Merges with existing voting procedures if any
- Tracks redeemers for script-controlled voters (by voter key)
RedeemerBuilder Support:
- Static: Direct Data value stored immediately
- Self: Callback stored for per-voter resolution after coin selection
- Batch: Callback + input set stored for multi-voter resolution
Signature
export declare const createVoteProgram: (params: VoteParams) => Effect.Effect<void, TransactionBuilderError, TxContext>Added in v2.0.0