Solana IDL reference › Raydium AMM V3 (CLMM) › PoolState

PoolState account layout

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

From the IDL

The pool state PDA of `[POOL_SEED, config, token_mint_0, token_mint_1]`

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
bump[u8; 1]81
amm_configpubkey932
ownerpubkey4132
token_mint_0pubkey7332
token_mint_1pubkey10532
token_vault_0pubkey13732
token_vault_1pubkey16932
observation_keypubkey20132
mint_decimals_0u82331
mint_decimals_1u82341
tick_spacingu162352
liquidityu12823716
sqrt_price_x64u12825316
tick_currenti322694
padding3u162732
padding4u162752
fee_growth_global_0_x64u12827716
fee_growth_global_1_x64u12829316
protocol_fees_token_0u643098
protocol_fees_token_1u643178
swap_in_amount_token_0u12832516
swap_out_amount_token_1u12834116
swap_in_amount_token_1u12835716
swap_out_amount_token_0u12837316
statusu83891
padding[u8; 7]3907
reward_infos[RewardInfo; 3]397507
tick_array_bitmap[u64; 16]904128
total_fees_token_0u6410328
total_fees_claimed_token_0u6410408
total_fees_token_1u6410488
total_fees_claimed_token_1u6410568
fund_fees_token_0u6410648
fund_fees_token_1u6410728
open_timeu6410808
recent_epochu6410888
padding1[u64; 24]1096192
padding2[u64; 32]1288256

getProgramAccounts filter

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>"
          }
        }
      ]
    }
  ]
}

Decode account data

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 Raydium AMM V3 (CLMM) account types

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.