Solana IDL reference › Meteora CP AMM (DAMM V2) › Config

Config account layout

Meteora CP AMM (DAMM V2) account type. Program ID cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG. Data starts with the 8-byte account discriminator, published in the IDL.

Discriminator (published in the IDL)

hex 0x9b0caae01efacc82

bytes [155, 12, 170, 224, 30, 250, 204, 130]

base58 SwB71qnXfS1

Fields (offsets include the 8-byte discriminator)

FieldTypeOffsetSize
vault_config_keypubkey832
pool_creator_authoritypubkey4032
pool_feesPoolFeesConfig72128
base_feeBaseFeeConfig7232
cliff_fee_numeratoru64728
base_fee_modeu8801
padding[u8; 5]815
first_factoru16862
second_factor[u8; 8]888
third_factoru64968
dynamic_feeDynamicFeeConfig10448
initializedu81041
padding[u8; 7]1057
max_volatility_accumulatoru321124
variable_fee_controlu321164
bin_stepu161202
filter_periodu161222
decay_periodu161242
reduction_factoru161262
padding_1[u8; 8]1288
bin_step_u128u12813616
protocol_fee_percentu81521
partner_fee_percentu81531
referral_fee_percentu81541
padding_0[u8; 5]1555
padding_1[u64; 5]16040
activation_typeu82001
collect_fee_modeu82011
config_typeu82021
_padding_0[u8; 5]2035
indexu642088
sqrt_min_priceu12821616
sqrt_max_priceu12823216
_padding_1[u64; 10]24880

getProgramAccounts filter

Every Config account starts with the same discriminator, so a memcmp at offset 0 selects this account type. The second filter matches vault_config_key at offset 8. A dataSize: 328 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": [
    "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG",
    {
      "encoding": "base64",
      "filters": [
        {
          "memcmp": {
            "offset": 0,
            "bytes": "SwB71qnXfS1"
          }
        },
        {
          "memcmp": {
            "offset": 8,
            "bytes": "<vault_config_key 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 Meteora CP AMM (DAMM V2) account types

Meteora CP AMM (DAMM 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.