Solana instructions › Raydium AMM V3 (CLMM) › swap

swap

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

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

From the IDL

#[deprecated(note = "Use `swap_v2` instead.")] Swaps one token for as much as possible of another token across a single pool # 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_x64` - The Q64.64 format √P limit

Accounts

#AccountRole
0payersigner
1amm_configread-only
2pool_statewritable
3input_token_accountwritable
4output_token_accountwritable
5input_vaultwritable
6output_vaultwritable
7observation_statewritable
8token_programread-only
9tick_arraywritable

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.