subAccounts | Hyperliquid Info API
Info API
subAccounts | Hyperliquid Info API
Hyperliquid subAccounts: fetch a master wallet’s sub-accounts along with their full perp and spot state in a single call.
POST
subAccounts | Hyperliquid Info API
Credit Cost
1 per call
Processing
Realtime
type: "subAccounts" is used to fetch a master wallet’s sub-accounts along with their full perp and spot state in a single call.
- Wire-equal to
POST api.hyperliquid.xyz/infowith{"type": "subAccounts", "user": "..."}. - For multi-wallet polling without traversing master/sub-account hierarchy, see
batchClearinghouseStateandbatchSpotClearinghouseState.
null for wallets that aren’t master accounts.
Endpoint
Request
string
required
Always
"subAccounts".string
required
The master wallet address (lowercase 0x-prefixed hex).
Example
Response
An array of sub-account objects, ornull if the queried wallet is not a master account.
Field descriptions
string
Optional human-readable label assigned to the sub-account.
string
The sub-account’s wallet address (0x-prefixed hex).
string
The master wallet address that owns this sub-account.
object
Perp account state for this sub-account. Identical shape to the single-wallet
clearinghouseState response - margin summaries, asset positions, withdrawable balance, snapshot timestamp.object
Spot account state for this sub-account. Identical shape to the single-wallet
spotClearinghouseState response - per-token balances and the optional tokenToAvailableAfterMaintenance array.