Solana instructions › Raydium AMM V3 (CLMM) › swap_v2
Raydium AMM V3 (CLMM) instruction. Program ID CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK. Position in this snapshot: 19.
Discriminator or tag: 0x2b04ed0b1ac91e62 — published in the IDL snapshot.
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,
| # | Account | Role |
|---|---|---|
| 0 | payer | signer |
| 1 | amm_config | read-only |
| 2 | pool_state | writable |
| 3 | input_token_account | writable |
| 4 | output_token_account | writable |
| 5 | input_vault | writable |
| 6 | output_vault | writable |
| 7 | observation_state | writable |
| 8 | token_program | read-only |
| 9 | token_program_2022 | read-only |
| 10 | memo_program | read-only |
| 11 | input_vault_mint | read-only |
| 12 | output_vault_mint | read-only |
| Argument | Type |
|---|---|
| amount | u64 |
| other_amount_threshold | u64 |
| sqrt_price_limit_x64 | u128 |
| is_base_input | bool |
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.