Solana instructions › Raydium CPMM (CP Swap) › 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.
# 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.
| # | Account | Role |
|---|---|---|
| 0 | owner | writable, signer |
| 1 | amm_config | writable |
| 2 | system_program | read-only |
| Argument | Type |
|---|---|
| index | u16 |
| trade_fee_rate | u64 |
| protocol_fee_rate | u64 |
| fund_fee_rate | u64 |
| create_pool_fee | u64 |
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.