Solana instructions › Raydium CPMM (CP Swap) › initialize
Raydium CPMM (CP Swap) instruction. Program ID CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C. Position in this snapshot: 4.
Discriminator or tag: 0xafaf6d1f0d989bed — published in the IDL snapshot.
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
| # | Account | Role |
|---|---|---|
| 0 | creator | writable, signer |
| 1 | amm_config | read-only |
| 2 | authority | read-only |
| 3 | pool_state | writable |
| 4 | token_0_mint | read-only |
| 5 | token_1_mint | read-only |
| 6 | lp_mint | writable |
| 7 | creator_token_0 | writable |
| 8 | creator_token_1 | writable |
| 9 | creator_lp_token | writable |
| 10 | token_0_vault | writable |
| 11 | token_1_vault | writable |
| 12 | create_pool_fee | writable |
| 13 | observation_state | writable |
| 14 | token_program | read-only |
| 15 | token_0_program | read-only |
| 16 | token_1_program | read-only |
| 17 | associated_token_program | read-only |
| 18 | system_program | read-only |
| 19 | rent | read-only |
| Argument | Type |
|---|---|
| init_amount_0 | u64 |
| init_amount_1 | u64 |
| open_time | 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.