Solana IDL reference › Raydium AMM V3 (CLMM) › ProtocolPositionState
Raydium AMM V3 (CLMM) account type. Program ID CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK. Data starts with the 8-byte account discriminator, published in the IDL.
Discriminator (published in the IDL)
hex 0x64e2916392daa06a
bytes [100, 226, 145, 99, 146, 218, 160, 106]
base58 HsiFPb5c3S1
Info stored for each user's position
| Field | Type | Offset | Size |
|---|---|---|---|
| bump | u8 | 8 | 1 |
| pool_id | pubkey | 9 | 32 |
| tick_lower_index | i32 | 41 | 4 |
| tick_upper_index | i32 | 45 | 4 |
| liquidity | u128 | 49 | 16 |
| fee_growth_inside_0_last_x64 | u128 | 65 | 16 |
| fee_growth_inside_1_last_x64 | u128 | 81 | 16 |
| token_fees_owed_0 | u64 | 97 | 8 |
| token_fees_owed_1 | u64 | 105 | 8 |
| reward_growth_inside | [u128; 3] | 113 | 48 |
| recent_epoch | u64 | 161 | 8 |
| padding | [u64; 7] | 169 | 56 |
Every ProtocolPositionState account starts with the same discriminator, so a memcmp at offset 0 selects this account type. The second filter matches pool_id at offset 9. A dataSize: 225 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": [
"CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK",
{
"encoding": "base64",
"filters": [
{
"memcmp": {
"offset": 0,
"bytes": "HsiFPb5c3S1"
}
},
{
"memcmp": {
"offset": 9,
"bytes": "<pool_id 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.
Raydium AMM V3 (CLMM) 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.