subAccounts
Info API
subAccounts
Commonly used to fetch a master wallet’s sub-accounts along with their full perp and spot state in a single call.
POST
subAccounts
Documentation Index
Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Credit Cost
1 per call
Processing
Realtime
- Wire-equal to
POST api.hyperliquid.xyz/infowith{"type": "subAccounts", "user": "..."}. - For per-sub-account real-time updates, subscribe to
walletTxson eachsubAccountUserreturned here. - For multi-wallet polling without traversing master/sub-account hierarchy, see
batchClearinghouseStateandbatchSpotClearinghouseState.
null for wallets that aren’t master accounts.
Endpoint
Request
Always
"subAccounts".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
Optional human-readable label assigned to the sub-account.
The sub-account’s wallet address (0x-prefixed hex).
The master wallet address that owns this sub-account.
Perp account state for this sub-account. Identical shape to the single-wallet
clearinghouseState response - margin summaries, asset positions, withdrawable balance, snapshot timestamp.Spot account state for this sub-account. Identical shape to the single-wallet
spotClearinghouseState response - per-token balances and the optional tokenToAvailableAfterMaintenance array.