Solana instructions › Drift V2

Drift V2 instructions

Program ID dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH. 249 instructions in this snapshot. Source: solana-idls@1.2.1.

InstructionDiscriminator or tag
initializeUser0x6f11b9fa3c7a26fe7 accounts
initializeUserStats0xfef34862fb82a8d56 accounts
initializeSignedMsgUserOrders0xa4639c7e9c3963b45 accounts
resizeSignedMsgUserOrders0x890a579612734fa85 accounts
initializeSignedMsgWsDelegates0x288460dbb8c150084 accounts
changeSignedMsgWsDelegateStatus0xfccafcdbb31b548a3 accounts
initializeFuelOverflow0x58df84a1d0588e2a6 accounts
sweepFuel0xaf6b1338a5f12b454 accounts
resetFuelSeason0xc77ac0ff20633fc84 accounts
initializeReferrerName0xeb7ee70a2aa41a3d7 accounts
deposit0xf223c68952e1f2b67 accounts
withdraw0xb712469c946da1228 accounts
transferDeposit0x141493df293fcc6f6 accounts
transferPools0xc5679a196b5a3c5e10 accounts
transferPerpPosition0x17acbca886d2036c5 accounts
depositIntoIsolatedPerpPosition0x6530ff997f79aa1a7 accounts
transferIsolatedPerpPositionDeposit0xc983f2e455e246ed5 accounts
withdrawFromIsolatedPerpPosition0x255cb2958c4c9f878 accounts
placePerpOrder0x45a15dca787e4cb93 accounts
cancelOrder0x5f81edf00831df843 accounts
cancelOrderByUserId0x6bd3fa85122539643 accounts
cancelOrders0xeee15f9ee36708c23 accounts
cancelOrdersByIds0x861390a55ef0d25e3 accounts
modifyOrder0x2f7c75ffc9c5825e3 accounts
modifyOrderByUserId0x9e4d04fdfcc2a1b33 accounts
placeAndTakePerpOrder0xd53301bb6cdce6e04 accounts
placeAndMakePerpOrder0x95750bed2f5f59ed6 accounts
placeAndMakeSignedMsgPerpOrder0x101a7b835e1daf627 accounts
placeSignedMsgTakerOrder0x204f658b1906620f6 accounts
placeSpotOrder0x2d4f51a0f85a5bdc3 accounts
placeAndTakeSpotOrder0xbf038a4772c6ca644 accounts
placeAndMakeSpotOrder0x959e5542ef09f3626 accounts
placeOrders0x3c3f327b0cc53cbe3 accounts
beginSwap0xae6de401f269e86911 accounts
endSwap0xb1b81bc1220dd29111 accounts
updateUserName0x8719b938a53522882 accounts
updateUserCustomMarginRatio0x15dd8cbb20810b7b2 accounts
updateUserPerpPositionCustomMarginRatio0x79899d9b59ba91712 accounts
updateUserMarginTradingEnabled0xc25cccdff6bc1fcb2 accounts
updateUserPoolId0xdb56496a38da806d2 accounts
updateUserDelegate0x8bcd8d8d71245ebb2 accounts
updateUserReduceOnly0xc7472a439013566d2 accounts
updateUserProtectedMakerOrders0x72277bc6bb195adb4 accounts
deleteUser0xba5511f9dbe762fb4 accounts
forceDeleteUser0x02f1c3ace318fe9e6 accounts
deleteSignedMsgUserOrders0xddf780fdd4fe2e993 accounts
reclaimRent0xdac813c5e359c0165 accounts
enableUserHighLeverageMode0xe718e670c9ad49b84 accounts
fillPerpOrder0x0dbcf86786d96af06 accounts
revertFill0xeceeb045ef0ab5c14 accounts
fillSpotOrder0xd4ce82ad1522c7286 accounts
triggerOrder0x3f7033e9e82ff0c74 accounts
forceCancelOrders0x40b5c43fde4840e84 accounts
updateUserIdle0xfd85431667a114644 accounts
logUserBalances0xa21523fb2039a1d23 accounts
disableUserHighLeverageMode0xb79b2d00e255d5454 accounts
updateUserFuelBonus0x58afc9bede648f394 accounts
updateUserStatsReferrerStatus0xae9a482abf9491cd3 accounts
adminDisableUpdatePerpBidAskTwap0x11a4522db756bfc73 accounts
settlePnl0x2b3dea2d0f5f98994 accounts
settleMultiplePnls0x7f4275392832987f4 accounts
settleFundingPayment0xde5aca5e1c2d73b72 accounts
settleExpiredMarket0x78590b197a4d48c13 accounts
liquidatePerp0x4b2377f7bf128b026 accounts
liquidatePerpWithFill0x5f6f7c6956a9bb226 accounts
liquidateSpot0x6b00802923e5fb126 accounts
liquidateSpotWithSwapBegin0x0c2bb0539cfb750d13 accounts
liquidateSpotWithSwapEnd0x8e58a3a0df4b37e113 accounts
liquidateBorrowForPerpPnl0xa911205acf94d11b6 accounts
liquidatePerpPnlForDeposit0xed4bc6ebe9ba4b236 accounts
setUserStatusToBeingLiquidated0x6a85a0cec1abc0c23 accounts
resolvePerpPnlDeficit0xa8cc44969f7e5f946 accounts
resolvePerpBankruptcy0xe010b0d6a2d5b7de10 accounts
resolveSpotBankruptcy0x7cc2f0fec6d5347a10 accounts
settleRevenueToInsuranceFund0xc8785d884526c79f6 accounts
updateFundingRate0xc9b274d4a69048ee3 accounts
updatePrelaunchOracle0xdc841b1be9dc3ddb3 accounts
updatePerpBidAskTwap0xf717ff41d45addc25 accounts
updateSpotMarketCumulativeInterest0x27a68bf39ea59be14 accounts
updateAmms0xc96ad9fd04afe4612 accounts
updateSpotMarketExpiry0xd00bd39fe2180bf73 accounts
updateUserQuoteAssetInsuranceStake0xfb659c07023f1e176 accounts
updateUserGovTokenInsuranceStake0x8f63ebbb149fb8546 accounts
updateDelegateUserGovTokenInsuranceStake0xf11dd7e48e7416a06 accounts
initializeInsuranceFundStake0xbbb3f346f85a5c938 accounts
addInsuranceFundStake0xfb90730bde2f3eec10 accounts
requestRemoveInsuranceFundStake0x8e46cc5c496ab4345 accounts
cancelRequestRemoveInsuranceFundStake0x61eb4e3ed42af17f5 accounts
removeInsuranceFundStake0x80a68e09febb8fae9 accounts
beginInsuranceFundSwap0xb0458fcd2084a30010 accounts
endInsuranceFundSwap0xcee66208f99ea9a710 accounts
transferProtocolIfSharesToRevenuePool0xec88939992cd681d7 accounts
depositIntoInsuranceFundStake0x0416e2c97c2c52e610 accounts
updatePythPullOracle0xe6bfbd5e6c3b4ac54 accounts
postPythPullOracleUpdateAtomic0x747a899ee0c3ad774 accounts
postMultiPythPullOracleUpdatesAtomic0xf34fcce4e3d064f43 accounts
pauseSpotMarketDepositWithdraw0xb7773baa8923f2564 accounts
initialize0xafaf6d1f0d989bed7 accounts
initializeSpotMarket0xeac4802c5e0f30c911 accounts
deleteInitializedSpotMarket0x1f8c43bfbd1465dd7 accounts
initializeSerumFulfillmentConfig0xc1d384ac46ab075e11 accounts
updateSerumFulfillmentConfigStatus0xab6df0fb5f0195593 accounts
initializeOpenbookV2FulfillmentConfig0x07dd67996b391bc510 accounts
openbookV2FulfillmentConfigStatus0x19ad13bd04d340ee3 accounts
initializePhoenixFulfillmentConfig0x87846e6bb9a0a99a10 accounts
phoenixFulfillmentConfigStatus0x601f71200ccb079a3 accounts
initializePerpMarket0x8409e5767576753e7 accounts
initializeAmmCache0x263cab9ecb3a89085 accounts
updateInitialAmmCacheInfo0x9dd26d43d4aa0c6b3 accounts
initializePredictionMarket0xf846c6e0e0697dc33 accounts
deleteInitializedPerpMarket0x5b9a18576a3bbe423 accounts
moveAmmPrice0xeb6d0252db76069f3 accounts
recenterPerpMarketAmm0x18570a73a5be508b3 accounts
recenterPerpMarketAmmCrank0xa613400a0e33657a5 accounts
updatePerpMarketAmmSummaryStats0x7a65f9eed109f1f55 accounts
updatePerpMarketExpiry0x2cdde397838c166e3 accounts
updatePerpMarketLpPoolPausedOperations0xb55e5d92335920873 accounts
updatePerpMarketLpPoolStatus0x4306fc3d365859e94 accounts
updatePerpMarketLpPoolFeeTransferScalar0x5ee4ed6d64b904513 accounts
settleExpiredMarketPoolsToRevenuePool0x3713eea9e35ac8b84 accounts
depositIntoPerpMarketFeePool0x223a39446150f4068 accounts
updatePerpMarketPnlPool0x32caf9e0a6b80d8f5 accounts
depositIntoSpotMarketVault0x30fc7749ffcdaef76 accounts
depositIntoSpotMarketRevenuePool0x5c28972a7afe8bf66 accounts
repegAmmCurve0x03246659b48078d54 accounts
updatePerpMarketAmmOracleTwap0xf14a727bce9918ca4 accounts
resetPerpMarketAmmOracleTwap0x7f0a37a47be22f184 accounts
updateK0x4862098b81e5ac384 accounts
updatePerpMarketMarginRatio0x82ad6b2d77691a713 accounts
updatePerpMarketHighLeverageMarginRatio0x5870563118744a9d3 accounts
updatePerpMarketFundingPeriod0xaba1455b818ba11c3 accounts
updatePerpMarketMaxImbalances0x0fce49853c0856593 accounts
updatePerpMarketLiquidationFee0x5a890991290894753 accounts
updatePerpMarketLpPoolId0x77d09a58a55c15bc3 accounts
updateInsuranceFundUnstakingPeriod0x2c452be2ccdfca343 accounts
updateSpotMarketPoolId0x16d5c5a08bc151953 accounts
updateSpotMarketLiquidationFee0x0b0dff35388868b13 accounts
updateWithdrawGuardThreshold0x3812273d9bd32c853 accounts
updateSpotMarketIfFactor0x931ee02212e669043 accounts
updateSpotMarketRevenueSettlePeriod0x515c7e29fae19cdb3 accounts
updateSpotMarketStatus0x4e5e10bcc16ee71f3 accounts
updateSpotMarketPausedOperations0x643d9951b40c06f83 accounts
updateSpotMarketAssetTier0xfdd1e70ef2d0f3823 accounts
updateSpotMarketMarginWeights0x6d2157c3ff2406513 accounts
updateSpotMarketBorrowRate0x47efec99d23efe4c3 accounts
updateSpotMarketMaxTokenDeposits0x38bf4f121a7950d03 accounts
updateSpotMarketMaxTokenBorrows0x3966ccd4fd5f0dc73 accounts
updateSpotMarketScaleInitialAssetWeightStart0xd9cccc76cc82e1933 accounts
updateSpotMarketOracle0x72b86625f6bab4635 accounts
updateSpotMarketStepSizeAndTickSize0xee998950ce3bfa3d3 accounts
updateSpotMarketMinOrderSize0x5d800b771a14b5323 accounts
updateSpotMarketOrdersEnabled0xbe4fce0f1ae5e52b3 accounts
updateSpotMarketIfPausedOperations0x65d74f4a3b294f0c3 accounts
updateSpotMarketName0x11d00101a2d3bce03 accounts
updatePerpMarketStatus0x47c9af7affcfc4cf3 accounts
updatePerpMarketPausedOperations0x351088841edc79553 accounts
updatePerpMarketContractTier0xec800f5fcbd644754 accounts
updatePerpMarketImfFactor0xcfc23884234347f43 accounts
updatePerpMarketUnrealizedAssetWeight0x8784cda56d96a66a3 accounts
updatePerpMarketConcentrationCoef0x184ee87ea9b0e6103 accounts
updatePerpMarketCurveUpdateIntensity0x3283069ce2e7bd483 accounts
updatePerpMarketReferencePriceOffsetDeadbandPct0xd649a60bda4c6ea33 accounts
updateLpCooldownTime0xc6855829f1773d0e2 accounts
updatePerpFeeStructure0x17b26fcb49168c4b2 accounts
updateSpotFeeStructure0x61d8698371f68e8d2 accounts
updateInitialPctToLiquidate0xd285e180c2320d6d2 accounts
updateLiquidationDuration0x1c9a14f966c049472 accounts
updateLiquidationMarginBufferRatio0x84e0f3a09a5261d72 accounts
updateOracleGuardRails0x83700a3b203628a42 accounts
updateStateSettlementDuration0x6144c7eb83503dad2 accounts
updateStateMaxNumberOfSubAccounts0x9b7bd602dda6cc552 accounts
updateStateMaxInitializeUserFee0xede119edc12d4d612 accounts
updatePerpMarketOracle0xb6716fa043ae59bf6 accounts
updatePerpMarketBaseSpread0x475f54a8099dc6413 accounts
updateAmmJitIntensity0xb5bf356da6f9378e3 accounts
updatePerpMarketMaxSpread0x50fc7a3e28da5b643 accounts
updatePerpMarketStepSizeAndTickSize0xe7ff6119928bae043 accounts
updatePerpMarketName0xd31f15d2406c42c93 accounts
updatePerpMarketMinOrderSize0xe24a05596cdf2e8d3 accounts
updatePerpMarketMaxSlippageRatio0xeb2528c4469236c93 accounts
updatePerpMarketMaxFillReserveFraction0x13ac729a2a87a1853 accounts
updatePerpMarketMaxOpenInterest0xc24f95e0f666ba8c3 accounts
updatePerpMarketNumberOfUsers0x233e90b1b43ed7c43 accounts
updatePerpMarketFeeAdjustment0xc2ae57662b9420703 accounts
updateSpotMarketFeeAdjustment0x94b6037e9d72dc633 accounts
updatePerpMarketFuel0xfc8d6e651b63b6153 accounts
updatePerpMarketProtectedMakerParams0xf9d57322fdef4bad3 accounts
updatePerpMarketOracleLowRiskSlotDelayOverride0x7c6c93e56d757b033 accounts
updatePerpMarketAmmSpreadAdjustment0x9bc3952bdc52adcd3 accounts
updatePerpMarketOracleSlotDelayOverride0xa55befe33face3083 accounts
updateSpotMarketFuel0xe2fd4c471102aba93 accounts
initUserFuel0x84bfe48dc98a3c304 accounts
updateAdmin0xa1b028d53cb8b3e42 accounts
updateWhitelistMint0xa10fa213947890972 accounts
updateDiscountMint0x20fc7ad3421f2ff12 accounts
updateExchangeStatus0x53a0fcfa817431df2 accounts
updatePerpAuctionDuration0x7e6e34ae1eced75a2 accounts
updateSpotAuctionDuration0xb6b2cb48bb8f9d6b2 accounts
initializePrelaunchOracle0xa9b25419af3e1df75 accounts
updatePrelaunchOracleParams0x62cd93f3124b53cf4 accounts
deletePrelaunchOracle0x3ba964314511adfd4 accounts
initializePythPullOracle0xf98cfdf3f84af0ee5 accounts
initializePythLazerOracle0x8c6b21d6ebdb67145 accounts
postPythLazerOracleUpdate0xdaedaaf5278fa6213 accounts
initializeHighLeverageModeConfig0xd5a75df6d0825af85 accounts
initializeLpPool0xf24001de8e2ecce311 accounts
updateHighLeverageModeConfig0x407ad45d8dd9ca373 accounts
initializeProtectedMakerModeConfig0x4367dc435820fc085 accounts
updateProtectedMakerModeConfig0x56a6ebfd43cadf113 accounts
adminDeposit0xd24241b666d6b01e6 accounts
initializeIfRebalanceConfig0x0855b8a7b03dade25 accounts
updateIfRebalanceConfig0x8ef5f942f9b516533 accounts
updateFeatureBitFlagsMmOracle0xda8621bae73b82952 accounts
zeroMmOracleFields0xc0e227cccf7894fa3 accounts
updateFeatureBitFlagsMedianTriggerPrice0x40b9dd2d57930c132 accounts
updateFeatureBitFlagsBuilderCodes0x0180b133ad2d0b662 accounts
initializeRevenueShare0x39097b835234320d5 accounts
initializeRevenueShareEscrow0xbb127b58ee68549a7 accounts
resizeRevenueShareEscrowOrders0x207cf7e197d5e1264 accounts
changeApprovedBuilder0xb386d32dc305bdad4 accounts
updateFeatureBitFlagsSettleLpPool0xba1c4ee69b53f21a2 accounts
updateFeatureBitFlagsSwapLpPool0x5310960c6603163a2 accounts
updateFeatureBitFlagsMintRedeemLpPool0x1a0b8e7ace9f092d2 accounts
initializeConstituent0x0cc42dda5d59002112 accounts
updateConstituentStatus0x4c9fd3efb6d6060f3 accounts
updateConstituentPausedOperations0xb97a99bf83b184d03 accounts
updateConstituentParams0xee827a1f0c68c07a5 accounts
updateLpPoolParams0xd95c02ff1ba7b2513 accounts
addAmmConstituentMappingData0xa4ec822876b32eeb6 accounts
updateAmmConstituentMappingData0x544621a7856b3b185 accounts
removeAmmConstituentMappingData0x14b7d3a21034e5735 accounts
updateConstituentCorrelationData0x4f0e1349dd6a3e6d4 accounts
updateLpConstituentTargetBase0x9d4132cf3beca16e6 accounts
updateLpPoolAum0x587189cef6f7ab8e5 accounts
updateAmmCache0x58043f5e53e0ff824 accounts
overrideAmmCacheInfo0xbdc680093191c9733 accounts
resetAmmCache0x9607d59573a800294 accounts
lpPoolSwap0x24a12731e30123e214 accounts
viewLpPoolSwapFees0x7ebd6dbdaa9c032e11 accounts
lpPoolAddLiquidity0x3187f6675d92dc8d12 accounts
lpPoolRemoveLiquidity0xa424c1fcc49d8a2b15 accounts
viewLpPoolAddLiquidityFees0x5042e2a1468e77547 accounts
viewLpPoolRemoveLiquidityFees0x2f0c09660ce2c5597 accounts
beginLpSwap0x402c18c7307d435b11 accounts
endLpSwap0x637dd6a581affd8711 accounts
updateConstituentOracleInfo0xc675e7fa93217fa15 accounts
depositToProgramVault0xebab795039ef93dc9 accounts
withdrawFromProgramVault0x7828b795e812e09710 accounts
settlePerpToLpPool0x05622ebc0a3b02f910 accounts

To see which instructions a confirmed transaction actually ran, paste its signature into the Rugsight transaction explainer.

Instruction lists and published discriminators come from solana-idls@1.2.1 (MIT) and, for the System Program, Compute Budget and Associated Token Account programs, from their public instruction enums (Apache-2.0). Snapshot date 2026-11-17. Programs can upgrade, so a live program may differ from this snapshot. Computed Anchor discriminators are the first 8 bytes of sha256("global:<snake_case_name>") and are labelled as computed.