Solana IDL reference › OpenBook V2 › OpenOrdersAccount
OpenBook V2 account type. Program ID opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb. Data starts with the 8-byte account discriminator, computed with the standard Anchor rule: first 8 bytes of sha256("account:OpenOrdersAccount").
Discriminator (computed with the standard Anchor rule: first 8 bytes of sha256("account:OpenOrdersAccount"))
hex 0xffc24e7b1069d0a5
bytes [255, 194, 78, 123, 16, 105, 208, 165]
base58 jnBbrPioefN
| Field | Type | Offset | Size |
|---|---|---|---|
| owner | pubkey | 8 | 32 |
| market | pubkey | 40 | 32 |
| name | [u8; 32] | 72 | 32 |
| delegate | NonZeroPubkeyOption | 104 | 32 |
| key | pubkey | 104 | 32 |
| accountNum | u32 | 136 | 4 |
| bump | u8 | 140 | 1 |
| version | u8 | 141 | 1 |
| padding | [u8; 2] | 142 | 2 |
| position | Position | 144 | 160 |
| bidsBaseLots | i64 | 144 | 8 |
| asksBaseLots | i64 | 152 | 8 |
| baseFreeNative | u64 | 160 | 8 |
| quoteFreeNative | u64 | 168 | 8 |
| lockedMakerFees | u64 | 176 | 8 |
| referrerRebatesAvailable | u64 | 184 | 8 |
| penaltyHeapCount | u64 | 192 | 8 |
| makerVolume | u128 | 200 | 16 |
| takerVolume | u128 | 216 | 16 |
| bidsQuoteLots | i64 | 232 | 8 |
| reserved | [u8; 64] | 240 | 64 |
| openOrders | [OpenOrder; 24] | 304 | 960 |
Every OpenOrdersAccount account starts with the same discriminator, so a memcmp at offset 0 selects this account type. The second filter matches owner at offset 8. A dataSize: 1264 filter would also work only while live accounts still have the snapshot size; programs often add fields in upgrades, so it is left out here. getProgramAccounts on a large program is heavy; many RPC providers limit or disable it.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb",
{
"encoding": "base64",
"filters": [
{
"memcmp": {
"offset": 0,
"bytes": "jnBbrPioefN"
}
},
{
"memcmp": {
"offset": 8,
"bytes": "<owner as base58>"
}
}
]
}
]
}
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.
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.