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

# SDK & API

> Reference for Raydium's TypeScript SDK, REST API, Anchor IDLs, and integration patterns for Rust, Python, and AI tools.

## 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](https://docs.raydium.io/sdk-api/ai-integration.md).

> [!NOTE]
>
> **Want to run something first?** Three end-to-end scripts — swap, deploy CPMM pool, deploy CLMM pool — live in [Quick start](https://docs.raydium.io/quick-start.md). The swap and CPMM scripts are single files you paste and run; the CLMM flow takes a few extra steps. Run a real transaction first, 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.

| Path | Best for | Latency | Custom logic | Languages |
| - | - | - | - | - |
| [Trade API](https://docs.raydium.io/sdk-api/trade-api.md) | Backends, bots, Blinks — anywhere you want a server-built tx | Lowest | Limited (preset routes) | Any |
| [TypeScript SDK](https://docs.raydium.io/sdk-api/typescript-sdk.md) | Node/TS apps and frontends needing full builder access | Medium | Full | TS / JS |
| [Python integration](https://docs.raydium.io/sdk-api/python-integration.md) | Python backends and ML pipelines | Medium | Full (manual instr build) | Python |
| [Rust CPI](https://docs.raydium.io/sdk-api/rust-cpi.md) | Composing programs that call Raydium from on-chain | N/A (on-chain) | Full + composable | Rust |
| [Anchor IDL](https://docs.raydium.io/sdk-api/anchor-idl.md) | Codegen for languages without first-party support (Go, Kotlin, Swift, ...) | Variable | Full | Any 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

> [card] [TypeScript SDK](https://docs.raydium.io/sdk-api/typescript-sdk.md)
>
> `@raydium-io/raydium-sdk-v2`: installation, initialization, core modules (pool, farm, launch), transaction builders, common pitfalls.

> [card] [REST API](https://docs.raydium.io/sdk-api/rest-api.md)
>
> Public endpoints for pool info, mint info, price, and server-built transactions. Rate limits, caching guidance, versioning.

> [card] [Trade API](https://docs.raydium.io/sdk-api/trade-api.md)
>
> Server-built swap transactions: quote, build, sign, send. The SDK-free integration pattern for backends, bots, and Blinks.

> [card] [Anchor IDL](https://docs.raydium.io/sdk-api/anchor-idl.md)
>
> Where to find each program's IDL, how to regenerate clients from it, what to watch for when the IDL is updated.

> [card] [Rust CPI](https://docs.raydium.io/sdk-api/rust-cpi.md)
>
> Patterns for invoking Raydium programs from another Solana program — account list construction, signer seeds, error handling.

> [card] [Python integration](https://docs.raydium.io/sdk-api/python-integration.md)
>
> `solders` + `solana-py` recipes for building Raydium swaps/pool ops from Python. Useful for backends and bots.

> [card] [AI integration](https://docs.raydium.io/sdk-api/ai-integration.md)
>
> 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.


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