Solana IDL reference › Raydium AMM V3 (CLMM) › PoolState
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 0xf7ede3f5d7c3de46
bytes [247, 237, 227, 245, 215, 195, 222, 70]
base58 iUE1qg7KXeV
The pool state PDA of `[POOL_SEED, config, token_mint_0, token_mint_1]`
| Field | Type | Offset | Size |
|---|---|---|---|
| bump | [u8; 1] | 8 | 1 |
| amm_config | pubkey | 9 | 32 |
| owner | pubkey | 41 | 32 |
| token_mint_0 | pubkey | 73 | 32 |
| token_mint_1 | pubkey | 105 | 32 |
| token_vault_0 | pubkey | 137 | 32 |
| token_vault_1 | pubkey | 169 | 32 |
| observation_key | pubkey | 201 | 32 |
| mint_decimals_0 | u8 | 233 | 1 |
| mint_decimals_1 | u8 | 234 | 1 |
| tick_spacing | u16 | 235 | 2 |
| liquidity | u128 | 237 | 16 |
| sqrt_price_x64 | u128 | 253 | 16 |
| tick_current | i32 | 269 | 4 |
| padding3 | u16 | 273 | 2 |
| padding4 | u16 | 275 | 2 |
| fee_growth_global_0_x64 | u128 | 277 | 16 |
| fee_growth_global_1_x64 | u128 | 293 | 16 |
| protocol_fees_token_0 | u64 | 309 | 8 |
| protocol_fees_token_1 | u64 | 317 | 8 |
| swap_in_amount_token_0 | u128 | 325 | 16 |
| swap_out_amount_token_1 | u128 | 341 | 16 |
| swap_in_amount_token_1 | u128 | 357 | 16 |
| swap_out_amount_token_0 | u128 | 373 | 16 |
| status | u8 | 389 | 1 |
| padding | [u8; 7] | 390 | 7 |
| reward_infos | [RewardInfo; 3] | 397 | 507 |
| tick_array_bitmap | [u64; 16] | 904 | 128 |
| total_fees_token_0 | u64 | 1032 | 8 |
| total_fees_claimed_token_0 | u64 | 1040 | 8 |
| total_fees_token_1 | u64 | 1048 | 8 |
| total_fees_claimed_token_1 | u64 | 1056 | 8 |
| fund_fees_token_0 | u64 | 1064 | 8 |
| fund_fees_token_1 | u64 | 1072 | 8 |
| open_time | u64 | 1080 | 8 |
| recent_epoch | u64 | 1088 | 8 |
| padding1 | [u64; 24] | 1096 | 192 |
| padding2 | [u64; 32] | 1288 | 256 |
bytemuckunsafe, repr packed). Every field here is naturally aligned or the struct is packed, so the in-memory layout matches the offsets shown.Every PoolState account starts with the same discriminator, so a memcmp at offset 0 selects this account type. The second filter matches amm_config at offset 9. A dataSize: 1544 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": "iUE1qg7KXeV"
}
},
{
"memcmp": {
"offset": 9,
"bytes": "<amm_config 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.