Check leverage and prepare an updateLeverage action if not 1x cross.
If the asset is already at 1x cross leverage, returns leverage_ok=true 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.
Successful Response
Returned by the ensure_leverage endpoint.
If the asset is already at 1x cross leverage, typed_data/action/nonce are null. If not (or no position exists), they contain the EIP-712 payload the user must sign.
True if leverage is already 1x cross, false if update needed
EIP-712 typed data for wallet signing, or null if already 1x cross
Raw Hyperliquid action (passed back to the execute endpoint), or null
Timestamp-based nonce, or null if no action needed