Actions
vote
Participate in governance decisions using callAnyContract.
useCallAnyContract()
Casts a vote in a DAO or governance contract using the generic contract interaction hook. Requires voting rights in the specified contract.
Parameters
- encryptKey (string): User’s decryption PIN
- wallet (WalletData): Wallet credentials
- contractAddress (string): Governance contract address
- entrypoint (string): “vote” (contract method name)
- calldata (any[]): [proposalId, voteChoice]
Example Implementation
Related Actions
- Stake - Earn voting power by staking tokens
- Call Any Contract - For other contract interactions
:::info Voting power is calculated based on your token balance at the snapshot block. :::