Solana IDL reference › Drift V2 › InsuranceFundStakeRecord
Drift V2 event. Program ID dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH. Data starts with the 8-byte event discriminator, computed with the standard Anchor rule: first 8 bytes of sha256("event:InsuranceFundStakeRecord").
Discriminator (computed with the standard Anchor rule: first 8 bytes of sha256("event:InsuranceFundStakeRecord"))
hex 0x44429c07d894fa72
bytes [68, 66, 156, 7, 216, 148, 250, 114]
base58 CRD9Mrnxjso
| Field | Type | Offset | Size |
|---|---|---|---|
| ts | i64 | 8 | 8 |
| userAuthority | pubkey | 16 | 32 |
| action | StakeAction | 48 | 1 |
| amount | u64 | 49 | 8 |
| marketIndex | u16 | 57 | 2 |
| insuranceVaultAmountBefore | u64 | 59 | 8 |
| ifSharesBefore | u128 | 67 | 16 |
| userIfSharesBefore | u128 | 83 | 16 |
| totalIfSharesBefore | u128 | 99 | 16 |
| ifSharesAfter | u128 | 115 | 16 |
| userIfSharesAfter | u128 | 131 | 16 |
| totalIfSharesAfter | u128 | 147 | 16 |
Anchor programs emit events in one of two ways. With emit! the event is written to the transaction logs as Program data: <base64>; the decoded bytes are the 8-byte discriminator above followed by the Borsh-encoded fields. With emit_cpi! the program calls itself and the event is in that inner instruction's data, which starts with the 8-byte tag 0xe445a52e51cb9a1d, then the discriminator and the fields. Logs can be truncated on busy transactions; inner-instruction data is not. The decoder below accepts both forms. How to decode Anchor events.
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.
Drift V2 instructions · Explain a transaction
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.