Solana instructions › Raydium CPMM (CP Swap) › collect_protocol_fee

collect_protocol_fee

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

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

From the IDL

Collect the protocol fee accrued to the pool # Arguments * `ctx` - The context of accounts * `amount_0_requested` - The maximum amount of token_0 to send, can be 0 to collect fees in only token_1 * `amount_1_requested` - The maximum amount of token_1 to send, can be 0 to collect fees in only token_0

Accounts

#AccountRole
0ownersigner
1authorityread-only
2pool_statewritable
3amm_configread-only
4token_0_vaultwritable
5token_1_vaultwritable
6vault_0_mintread-only
7vault_1_mintread-only
8recipient_token_0_accountwritable
9recipient_token_1_accountwritable
10token_programread-only
11token_program_2022read-only

Arguments

ArgumentType
amount_0_requestedu64
amount_1_requestedu64

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.