The State account stores global protocol configuration and parameters.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.
Account Structure
The State account is defined inprograms/drift/src/state/state.rs.
Key Fields
Protocol admin public key
Global exchange status (active, paused, etc.)
Oracle validation parameters
Number of users with accounts
Total number of sub-accounts
Perpetual market fee configuration
Spot market fee configuration
Maximum fee for initializing a user account
Fee Structure
Access via SDK
DriftClient API
Access state via SDK
Program Architecture
Architecture overview