Solana instructions › Drift V2 › initializeSpotMarket
Drift V2 instruction. Program ID dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH. Position in this snapshot: 98.
Discriminator or tag: 0xeac4802c5e0f30c9 — computed from the standard Anchor rule (first 8 bytes of sha256("global:<snake_case_name>")); confirm against a published IDL or a live transaction before relying on it in production code.
| # | Account | Role |
|---|---|---|
| 0 | spotMarket | writable |
| 1 | spotMarketMint | read-only |
| 2 | spotMarketVault | writable |
| 3 | insuranceFundVault | writable |
| 4 | driftSigner | read-only |
| 5 | state | writable |
| 6 | oracle | read-only |
| 7 | admin | writable, signer |
| 8 | rent | read-only |
| 9 | systemProgram | read-only |
| 10 | tokenProgram | read-only |
| Argument | Type |
|---|---|
| optimalUtilization | u32 |
| optimalBorrowRate | u32 |
| maxBorrowRate | u32 |
| oracleSource | OracleSource |
| initialAssetWeight | u32 |
| maintenanceAssetWeight | u32 |
| initialLiabilityWeight | u32 |
| maintenanceLiabilityWeight | u32 |
| imfFactor | u32 |
| liquidatorFee | u32 |
| ifLiquidationFee | u32 |
| activeStatus | bool |
| assetTier | AssetTier |
| scaleInitialAssetWeightStart | u64 |
| withdrawGuardThreshold | u64 |
| orderTickSize | u64 |
| orderStepSize | u64 |
| ifTotalFactor | u32 |
| name | [u8; 32] |
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.