solagent99ā¢Mar 25, 2025
Solana_AIAgent_Trading
Solana AI Agent Trading Tool
An open-source trading toolkit for connecting AI agents to Solana protocols. Now, any agent, using any model can autonomously perform 15+ Solana actions:
Trade tokens
Launch new tokens
Lend assets
Send compressed airdrops
Execute blinks
Launch tokens on AMMs
And more...
š¬ Contact Me
If you have any question or something, feel free to reach out me anytime via telegram, discord or twitter.
š¹ You're always welcome š¹
Telegram: @Leo
Replit template created by Arpit Singh
š§ Core Blockchain Features
Token Operations
Deploy SPL tokens by Metaplex
Transfer assets
Balance checks
Stake SOL
Zk compressed Airdrop by Light Protocol and Helius
NFTs on 3.Land
Create your own collection
NFT creation and automatic listing on 3.land
List your NFT for sale in any SPL token
NFT Management via Metaplex
Collection deployment
NFT minting
Metadata management
Royalty configuration
DeFi Integration
Jupiter Exchange swaps
Launch on Pump via PumpPortal
Raydium pool creation (CPMM, CLMM, AMMv4)
Orca Whirlpool integration
Manifest market creation, and limit orders
Meteora Dynamic AMM, DLMM Pool, and Alpha Vault
Openbook market creation
Register and Resolve SNS
Jito Bundles
Pyth Price feeds for fetching Asset Prices
Register/resolve Alldomains
Perpetuals Trading with Adrena Protocol
Drift Vaults, Perps, Lending and Borrowing
Solana Blinks
Lending by Lulo (Best APR for USDC)
Send Arcade Games
JupSOL staking
Solayer SOL (sSOL)staking
Non-Financial Actions
Gib Work for registering bounties
š¤ AI Integration Features
LangChain Integration
Ready-to-use LangChain tools for blockchain operations
Autonomous agent support with React framework
Memory management for persistent interactions
Streaming responses for real-time feedback
Vercel AI SDK Integration
Vercel AI SDK for AI agent integration
Framework agnostic support
Quick and easy toolkit setup
Autonomous Modes
Interactive chat mode for guided operations
Autonomous mode for independent agent actions
Configurable action intervals
Built-in error handling and recovery
AI Tools
DALL-E integration for NFT artwork generation
Natural language processing for blockchain commands
Price feed integration for market analysis
Automated decision-making capabilities
š Documentation
You can view the full documentation of the kit at docs.solanaagentkit.xyz
š¦ Installation
Quick Start
Usage Examples
Deploy a New Token
Create NFT Collection on 3Land
Create NFT on 3Land
When creating an NFT using 3Land's tool, it automatically goes for sale on 3.land website
Create NFT Collection
Swap Tokens
Lend Tokens
Stake SOL
Stake SOL on Solayer
Send an SPL Token Airdrop via ZK Compression
Fetch Price Data from Pyth
Open PERP Trade
Close PERP Trade
Close Empty Token Accounts
Create a Drift account
Create a drift account with an initial token deposit.
Create a Drift Vault
Create a drift vault.
Deposit into a Drift Vault
Deposit tokens into a drift vault.
Deposit into your Drift account
Deposit tokens into your drift account.
Derive a Drift Vault address
Derive a drift vault address.
Do you have a Drift account
Check if agent has a drift account.
Get Drift account information
Get drift account information.
Request withdrawal from Drift vault
Request withdrawal from drift vault.
Carry out a perpetual trade using a Drift vault
Open a perpertual trade using a drift vault that is delegated to you.
Carry out a perpetual trade using your Drift account
Open a perpertual trade using your drift account.
Update Drift vault parameters
Update drift vault parameters.
Withdraw from Drift account
Withdraw tokens from your drift account.
Borrow from Drift
Borrow tokens from drift.
Repay Drift loan
Repay a loan from drift.
Withdraw from Drift vault
Withdraw tokens from a drift vault after the redemption period has elapsed.
Update the address a Drift vault is delegated to
Update the address a drift vault is delegated to.
Get Voltr Vault Position Values
Get the current position values and total value of assets in a Voltr vault.
Deposit into Voltr Strategy
Deposit assets into a specific strategy within a Voltr vault.
Withdraw from Voltr Strategy
Withdraw assets from a specific strategy within a Voltr vault.
Get a Solana asset by its ID
Get a price inference from Allora
Get the price for a given token and timeframe from Allora's API
List all topics from Allora
Get an inference for an specific topic from Allora
Examples
LangGraph Multi-Agent System
The repository includes an advanced example of building a multi-agent system using LangGraph and Solana Agent Kit. Located in examples/agent-kit-langgraph, this example demonstrates:
Multi-agent architecture using LangGraph's StateGraph
Specialized agents for different tasks:
General purpose agent for basic queries
Transfer/Swap agent for transaction operations
Read agent for blockchain data queries
Manager agent for routing and orchestration
Fully typed TypeScript implementation
Environment-based configuration
Check out the LangGraph example for a complete implementation of an advanced Solana agent system.
Dependencies
The toolkit relies on several key Solana and Metaplex libraries:
@solana/web3.js
@solana/spl-token
@metaplex-foundation/digital-asset-standard-api
@metaplex-foundation/mpl-token-metadata
@metaplex-foundation/mpl-core
@metaplex-foundation/umi
@lightprotocol/compressed-token
@lightprotocol/stateless.js
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Refer to CONTRIBUTING.md for detailed guidelines on how to contribute to this project.
Contributors
Star History
License
Apache-2 License
Funding
If you wanna give back any tokens or donations to the OSS community -- The Public Solana Agent Kit Treasury Address:
Solana Network : EKHTbXpsm6YDgJzMkFxNU1LNXeWcUW7Ezf8mjUNQQ4Pa
Security
This toolkit handles private keys and transactions. Always ensure you're using it in a secure environment and never share your private keys.