> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# subAccounts

> Native Hyperliquid `/info` operation. Returns the user's sub-accounts.



## OpenAPI

````yaml /reference/api-json/hyperliquid-info-api-json.json post /v1/hyperliquid/info#52
openapi: 3.0.0
info:
  title: Uniblock Hyperliquid Info API
  description: >-
    Per-operation request/response docs for the Raw Hyperliquid Info dispatch
    endpoint. Each Hyperliquid Info `type` is a synthetic path through the
    single `POST /v1/hyperliquid/info` unified route.
  version: '1.0'
servers:
  - url: https://api.uniblock.dev/uni
    description: Gateway
security:
  - ApiKeyAuth: []
tags:
  - name: Hyperliquid
paths:
  /v1/hyperliquid/info#52:
    post:
      tags:
        - Hyperliquid
      summary: subAccounts
      description: Native Hyperliquid `/info` operation. Returns the user's sub-accounts.
      operationId: subAccounts_HyperliquidInfo
      parameters:
        - name: chainId
          required: true
          in: query
          description: Unique identifier for a blockchain network.
          schema:
            type: number
            enum:
              - 999
              - 998
            default: 999
            example: 999
        - name: provider
          required: false
          in: query
          description: >-
            Specify which provider to use. The project's provider priority list
            is used by default if no providers are selected. (Priority list can
            be managed on Uniblock's dashboard)
          schema:
            type: string
            enum:
              - Dwellir
              - Chainstack
              - Covalent
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HyperliquidInfo_subAccounts_Request'
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HyperliquidInfo_subAccounts_Response'
components:
  schemas:
    HyperliquidInfo_subAccounts_Request:
      type: object
      required:
        - type
        - user
      properties:
        type:
          type: string
          enum:
            - subAccounts
          default: subAccounts
          example: subAccounts
        user:
          type: string
          description: The account address to query (0x-prefixed).
          example: '0x000000000000000000000000000000000000dEaD'
      example:
        type: subAccounts
        user: '0x000000000000000000000000000000000000dEaD'
    HyperliquidInfo_subAccounts_Response:
      type: array
      nullable: true
      description: >-
        The user's sub-accounts, or `null` if the account has none. Each entry
        carries the sub-account identity plus its perpetuals and spot state.
      items:
        type: object
        required:
          - name
          - subAccountUser
          - master
        properties:
          name:
            type: string
            example: Sub 1
          subAccountUser:
            type: string
            example: '0x000000000000000000000000000000000000dEaD'
          master:
            type: string
            example: '0x000000000000000000000000000000000000dEaD'
          clearinghouseState:
            type: object
          spotState:
            type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key to access the API (Optional)

````