Pick a tool for your goal
The bot API covers most manager actions. It does not cover deposits, withdrawals, or request settlement. Use the website for those.
If you deposit
- Read Vaults, shares, and NAV to learn why a deposit waits up to about 4 hours.
- Follow Deposit into and withdraw from a vault.
If you manage a vault
- Ask a Hedgin administrator to whitelist your manager wallet.
- Read How the Hedgin protocol works to learn what the program allows and blocks.
- Follow Manage a vault from vault creation to closing.
- Use the guides for Jupiter, Meteora DLMM, and Phoenix as you invest.
If you build a bot
- Ask a Hedgin administrator for an API key. The key names your manager public key, the vaults it may act on, and the exact actions it may use.
- Keep the API key and the vault’s authority key in your bot’s secret store. Never put either one in a URL, a log, a browser, or a prompt.
- Read How Hedgin transactions work. A bot that retries a send too early can run the same trade twice.
- Read the API introduction. To skip writing the signing and polling loop yourself, use the TypeScript SDK or fork the example Telegram bot.
