> ## 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.

# IDL files

> Versioned Anchor IDL files for the Raydium programs, archived per program release so you can decode transactions from any period and pin a client to the exact interface it was built against.

> [!NOTE]
>
> This chapter is the single place where Raydium publishes Anchor IDL files. It covers **CPMM**, **CLMM** and **LaunchLab**. AMM v4, Stable AMM, AMM Routing and the Farm programs are not Anchor programs and have no IDL. Their layouts live in the SDK, see [`sdk-api/anchor-idl`](https://docs.raydium.io/sdk-api/anchor-idl).

## Latest IDL per program

| Program | Latest archived version | IDL | TS type | Status | All versions |
| - | - | - | - | - | - |
| **LaunchLab** | 2026-12-07 | [`raydium_launchpad.json`](https://raydium-io.github.io/raydium-docs-v1/idl/launchlab/2026-12-07/raydium_launchpad.json) | [`raydium_launchpad.ts`](https://raydium-io.github.io/raydium-docs-v1/idl/launchlab/2026-12-07/raydium_launchpad.ts) | Live from 2026-12-07 13:00 UTC | [LaunchLab →](https://docs.raydium.io/reference/idl/launchlab.md) |
| **CPMM** | 2026-10-30 | [`raydium_cp_swap.json`](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-10-30/raydium_cp_swap.json) | [`raydium_cp_swap.ts`](https://raydium-io.github.io/raydium-docs-v1/idl/cpmm/2026-10-30/raydium_cp_swap.ts) | Live since 2026-10-30 | [CPMM →](https://docs.raydium.io/reference/idl/cpmm.md) |
| **CLMM** | 2026-10-22 | [`raydium_clmm.json`](https://raydium-io.github.io/raydium-docs-v1/idl/clmm/2026-10-22/raydium_clmm.json) | [`raydium_clmm.ts`](https://raydium-io.github.io/raydium-docs-v1/idl/clmm/2026-10-22/raydium_clmm.ts) | Live since 2026-10-22 | [CLMM →](https://docs.raydium.io/reference/idl/clmm.md) |

Each program page keeps the full version history. Every release documented in the [changelog](https://docs.raydium.io/reference/changelog.md) since 2026-05 has its own IDL there.

## How to pick a version

1. **Building a new client:** use the newest version whose status is live, and pin that version's directory in your build.
2. **Decoding historical transactions:** open the program's page and pick the version whose **mainnet period** covers the transaction's block time. An IDL from another period can mis-decode instruction data, accounts and, above all, error codes, which Anchor numbers by position.
3. **Reviewing an upgrade:** each version's details list what changed from the previous one, and link to the changelog entry that explains why.

## How the files are published

* **Location.** Files are static assets at `https://raydium-io.github.io/raydium-docs-v1/idl/<program>/<version>/`. `<program>` is `launchlab`, `cpmm` or `clmm`. `<version>` is a date: the program release the IDL belongs to. For a release without a changelog entry, it is the date of the source commit. For a snapshot imported from the former `raydium-idl` repository, it is the date of that snapshot.
* **Two files per version.** `<name>.json` is the Anchor IDL (spec `0.1.0`). `<name>.ts` is the matching TypeScript type for `@anchor-lang/core`'s `Program<T>`, generated from the JSON.
* **Immutable.** A published file is never edited or deleted. A new program release adds a new `<version>` directory. A link in an old changelog entry therefore keeps resolving to the IDL it describes.
* **Checksums.** Every version lists the SHA-256 of both files. Verify a download before relying on it:

```bash theme={null}
curl -sO https://raydium-io.github.io/raydium-docs-v1/idl/launchlab/2026-12-07/raydium_launchpad.json
sha256sum raydium_launchpad.json
```

* **Provenance.** Each version records where it came from: the program source commit and the Anchor CLI that generated it, or the snapshot it was imported from. New versions are generated from the released source with `anchor idl build`, not fetched from chain. They match the released code even when the on-chain IDL account has not been refreshed yet.

## Using an archived IDL

```ts theme={null}
// @anchor-lang/core 1.0.2 — LaunchLab IDL from the 2026-12-07 release
import { Program, AnchorProvider } from "@anchor-lang/core";
import launchlabIdl from "./idls/launchlab-2026-12-07/raydium_launchpad.json";
import type { RaydiumLaunchpad } from "./idls/launchlab-2026-12-07/raydium_launchpad";

const provider = new AnchorProvider(connection, wallet, {});
// The IDL carries the program id in `idl.address`, so the two-argument form is correct.
const program = new Program<RaydiumLaunchpad>(launchlabIdl as RaydiumLaunchpad, provider);
```

Vendor the files into your project instead of fetching them at runtime. Pin the `<version>` directory so an upgrade never changes your decoder silently.

## Relationship to the SDK and the on-chain IDL

* **SDK.** You do not need these files if you build transactions through `@raydium-io/raydium-sdk-v2`. It ships its own layouts and builders. The archive is for integrators who generate clients from the IDL, decode program logs and events, or audit an upgrade.
* **On-chain IDL.** `anchor idl fetch` returns only the newest IDL its account holds, and that account can lag a program upgrade. See [where each program keeps it](https://docs.raydium.io/sdk-api/anchor-idl.md#where-to-find-them). When the two disagree, trust the archived file for the matching release.


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