Solana IDL reference › OpenBook V2 › Market
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:Market").
Discriminator (computed with the standard Anchor rule: first 8 bytes of sha256("account:Market"))
hex 0xdbbed53700e3c69a
bytes [219, 190, 213, 55, 0, 227, 198, 154]
base58 dkokXHR3DTw
| Field | Type | Offset | Size |
|---|---|---|---|
| bump | u8 | 8 | 1 |
| baseDecimals | u8 | 9 | 1 |
| quoteDecimals | u8 | 10 | 1 |
| padding1 | [u8; 5] | 11 | 5 |
| marketAuthority | pubkey | 16 | 32 |
| timeExpiry | i64 | 48 | 8 |
| collectFeeAdmin | pubkey | 56 | 32 |
| openOrdersAdmin | NonZeroPubkeyOption | 88 | 32 |
| key | pubkey | 88 | 32 |
| consumeEventsAdmin | NonZeroPubkeyOption | 120 | 32 |
| key | pubkey | 120 | 32 |
| closeMarketAdmin | NonZeroPubkeyOption | 152 | 32 |
| key | pubkey | 152 | 32 |
| name | [u8; 16] | 184 | 16 |
| bids | pubkey | 200 | 32 |
| asks | pubkey | 232 | 32 |
| eventHeap | pubkey | 264 | 32 |
| oracleA | NonZeroPubkeyOption | 296 | 32 |
| key | pubkey | 296 | 32 |
| oracleB | NonZeroPubkeyOption | 328 | 32 |
| key | pubkey | 328 | 32 |
| oracleConfig | OracleConfig | 360 | 88 |
| confFilter | f64 | 360 | 8 |
| maxStalenessSlots | i64 | 368 | 8 |
| reserved | [u8; 72] | 376 | 72 |
| quoteLotSize | i64 | 448 | 8 |
| baseLotSize | i64 | 456 | 8 |
| seqNum | u64 | 464 | 8 |
| registrationTime | i64 | 472 | 8 |
| makerFee | i64 | 480 | 8 |
| takerFee | i64 | 488 | 8 |
| feesAccrued | u128 | 496 | 16 |
| feesToReferrers | u128 | 512 | 16 |
| referrerRebatesAccrued | u64 | 528 | 8 |
| feesAvailable | u64 | 536 | 8 |
| makerVolume | u128 | 544 | 16 |
| takerVolumeWoOo | u128 | 560 | 16 |
| baseMint | pubkey | 576 | 32 |
| quoteMint | pubkey | 608 | 32 |
| marketBaseVault | pubkey | 640 | 32 |
| baseDepositTotal | u64 | 672 | 8 |
| marketQuoteVault | pubkey | 680 | 32 |
| quoteDepositTotal | u64 | 712 | 8 |
| reserved | [u8; 128] | 720 | 128 |
Every Market account starts with the same discriminator, so a memcmp at offset 0 selects this account type. The second filter matches marketAuthority at offset 16. A dataSize: 848 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": "dkokXHR3DTw"
}
},
{
"memcmp": {
"offset": 16,
"bytes": "<marketAuthority 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.