Skip to main content
The State account stores global protocol configuration and parameters.

Account Structure

The State account is defined in programs/drift/src/state/state.rs.

Key Fields

Pubkey
Protocol admin public key
ExchangeStatus
Global exchange status (active, paused, etc.)
OracleGuardRails
Oracle validation parameters
u64
Number of users with accounts
u64
Total number of sub-accounts
FeeStructure
Perpetual market fee configuration
FeeStructure
Spot market fee configuration
u32
Maximum fee for initializing a user account

Fee Structure

Fee tiers are based on 30-day trading volume.

Access via SDK

DriftClient API

Access state via SDK

Program Architecture

Architecture overview