authorize_trading_key
Authorize the key that signs your LIVE orders. Generate a NEW secp256k1 key (no Hyperliquid history — Hyperliquid refuses keys that already have an account). Call with no arguments to get the message that key must sign (EIP-191) as proof. Fund the trading wallet first. Then call with trading_key_address + trading_key_proof: you get payload_b64 (the exact Privy request as canonical JSON) and a verify list — decode it and check every field against YOUR records (your saved privy_wallet_id, your trading key) BEFORE signing it with your OWNER P-256 key (ECDSA P-256 over SHA-256, DER, base64). Call a third time adding time + owner_signature. Valid 180 days; repeat to renew or rotate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Last call only: the `time` returned by the previous call | |
| owner_signature | No | Last call only: your OWNER key's signature over payload_b64 | |
| trading_key_proof | No | EIP-191 signature of trading_key_message by the trading key | |
| trading_key_address | No |