Create Governance Vote
cardano_governance_vote_createCreate a governance vote file for a Cardano governance action by selecting yes/no/abstain and providing one voter key (DRep, SPO, or CC) plus the action ID, index, and output path.
Instructions
Create a governance vote file for a governance action.
Args:
governance_action_tx_id (string): Transaction ID of the governance action
governance_action_index (number): Index of the governance action in the transaction
vote (string): Vote choice: "yes", "no", or "abstain"
drep_verification_key_file (string, optional): Path to DRep verification key (for DRep voter)
cold_verification_key_file (string, optional): Path to cold verification key (for SPO voter)
cc_hot_verification_key_file (string, optional): Path to CC hot verification key (for CC voter)
anchor_url (string, optional): Vote rationale anchor URL
anchor_data_hash (string, optional): Vote rationale anchor data hash
out_file (string): Output path for the vote file
Exactly one voter key file must be provided (DRep, SPO, or CC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vote | Yes | Vote choice | |
| out_file | Yes | Output path for the vote file | |
| anchor_url | No | Vote rationale anchor URL | |
| anchor_data_hash | No | Vote rationale anchor data hash | |
| governance_action_index | Yes | Index of the governance action | |
| governance_action_tx_id | Yes | Transaction ID of the governance action | |
| cold_verification_key_file | No | Path to cold verification key (for SPO voter) | |
| drep_verification_key_file | No | Path to DRep verification key (for DRep voter) | |
| cc_hot_verification_key_file | No | Path to CC hot verification key (for CC voter) |