Solana instructions › Raydium CPMM (CP Swap) › withdraw
Raydium CPMM (CP Swap) instruction. Program ID CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C. Position in this snapshot: 9.
Discriminator or tag: 0xb712469c946da122 — published in the IDL snapshot.
Withdraw lp for token0 and token1 # Arguments * `ctx`- The context of accounts * `lp_token_amount` - Amount of pool tokens to burn. User receives an output of token a and b based on the percentage of the pool tokens that are returned. * `minimum_token_0_amount` - Minimum amount of token 0 to receive, prevents excessive slippage * `minimum_token_1_amount` - Minimum amount of token 1 to receive, pre
| # | Account | Role |
|---|---|---|
| 0 | owner | signer |
| 1 | authority | read-only |
| 2 | pool_state | writable |
| 3 | owner_lp_token | writable |
| 4 | token_0_account | writable |
| 5 | token_1_account | writable |
| 6 | token_0_vault | writable |
| 7 | token_1_vault | writable |
| 8 | token_program | read-only |
| 9 | token_program_2022 | read-only |
| 10 | vault_0_mint | read-only |
| 11 | vault_1_mint | read-only |
| 12 | lp_mint | writable |
| 13 | memo_program | read-only |
| Argument | Type |
|---|---|
| lp_token_amount | u64 |
| minimum_token_0_amount | u64 |
| minimum_token_1_amount | 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.