> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raydium.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CPMM IDL

> Every archived IDL of the CPMM program (raydium_cp_swap), with download links, SHA-256 checksums, source commit, and the mainnet period each version covers.

> [!NOTE]
>
> Program: `raydium_cp_swap`, program ID on [`reference/program-addresses`](https://docs.raydium.io/reference/program-addresses#on-chain-programs). Source: [`github.com/raydium-io/raydium-cp-swap`](https://github.com/raydium-io/raydium-cp-swap). Files are immutable — see [how the archive is published](https://docs.raydium.io/reference/idl/index.md#how-the-files-are-published).

## Latest

> [card] [raydium\_cp\_swap.json](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-10-30/raydium_cp_swap.json)
>
> Version **2026-10-30** · live · 21 instructions, 16 errors

> [card] [raydium\_cp\_swap.ts](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-10-30/raydium_cp_swap.ts)
>
> TypeScript type `RaydiumCpSwap` for `@anchor-lang/core`

## Version history

Newest first. Pick the version whose mainnet period covers the transaction you are decoding. Each version adds to the one below it; see its details for exactly what changed.

### 2026

| Version | Mainnet period (UTC) | Files | Changelog |
| - | - | - | - |
| **2026-10-30** | 2026-10-30 → | [JSON](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-10-30/raydium_cp_swap.json) · [TS](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-10-30/raydium_cp_swap.ts) | [`InitializeV2`](https://docs.raydium.io/reference/changelog/2026-10-30-cpmm-initialize-v2) |
| **2026-09-19** | 2026-09-19 → 2026-10-30 | [JSON](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-09-19/raydium_cp_swap.json) · [TS](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-09-19/raydium_cp_swap.ts) | [Creator-fee protocol share](https://docs.raydium.io/reference/changelog/2026-09-19-cpmm-creator-fee-protocol-share.md) |
| **2026-09-09** | 2026-09-09 → 2026-09-19 | [JSON](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-09-09/raydium_cp_swap.json) · [TS](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-09-09/raydium_cp_swap.ts) | [Anchor 1.0, excess-lamports recovery](https://docs.raydium.io/reference/changelog/2026-09-09-cpmm-anchor-1-and-excess-lamports.md) |
| **2026-08-17** | 2026-08-17 → 2026-09-09 | [JSON](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-08-17/raydium_cp_swap.json) · [TS](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-08-17/raydium_cp_swap.ts) | [Permissionless creator-fee collection](https://docs.raydium.io/reference/changelog/2026-08-17-cpmm-permissionless-creator-fee-collection.md) |
| **2026-06-12** | Not recorded → 2026-08-17 | [JSON](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-06-12/raydium_cp_swap.json) · [TS](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-06-12/raydium_cp_swap.ts) | — (support-mint registry; no changelog entry) |
| **2026-05-07** | → support-mint registry release | [JSON](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-05-07/raydium_cp_swap.json) · [TS](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-05-07/raydium_cp_swap.ts) | [Initial publication](https://docs.raydium.io/reference/changelog/2026-04-26-initial-publication.md) |

Releases before the 2026-05-07 snapshot are not archived.

## Version details

All versions except 2026-05-07 were generated from the listed source commit with `anchor-cli 1.0.2` (`anchor idl build`). The "Program built with" row is the `anchor-lang` version of that commit. Each version was checked against its changelog entry before publishing.

> [accordion] 2026-10-30 — source 3d69122
>
> | | |
> | - | - |
> | Source commit | `3d69122` — "add initialize v2 instruction (#83)" |
> | Program built with | `anchor-lang =1.0.2` |
> | Contents | 21 instructions, 6 accounts, 2 events, 16 errors (`6000`–`6015`) |
> | `raydium_cp_swap.json` SHA-256 | `e970d765469559c62089c0cf0bdceb6524c36eb9fd1ae7244d1ef85dd3afcaac` |
> | `raydium_cp_swap.ts` SHA-256 | `18852e4953cb18c29f4b938f9d38d0d6151985e4d47ce87e5155479158d78d5b` |
>
> Changes from 2026-09-19: **instruction added** `initialize_v2`. Nothing else changed.

> [accordion] 2026-09-19 — source b3187ae
>
> | | |
> | - | - |
> | Source commit | `b3187ae` — "Feat/creator fee share (#80)" |
> | Program built with | `anchor-lang =1.0.2` |
> | Contents | 20 instructions, 6 accounts, 2 events, 16 errors (`6000`–`6015`) |
> | `raydium_cp_swap.json` SHA-256 | `d86fe11ffc719fee9832f78a1c7374452ee9ebe2c63d51c0b5e5cb383a8fcfdb` |
> | `raydium_cp_swap.ts` SHA-256 | `1e6a0027f271962c24a61c2a64accf34d202f45b52537ef1e1af955114be16fe` |
>
> Changes from 2026-09-09: **instructions added** `create_creator_fee_share`, `close_creator_fee_share`. **Account added** `CreatorFeeShare`. **Account lists changed** `collect_creator_fee`, `collect_creator_fee_permissionless`. **Type changed** `AmmConfig` (new `creator_fee_share_rate`).

> [accordion] 2026-09-09 — source 59fb845
>
> | | |
> | - | - |
> | Source commit | `59fb845` — "Chore/upgrade anchor (#77)" |
> | Program built with | `anchor-lang =1.0.2` |
> | Contents | 18 instructions, 5 accounts, 2 events, 16 errors (`6000`–`6015`) |
> | `raydium_cp_swap.json` SHA-256 | `5d0bf4ddf92a6c2ede6e10fc56e01fde22527131e5e5779d7fb1183325009728` |
> | `raydium_cp_swap.ts` SHA-256 | `a8c03c2337295dba37cbcab3eb0105f431e33a657740c16c7c92fff03fd37145` |
>
> Changes from 2026-08-17: **instruction added** `collect_excess_lamports`. **Account list changed** `close_permission_pda`. **Error appended** `6015` `LamportsCalculateError`.

> [accordion] 2026-08-17 — source 244e124
>
> | | |
> | - | - |
> | Source commit | `244e124` — "Feat/permissionless collect creator fee (#76)" |
> | Program built with | `anchor-lang 0.32.1` |
> | Contents | 17 instructions, 5 accounts, 2 events, 15 errors (`6000`–`6014`) |
> | `raydium_cp_swap.json` SHA-256 | `3f4f8c06ff06e013c7f909e841ef4a49cbcf93d26fb7ac324e72c766fc6bb80a` |
> | `raydium_cp_swap.ts` SHA-256 | `cfff301c51442fe833367f811d4122d104287450f1ced0c70f6d5859738fd5d4` |
>
> Changes from 2026-06-12: **instruction added** `collect_creator_fee_permissionless`. **Account list changed** `create_permission_pda`.

> [accordion] 2026-06-12 — source 78f254e
>
> | | |
> | - | - |
> | Source commit | `78f254e` — "Feat: support associated mint (#71)", 2026-06-12 |
> | Program built with | `anchor-lang 0.32.1` |
> | Contents | 16 instructions, 5 accounts, 2 events, 15 errors (`6000`–`6014`) |
> | `raydium_cp_swap.json` SHA-256 | `f4a187529f771be8db55b844829297feeb07b3f319ec825ed50409d365809eca` |
> | `raydium_cp_swap.ts` SHA-256 | `1b7407991b254366f7436470cfb12c1d646b486ad168124d73fa25343de1838c` |
>
> Changes from 2026-05-07: **instructions added** `create_support_mint_associated`, `close_support_mint_associated`. **Account added** `SupportMintAssociated`.
>
> This release has no changelog entry, so its mainnet date is not recorded. The version is keyed by its commit date.

> [accordion] 2026-05-07 — imported snapshot
>
> | | |
> | - | - |
> | Provenance | Imported unchanged from the former public IDL repository (`raydium-idl`), commit `e7e0c96`, 2026-05-07 |
> | Matches source | `609780f` — "update anchor to version 0.32.1 (#65)". A build of that commit has the identical interface (doc comments aside). |
> | TS type | Generated from the JSON with `anchor-cli 1.0.2`, `anchor idl type` |
> | Contents | 14 instructions, 4 accounts, 2 events, 15 errors (`6000`–`6014`) |
> | `raydium_cp_swap.json` SHA-256 | `1202f6dc8e1c3216598f2ad5c620b9aa8c64ac584563fafed68125c27fb6df81` |
> | `raydium_cp_swap.ts` SHA-256 | `dea2a57c8783cdd3ff369423137e9ec007bc190eeb73ac52fb78820cb4e54810` |

> [!NOTE]
>
> CPMM's on-chain IDL lives in the Program Metadata program, not in a legacy `anchor:idl` account — see [`sdk-api/anchor-idl`](https://docs.raydium.io/sdk-api/anchor-idl#where-to-find-them).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.