raydium

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents and developers often have stale or incorrect knowledge of Raydium's SDK, program IDs, and APIs, leading to failed transactions, wrong pool addresses, and broken Solana DeFi integrations. ## Core Features & Use Cases - Complete SDK Reference: Covers @raydium-io/raydium-sdk-v2 for CLMM, CPMM, and AMM V4 pools, including swaps, liquidity management, and position handling. - Trade API Integration: HTTP endpoints for swap quotes and serialized transactions via transaction-v1.raydium.io, plus priority fee recommendations. - LaunchLab Token Launches: Bonding curve token creation, buy/sell operations, and graduation to permanent liquidity pools. - Use Case: Build a TypeScript bot that swaps SOL for USDC through the best route, opens a concentrated liquidity position around the current price, and harvests fees automatically. ## Quick Start Ask the agent to set up the Raydium SDK and execute a CPMM swap of 0.1 SOL for USDC with 1% slippage 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?

Initialize 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 AMM integrated with the OpenBook order book. Choose CPMM for new tokens and CLMM for capital-efficient stablecoin pairs.

How do I launch a token with Raydium LaunchLab bonding curves?

Call raydium.launchLab.createToken with name, symbol, metadata URI, initial supply, 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.

Does the Raydium SDK work on Solana devnet?

Yes, set cluster to 'devnet' when loading the SDK and use devnet program IDs. Note that API support is limited on devnet, so prefer RPC-based methods like getPoolInfoFromRpc instead of API fetches.

Why does my Raydium swap 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 from the Trade API.

How do I integrate Raydium swaps into my own Solana program?

Use the raydium-cpi Rust library to make cross-program invocations to CPMM or CLMM programs. Build the CPI context with the required pool, vault, and token accounts, then call swap_base_input or the CLMM swap instruction.