Solana IDL reference › Drift V2 › OrderActionRecord

OrderActionRecord event

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:OrderActionRecord").

Discriminator (computed with the standard Anchor rule: first 8 bytes of sha256("event:OrderActionRecord"))

hex 0xe0344347c2ed6d01

bytes [224, 52, 67, 71, 194, 237, 109, 1]

base58 eW4YcHbN6WL

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
tsi6488
actionOrderAction161
actionExplanationOrderActionExplanation171
marketIndexu16182
marketTypeMarketType201
fillerOption<pubkey>21varies
fillerRewardOption<u64>variesvaries
fillRecordIdOption<u64>variesvaries
baseAssetAmountFilledOption<u64>variesvaries
quoteAssetAmountFilledOption<u64>variesvaries
takerFeeOption<u64>variesvaries
makerFeeOption<i64>variesvaries
referrerRewardOption<u32>variesvaries
quoteAssetAmountSurplusOption<i64>variesvaries
spotFulfillmentMethodFeeOption<u64>variesvaries
takerOption<pubkey>variesvaries
takerOrderIdOption<u32>variesvaries
takerOrderDirectionOption<PositionDirection>variesvaries
takerOrderBaseAssetAmountOption<u64>variesvaries
takerOrderCumulativeBaseAssetAmountFilledOption<u64>variesvaries
takerOrderCumulativeQuoteAssetAmountFilledOption<u64>variesvaries
makerOption<pubkey>variesvaries
makerOrderIdOption<u32>variesvaries
makerOrderDirectionOption<PositionDirection>variesvaries
makerOrderBaseAssetAmountOption<u64>variesvaries
makerOrderCumulativeBaseAssetAmountFilledOption<u64>variesvaries
makerOrderCumulativeQuoteAssetAmountFilledOption<u64>variesvaries
oraclePricei64varies8
bitFlagsu8varies1
takerExistingQuoteEntryAmountOption<u64>variesvaries
takerExistingBaseAssetAmountOption<u64>variesvaries
makerExistingQuoteEntryAmountOption<u64>variesvaries
makerExistingBaseAssetAmountOption<u64>variesvaries
triggerPriceOption<u64>variesvaries
builderIdxOption<u8>variesvaries
builderFeeOption<u64>variesvaries

Where this event appears

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.

Decode this event

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.

Other Drift V2 events

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.