Solana IDL reference › Drift V2
Program ID dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH. IDL name drift, version 2.143.0. Format: legacy Anchor IDL (discriminators computed). 111 type definitions. Source: solana-idls@1.2.1.
| Account | Discriminator | Size (bytes) |
|---|---|---|
| AmmCache | 0xd572a1381416023b | varies |
| OpenbookV2FulfillmentConfig | 0x032b3a6a8384c7ab | 304 |
| PhoenixV1FulfillmentConfig | 0xe92d3e2823813048 | 208 |
| SerumV3FulfillmentConfig | 0x41a0c570efa867b9 | 344 |
| HighLeverageModeConfig | 0x03c45abdc140e4ea | 48 |
| IfRebalanceConfig | 0xd65428fb6b90adef | 152 |
| InsuranceFundStake | 0x6eca0e2a5f495a5f | 136 |
| ProtocolIfSharesTransferConfig | 0xbc01d56217941e01 | 304 |
| LPPool | 0xe4988de0a1aa0b59 | 336 |
| Constituent | 0x003d2423b14cd8cd | 320 |
| AmmConstituentMapping | 0xfe5905ad4236d6f7 | varies |
| ConstituentTargetBase | 0xff8e86477d42c663 | varies |
| ConstituentCorrelations | 0x7ccb732112a243d8 | varies |
| PrelaunchOracle | 0x5c0e8bea48f4441a | 120 |
| PerpMarket | 0x0adf0c2c6bf537f7 | 1216 |
| ProtectedMakerModeConfig | 0x2f565a09e0ff0a45 | 48 |
| PythLazerOracle | 0x9f07a1f922517985 | 48 |
| RevenueShare | 0x3728e4078b34b46e | 74 |
| RevenueShareEscrow | 0x62a7032e4ab1adfc | varies |
| SignedMsgUserOrders | 0x460632f8de018f31 | varies |
| SignedMsgWsDelegates | 0xbe736f2cd8fc6c55 | varies |
| SpotMarket | 0x64b1086ba8414127 | 776 |
| State | 0xd8926b5e684bb6b1 | 992 |
| User | 0x9f755fe3ef973aec | 4376 |
| UserStats | 0xb0df881b7a4f20e3 | 240 |
| ReferrerName | 0x6985aa6e342a1cb6 | 136 |
| FuelOverflow | 0xb640e7b1e28e453a | 240 |
| Event | Discriminator |
|---|---|
| NewUserRecord | 0xecba71db2a3395f9 |
| DepositRecord | 0xb4f1dacf66872c86 |
| SpotInterestRecord | 0xb7bacbbae1bb5f82 |
| FundingPaymentRecord | 0x083b601489c9385f |
| FundingRateRecord | 0x4403ff1a855b93fe |
| CurveRecord | 0x65ee28e4462e3d75 |
| SignedMsgOrderRecord | 0xd3c519128e56711b |
| OrderRecord | 0x681340385915025a |
| OrderActionRecord | 0xe0344347c2ed6d01 |
| LPRecord | 0x65163626b20d8e6f |
| LiquidationRecord | 0x7f11006cb60de735 |
| SettlePnlRecord | 0x3944691a77c6d559 |
| InsuranceFundRecord | 0x38ded7eb4ec56392 |
| InsuranceFundStakeRecord | 0x44429c07d894fa72 |
| InsuranceFundSwapRecord | 0x55be63cbed21e364 |
| TransferProtocolIfSharesToRevenuePoolRecord | 0xd1768ea7822ea497 |
| SwapRecord | 0xa2bb7bc28a38faf1 |
| SpotMarketVaultDepositRecord | 0xb2d917bc7fbe2049 |
| DeleteUserRecord | 0x476fbe76070384de |
| FuelSweepRecord | 0x295425f684f08308 |
| FuelSeasonRecord | 0x13897721e0f90657 |
| RevenueShareSettleRecord | 0x3da2590a18143b2d |
| LPSettleRecord | 0xd0bf836ead300702 |
| LPSwapRecord | 0x9f3e82c4604fb0fe |
| LPMintRedeemRecord | 0x35b28e494e5b5b08 |
| LPBorrowLendDepositRecord | 0xf2b50b38f33d4fd2 |
GET /api/idl/drift-v2 (Rugsight's normalized JSON, not the original IDL file)Decoding runs on Rugsight's server against the bundled snapshot. Nothing is fetched from the chain. Paste public account data only; never paste a private key or seed phrase.
Data: solana-idls@1.2.1 (MIT, © Obsidian Protocol) and SPL Token / Token-2022 state layouts (Apache-2.0), snapshot 2026-11-17. Programs can upgrade and an IDL snapshot can lag the deployed program, so check important offsets against current account data.