feat: Add Raydium Action Provider for Solana DEX Trading#875
Open
teddynix wants to merge 3 commits intocoinbase:mainfrom
Open
feat: Add Raydium Action Provider for Solana DEX Trading#875teddynix wants to merge 3 commits intocoinbase:mainfrom
teddynix wants to merge 3 commits intocoinbase:mainfrom
Conversation
- Implements 4 actions: get_pools, get_price, swap, get_pool_info - Full integration with Raydium SDK for real DEX trading - Supports ALL Raydium liquidity pools via API - Includes comprehensive tests and documentation - Real transaction execution on Solana mainnet
🟡 Heimdall Review Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
description
this PR adds a new Raydium Action Provider, enabling AI agents spun up using AgentKit to perform decentralized trading on Raydium.
submitted as part of the Solana Cypherpunk Hackathon, Oct 2025
features
4 core actions on Raydium:
get_pools- Fetch available liquidity pools with live data (liquidity, volume, APR)get_price- Get real-time token pair prices from onchain pool reservesswap- Execute actual token swaps using Raydium SDK with slippage protectionget_pool_info- Query detailed pool information including reserves and statusdependencies
{ "@raydium-io/raydium-sdk": "^1.3.1-beta.58", "bn.js": "^5.2.1" }breaking changes
None - This is a new action provider with no impact on existing functionality.
tests
All actions have been tested with mocked dependencies using Jest. Here are example manual tests:
checklist
[x] Added documentation to all relevant README.md files
[x] Complete README in typescript/agentkit/src/action-providers/raydium/README.md
[x] Usage examples and API documentation included
[x] Network support and dependencies documented
[x] Added a changelog entry
[x] Updated typescript/agentkit/CHANGELOG.md with feature description
[x] Included all 4 actions and implementation details
[x] Code follows TypeScript best practices and AgentKit conventions
[x] Zod schemas for input validation
[x] Error handling for API failures and invalid inputs
[x] Follows existing action provider patterns (Jupiter, Pyth, etc.)
[x] All commits are signed and verified