Core Instructions
initialize_user
Creates a new user trading account.u16
required
Sub-account ID (0-9999) for portfolio segregation
[u8; 32]
required
User account name (32 bytes)
deposit
Deposits collateral into user account.withdraw
Withdraws collateral from user account.SDK Usage
See the SDK guides for TypeScript usage:Account Management
Create and manage accounts
DriftClient API
Client methods