Skip to main content

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.

Who this chapter is for

Developers integrating against Raydium from off-chain (TS/JS, Python, backends) or from another Solana program (Rust CPI). Also AI agents and coding-tool integrators — see AI integration.
Want to run something first? Three paste-and-go scripts — swap, deploy CPMM pool, deploy CLMM pool — live in Quick start. Run a real transaction in five minutes, then come back here for the full reference.

Pick your integration path

Five paths to choose from. The right one depends on what’s calling Raydium and how much control you need.
PathBest forLatencyCustom logicLanguages
Trade APIBackends, bots, Blinks — anywhere you want a server-built txLowestLimited (preset routes)Any
TypeScript SDKNode/TS apps and frontends needing full builder accessMediumFullTS / JS
Python integrationPython backends and ML pipelinesMediumFull (manual instr build)Python
Rust CPIComposing programs that call Raydium from on-chainN/A (on-chain)Full + composableRust
Anchor IDLCodegen for languages without first-party support (Go, Kotlin, Swift, …)VariableFullAny with an Anchor codegen tool
If you’re not sure: backends and bots → Trade API; frontends and full-control apps → TypeScript SDK; on-chain composition → Rust CPI.

Chapter contents

TypeScript SDK

@raydium-io/raydium-sdk-v2: installation, initialization, core modules (pool, farm, launch), transaction builders, common pitfalls.

REST API

Public endpoints for pool info, mint info, price, and server-built transactions. Rate limits, caching guidance, versioning.

Trade API

Server-built swap transactions: quote, build, sign, send. The SDK-free integration pattern for backends, bots, and Blinks.

Anchor IDL

Where to find each program’s IDL, how to regenerate clients from it, what to watch for when the IDL is updated.

Rust CPI

Patterns for invoking Raydium programs from another Solana program — account list construction, signer seeds, error handling.

Python integration

solders + solana-py recipes for building Raydium swaps/pool ops from Python. Useful for backends and bots.

AI integration

MCP server, llms.txt index, per-page copy menu, pre-built context files for Claude Code / Cursor / Windsurf and other coding agents.

Version discipline

Every code sample on every page in this chapter has a banner at the top:
SDK:       @raydium-io/raydium-sdk-v2 vX.Y.Z
Program:   see /reference/program-addresses
Cluster:   mainnet-beta
Verified:  YYYY-MM-DD
If you touch a code sample, update the banner.