haedal-hawal
Haedal haWAL
Haedal Protocol is a DeFi ecosystem on the SUI blockchain. haWAL is its liquid staking token (LST) for WAL: stake WAL to receive haWAL, earn staking rewards, and optionally choose validators. This skill calls the Haedal Skills API to perform stake, withdraw, instant withdraw, and claim operations via curl — no custom scripts required.
Call the haWAL 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".
Validator when staking
Only the stake method requires a validator (validator node node_id):
- Passing
0x0means "use the default validator". - If the user does not provide a validator: show a reference list of validators and let the user choose. The user can respond with index 1–10 or the validator name. Map this to the corresponding
node_idfrom the table and include it in the request. - The reference list is defined in
references/validators.md(mapping between name and node_id, indexed 1–10).
Typical flow: the user says "stake hawal" without specifying a validator → present 10 reference validators (index + name) → the user replies with "1" or "Nansen", etc. → use the corresponding node_id to call stake.