User instructions handle account creation, collateral management, and user settings.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/drift-labs/protocol-v2/llms.txt
Use this file to discover all available pages before exploring further.
Core Instructions
initialize_user
Creates a new user trading account.Sub-account ID (0-9999) for portfolio segregation
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