raydium

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

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill raydium-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: raydium
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/raydium
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill raydium-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents often have outdated or incorrect knowledge of Raydium's SDK methods, program IDs, and API endpoints, leading to broken transactions or lost funds when building Solana DeFi integrations. ## Core Features & Use Cases - Swap Integration: Execute token swaps via the TypeScript SDK or the HTTP Trade API with routing across CLMM, CPMM, and AMM V4 pools. - Liquidity Management: Create pools, open and manage concentrated liquidity positions, and handle farming rewards with verified program IDs. - LaunchLab Token Launches: Launch tokens with bonding curves that automatically migrate to permanent Raydium liquidity at graduation. - Use Case: A developer building a Solana trading bot can use this Skill to get the correct CPMM swap call, current program addresses, and priority fee configuration without hallucinated endpoints. ## Quick Start Use the raydium skill to write TypeScript code that swaps 1 SOL for USDC through the Trade API with a 0.5% slippage tolerance.

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 SDK?

Load the SDK with Raydium.load, fetch pool info via raydium.cpmm.getPoolInfoFromRpc or the API, then call raydium.cpmm.swap with inputAmount, inputMint, and slippage. Execute the returned transaction with execute({ sendAndConfirm: true }).

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 Token22 without OpenBook, and AMM V4 is the legacy pool integrated with the OpenBook order book.

How do I launch a token with Raydium LaunchLab?

Call raydium.launchLab.createToken with a name, symbol, metadata URI, initial supply, and bonding curve type. When the curve reaches the 85 SOL graduation threshold, liquidity automatically migrates to a permanent Raydium pool.

Does the Raydium Trade API work without the SDK?

Yes, the Trade API at transaction-v1.raydium.io provides HTTP endpoints for swap quotes and serialized transactions. Request a quote from /compute/swap-base-in, then POST to /transaction/swap-base-in to get a signable transaction.

Why does my Raydium transaction fail with slippage exceeded?

The price moved beyond your tolerance between quote and execution. Increase the slippage parameter, add a higher priority fee via computeBudgetConfig microLamports, or retry with a fresh quote.

Can I integrate Raydium swaps into my own Solana program?

Yes, use the raydium-cpi Rust library to invoke CPMM or CLMM swap instructions via cross-program invocation. Add it as a git dependency in Cargo.toml and build the CPI context with the pool accounts.