haedal-vehaedal
Haedal VeHaedal
Haedal Protocol is a DeFi ecosystem on the SUI blockchain. VeHaedal is its vote-escrowed governance token: lock HAEDAL for veHaedal to earn rewards and voting power; lock duration and optional decay affect reward rates. This skill calls the Haedal Skills API for add stake, extend lock, claim rewards, decay control, and unstake — no custom scripts required.
Call the VeHaedal HTTP APIs directly with curl.
All numeric parameters are human‑readable amounts: pass amount and similar quantity fields as human‑readable values, without multiplying by decimals. For example, to stake 20 tokens, simply send "amount":"20".
Querying veHaedal objects (get_vehaedal_list)
Several methods (add_to_existing_stake, extend_existing_lock, start_decay, stop_decay, unstake_and_claim) require a vehaedalObj — the object ID of an existing veHaedal position. When the user triggers one of these methods:
- Ask the user whether they already have the veHaedal object ID. If yes, use it directly.
- If discovery is needed: call get_vehaedal_list with the user's
address. On HTTP 200 the response body is:{ "list": [ { "objectId": "0x...",