subAccounts2
post
/info
Request user sub-accounts.
Body
Request user sub-accounts.
typeundefined · enumRequiredPossible values:
Type of request.
userstring · min: 42 · max: 42RequiredPattern:
User address.
^0[xX][0-9a-fA-F]+$Responses
200
Array of user sub-account or null if the user does not have any sub-accounts.
application/json
Responseany of
Array of user sub-account or null if the user does not have any sub-accounts.
422
Failed to deserialize the JSON body into the target type
text/plain
500
Internal Server Error
application/json
post
/infoPOST /info HTTP/1.1
Host: api.hyperliquid.xyz
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"type": "subAccounts2",
"user": "text"
}[
{
"name": "text",
"subAccountUser": "text",
"master": "text",
"dexToClearinghouseState": [
[]
],
"spotState": {
"balances": [
{
"coin": "text",
"token": 1,
"total": "text",
"hold": "text",
"entryNtl": "text"
}
],
"evmEscrows": [
{
"coin": "text",
"token": 1,
"total": "text"
}
]
}
}
]Last updated