Skip to main content
Glama

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
NameRequiredDescriptionDefault
wallet_idNoWallet 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);
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/minhoyoo-iotrust/WAIaaS'

If you have feedback or need assistance with the MCP directory API, please join our Discord server