raydium

Integrate Raydium swaps, liquidity pools, and token launches on Solana.

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/IagoPrandi/zeroclaw-plugin --skill raydium-iagoprandi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: raydium
Source: https://github.com/IagoPrandi/zeroclaw-plugin/tree/main/.claude/skills/solana-dev/ext/sendai/skills/raydium
Command: npx skills add https://github.com/IagoPrandi/zeroclaw-plugin --skill raydium-iagoprandi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Integrating with Raydium's multiple pool types (CLMM, CPMM, AMM V4), Trade API, and LaunchLab requires navigating scattered SDK documentation, program IDs, and pool-specific quirks, which slows down Solana DeFi development. ## Core Features & Use Cases - Swap Integration: Execute token swaps via the TypeScript SDK or the HTTP Trade API with routing, quotes, slippage control, and priority fees. - Liquidity & Pool Management: Create pools and manage CLMM concentrated-liquidity positions, CPMM deposits, and AMM V4 operations with correct program IDs for mainnet and devnet. - LaunchLab Token Launches: Launch tokens with bonding curves, buy/sell on curves, and handle automatic migration to Raydium pools. - Use Case: A developer building a Solana trading bot can use the Trade API reference to fetch a swap quote, serialize the transaction, sign it, and confirm it on-chain, then consult the troubleshooting guide when hitting slippage or tick-range errors. ## Quick Start Ask the assistant to write TypeScript code that swaps 1 SOL for USDC using the Raydium SDK v2 on mainnet.

Frequently Asked Questions about raydium

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I swap tokens on Raydium using the TypeScript SDK?▼

Install @raydium-io/raydium-sdk-v2, initialize Raydium.load with a connection and owner keypair, then call raydium.cpmm.swap or raydium.clmm.swap with pool info, input amount, and slippage. The returned execute function sends and confirms the transaction.

What is the difference between Raydium CLMM, CPMM, and AMM V4 pools?▼

CLMM offers concentrated liquidity in custom price ranges with NFT positions, CPMM is a simple constant-product pool supporting Token-2022 without OpenBook, and AMM V4 is the legacy AMM integrated with the OpenBook order book. CPMM suits new token launches; CLMM suits active LPs.

Does the Raydium SDK support devnet testing?▼

Yes, the SDK supports a devnet cluster option with separate program IDs for AMM, CLMM, and CPMM. However, API endpoints have limited devnet support, so use RPC-based methods like getPoolInfoFromRpc instead of API fetches on devnet.

How do I launch a token with Raydium LaunchLab?▼

Call raydium.launchLab.createToken with a name, symbol, metadata URI, initial supply, bonding curve type, and graduation threshold (default 85 SOL). When the threshold is reached, liquidity automatically migrates to a Raydium pool and LP tokens are burned.

Why does my Raydium swap transaction fail with slippage exceeded?▼

The price moved beyond your slippage tolerance between quote and execution. Increase the slippage parameter, add a computeBudgetConfig with higher priority fees for faster confirmation, or retry with a fresh quote from the Trade API.

Can I call Raydium programs from my own Solana program via CPI?▼

Yes, the raydium-cpi Rust library provides CPI helpers for CPMM and CLMM swaps. Add it as a git dependency in Cargo.toml, build the CPI account context, and invoke swap_base_input or the CLMM swap instruction from your Anchor program.