waiaas_hl_list_sub_accounts
Retrieve Hyperliquid sub-accounts associated with a wallet to manage decentralized finance operations across multiple accounts.
Instructions
List Hyperliquid sub-accounts for a wallet.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | No | Wallet ID. Auto-resolved for single-wallet sessions. |
Implementation Reference
- The 'waiaas_hl_list_sub_accounts' tool is registered and implemented in the Hyperliquid tools registry. It fetches sub-accounts for a given wallet ID by calling the /v1/wallets/${walletId}/hyperliquid/sub-accounts endpoint.
server.tool( 'waiaas_hl_list_sub_accounts', withWalletPrefix('List Hyperliquid sub-accounts for a wallet.', walletContext?.walletName), { wallet_id: z.string().optional().describe('Wallet ID. Auto-resolved for single-wallet sessions.'), }, async (args) => { const walletId = args.wallet_id || 'default'; const result = await apiClient.get(`/v1/wallets/${walletId}/hyperliquid/sub-accounts`); return toToolResult(result); }, );