Solana instructions › Raydium CPMM (CP Swap) › deposit

deposit

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

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

From the IDL

Deposit lp token to the pool # Arguments * `ctx`- The context of accounts * `lp_token_amount` - Pool token amount to transfer. token_a and token_b amount are set by the current exchange rate and size of the pool * `maximum_token_0_amount` - Maximum token 0 amount to deposit, prevents excessive slippage * `maximum_token_1_amount` - Maximum token 1 amount to deposit, prevents excessive slippage

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

Arguments

ArgumentType
lp_token_amountu64
maximum_token_0_amountu64
maximum_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.