Account abstraction modes

A user's account abstraction mode determines how spot and perps balances interact, and whether various assets are used as collateral for perps trading.

The supported modes are:

  1. Standard (recommended for market makers, high volume automated users, and deployers/builders): separate perp and spot balances, separate DEX balances. Cross margin applies to each DEX separately.

  2. Unified account (recommended for most users): single balance for each asset. This balance collateralizes all cross margin positions in that asset and is unified with spot balance in that asset. For example, USDC balance is the single source for validator-operated perps, XYZ perps, and spot trading against USDC as a quote asset. USDH spot balance is the single source for KM perps, FLX perps, VNTL perps, and spot trading against USDH as a quote asset.

  3. Portfolio margin (most capital efficient, currently in pre-alpha): single portfolio unifying all eligible assets, which are currently HYPE, BTC, USDH, USDC. See Portfolio margin for more details.

There is one more mode that is not relevant to most users, included here for completeness:

  1. DEX abstraction (to be discontinued): USDC balances default to perps balance, all other collateral defaults to spot balance.

Important details:

  1. Builder code addresses must be in Standard mode to accrue builder fees

  2. Portfolio margin and unified account are limited to 50k user actions per day. Standard mode has no such restrictions.

  3. For API users, unified account and portfolio margin shows all balances and holds in the spot clearinghouse state. Individual perp dex user states are not meaningful.

See Python SDK and API docs for examples on the agent- and user-signed actions for changing account abstraction modes. Automated traders can also use the Settings dropdown on app.hyperliquid.xyz to change their account abstraction modes. app.hyperliquid.xyz defaults to unified account, and Classic in "Account Unification Mode" refers to standard, DEX abstraction (which will be discontinued), or unified account.

Last updated