Skip to content
Alchemy Logo

Subaccounts

This API is in private preview. Target October 2026; timing is subject to change.

Returns a master's named sub-accounts with their perpetual and spot account state.

Available now. This read is served at the interim endpoint today.

POST /{apiKey}/info

ParameterTypeRequiredDescription
typestringYesSelects subAccounts.
userstringYesMaster or sub-account address.
{
  "type": "subAccounts",
  "user": "0x0000000000000000000000000000000000000000"
}

FieldTypeDescription
[]array | nullSub-account entries; the native API can return null when no state is available.
[].namestringDisplay name assigned to the sub-account.
[].subAccountUserstringAddress of the sub-account.
[].masterstringAddress that controls this sub-account.
[].clearinghouseStateobjectPerpetual account state for the sub-account.
[].clearinghouseState.marginSummaryobjectCross-margin collateral, notional, and margin metrics.
[].clearinghouseState.withdrawablestringUSDC withdrawable while retaining the current perpetual positions.
[].clearinghouseState.assetPositionsarrayOpen perpetual positions with their position state.
[].clearinghouseState.timeintegerMillisecond timestamp of the included perpetual-account state.
[].spotState.balances[]arraySpot balances held by the sub-account.
[].spotState.balances[].coinstringSpot-token symbol, for example USDC.
[].spotState.balances[].totalstringCombined balance for that spot token, as a decimal string.
[].spotState.balances[].holdstringAmount reserved by orders.

[
  {
    "name": "Test",
    "subAccountUser": "0x035605fc2f24d65300227189025e90a0d947f16c",
    "master": "0x8c967e73e6b15087c42a10d344cff4c96d877f1d",
    "clearinghouseState": {
      "withdrawable": "29.78001",
      "assetPositions": [],
      "time": 1733968369395
    },
    "spotState": {
      "balances": [{ "coin": "USDC", "total": "0.22", "hold": "0.0" }]
    }
  }
]
Was this page helpful?