approve_jst_for_voting
Approve JST tokens for the WJST voting contract to enable depositing JST for voting power. Specify the exact amount or opt in for unlimited approval.
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 |