Solana instructions › Raydium CPMM (CP Swap) › initialize

initialize

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

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

From the IDL

Creates a pool for the given token pair and the initial price # Arguments * `ctx`- The context of accounts * `init_amount_0` - the initial amount_0 to deposit * `init_amount_1` - the initial amount_1 to deposit * `open_time` - the timestamp allowed for swap

Accounts

#AccountRole
0creatorwritable, signer
1amm_configread-only
2authorityread-only
3pool_statewritable
4token_0_mintread-only
5token_1_mintread-only
6lp_mintwritable
7creator_token_0writable
8creator_token_1writable
9creator_lp_tokenwritable
10token_0_vaultwritable
11token_1_vaultwritable
12create_pool_feewritable
13observation_statewritable
14token_programread-only
15token_0_programread-only
16token_1_programread-only
17associated_token_programread-only
18system_programread-only
19rentread-only

Arguments

ArgumentType
init_amount_0u64
init_amount_1u64
open_timeu64

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.