Solana instructions › Raydium AMM V3 (CLMM) › swap_v2

swap_v2

Raydium AMM V3 (CLMM) instruction. Program ID CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK. Position in this snapshot: 19.

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

From the IDL

Swaps one token for as much as possible of another token across a single pool, support token program 2022 # Arguments * `ctx` - The context of accounts * `amount` - Arranged in pairs with other_amount_threshold. (amount_in, amount_out_minimum) or (amount_out, amount_in_maximum) * `other_amount_threshold` - For slippage check * `sqrt_price_limit` - The Q64.64 format √P limit price, and if it is 0,

Accounts

#AccountRole
0payersigner
1amm_configread-only
2pool_statewritable
3input_token_accountwritable
4output_token_accountwritable
5input_vaultwritable
6output_vaultwritable
7observation_statewritable
8token_programread-only
9token_program_2022read-only
10memo_programread-only
11input_vault_mintread-only
12output_vault_mintread-only

Arguments

ArgumentType
amountu64
other_amount_thresholdu64
sqrt_price_limit_x64u128
is_base_inputbool

Other Raydium AMM V3 (CLMM) 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.