Solana IDL reference › OpenBook V2 › OpenOrdersPositionLog

OpenOrdersPositionLog event

OpenBook V2 event. Program ID opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb. Data starts with the 8-byte event discriminator, computed with the standard Anchor rule: first 8 bytes of sha256("event:OpenOrdersPositionLog").

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

hex 0xc4f99421a8e44906

bytes [196, 249, 148, 33, 168, 228, 73, 6]

base58 ZwuQ9JvnAB7

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
ownerpubkey832
openOrdersAccountNumu32404
marketpubkey4432
bidsBaseLotsi64768
bidsQuoteLotsi64848
asksBaseLotsi64928
baseFreeNativeu641008
quoteFreeNativeu641088
lockedMakerFeesu641168
referrerRebatesAvailableu641248
makerVolumeu12813216
takerVolumeu12814816

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 OpenBook V2 events

OpenBook 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.