Check account mode and prepare the enable-unified-account action if needed.
If the account is already in unified mode (or portfolio margin), returns the current mode with null typed_data — no signing needed. Otherwise, returns EIP-712 typed data for the user to sign. After signing, submit the signature via the /execute endpoint.
Request to enable unified account mode on Hyperliquid.
User's EOA address
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.
Current account abstraction mode (e.g. 'default', 'unifiedAccount')
EIP-712 typed data for wallet signing, or null if already unified
Raw Hyperliquid action (passed back to the execute endpoint), or null
Timestamp-based nonce, or null if no action needed