Skip to main content
POST
/
v2
/
traditional_investing
/
enable_unified_account
Python (SDK)
from compass_api_sdk import CompassAPI


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.traditional_investing.traditional_investing_enable_unified_account(owner="<value>")

    # Handle response
    print(res)
{
  "mode": "<string>",
  "typed_data": {},
  "action": {},
  "nonce": 123
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Body

application/json

Request to enable unified account mode on Hyperliquid.

owner
string
required

User's EOA address

Response

Successful Response

Returned by the enable_unified_account endpoint.

If the account is already in unified mode, typed_data/action/nonce are null. If not, they contain the EIP-712 payload the user must sign.

mode
string
required

Current account abstraction mode (e.g. 'default', 'unifiedAccount')

typed_data
Typed Data · object

EIP-712 typed data for wallet signing, or null if already unified

action
Action · object

Raw Hyperliquid action (passed back to the execute endpoint), or null

nonce
integer | null

Timestamp-based nonce, or null if no action needed