approve_jst_for_voting
Approve JST tokens for WJST voting contract to enable JST deposits and gain voting power. Pass exact amount to approve or 'max' for unlimited approval (user must opt in).
Instructions
Approve JST token for the WJST voting contract. Required before depositing JST to get voting power. Pass the EXACT amount you intend to deposit (recommended). Pass amount='max' for unlimited approval ONLY when the user explicitly opts in — it lets the WJST contract spend the user's entire JST balance, present and future, until revoked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Exact amount to approve (e.g. '1000'), or 'max' for unlimited (NOT recommended; user must opt in). | |
| network | No | Network. Default: mainnet |