Solana instructions › Raydium CPMM (CP Swap) › withdraw

withdraw

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

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

From the IDL

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

Accounts

#AccountRole
0ownersigner
1authorityread-only
2pool_statewritable
3owner_lp_tokenwritable
4token_0_accountwritable
5token_1_accountwritable
6token_0_vaultwritable
7token_1_vaultwritable
8token_programread-only
9token_program_2022read-only
10vault_0_mintread-only
11vault_1_mintread-only
12lp_mintwritable
13memo_programread-only

Arguments

ArgumentType
lp_token_amountu64
minimum_token_0_amountu64
minimum_token_1_amountu64

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.