userAbstraction | Hyperliquid Info API
Info API
userAbstraction | Hyperliquid Info API
Hyperliquid userAbstraction: fetch a user’s account-abstraction mode.
POST
userAbstraction | Hyperliquid Info API
Credit Cost
1 per call
Processing
Realtime
type: "userAbstraction" is used to fetch a user’s account-abstraction mode.
- Wire-equal to
POST api.hyperliquid.xyz/infowith{"type": "userAbstraction", "user": "..."}. - The response body is a bare JSON string (for example
"disabled"), not an object - parse it as a scalar. - Values seen in production are
disabledandunifiedAccount; the wider native enum also includesportfolioMargin,default, and the legacydexAbstraction.
disabled means the account keeps separate perp and spot balances, while unifiedAccount means a single balance per asset is shared across all DEXes with cross-margin positions sharing collateral.
User-keyed.
Endpoint
Request
string
required
Always
"userAbstraction".string
required
The wallet address (lowercase 0x-prefixed hex).
Example
Response
The body is a bare JSON string - not an object - naming the account-abstraction mode.Field descriptions
string
Account-abstraction mode. One of:
disabled- abstraction disabled; separate perp and spot balances.unifiedAccount- single balance per asset across all DEXes; cross-margin positions share collateral.portfolioMargin- single portfolio unifying eligible assets with borrowing / LTV.default- default mode.dexAbstraction- DEX abstraction mode (legacy, being discontinued).