Solana instructions › Raydium CPMM (CP Swap) › create_amm_config

create_amm_config

Raydium CPMM (CP Swap) instruction. Program ID CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C. Position in this snapshot: 2.

Discriminator or tag: 0x8934edd4d7756c68 — published in the IDL snapshot.

From the IDL

# Arguments * `ctx`- The accounts needed by instruction. * `index` - The index of amm config, there may be multiple config. * `trade_fee_rate` - Trade fee rate, can be changed. * `protocol_fee_rate` - The rate of protocol fee within trade fee. * `fund_fee_rate` - The rate of fund fee within trade fee.

Accounts

#AccountRole
0ownerwritable, signer
1amm_configwritable
2system_programread-only

Arguments

ArgumentType
indexu16
trade_fee_rateu64
protocol_fee_rateu64
fund_fee_rateu64
create_pool_feeu64

Other Raydium CPMM (CP Swap) instructions

To see which instructions a confirmed transaction actually ran, paste its signature into the Rugsight transaction explainer.

Instruction lists and published discriminators come from solana-idls@1.2.1 (MIT) and, for the System Program, Compute Budget and Associated Token Account programs, from their public instruction enums (Apache-2.0). Snapshot date 2026-11-17. Programs can upgrade, so a live program may differ from this snapshot. Computed Anchor discriminators are the first 8 bytes of sha256("global:<snake_case_name>") and are labelled as computed.