Skip to main content
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.

Latest IDL per program

Each program page keeps the full version history. Every release documented in the changelog 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:
  • 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

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. When the two disagree, trust the archived file for the matching release.