|
1 |
| -<div align="center"> |
2 |
| - |
3 |
| -# Solana AI Agent |
4 |
| - |
5 |
| -Solana AI Agent, an innovative solution built on the Solana blockchain that harnesses the power of artificial intelligence to revolutionize digital interactions. Designed to automate complex tasks and optimize decision-making, Solana empowers users with real-time analytics and efficient operations in the DeFi space. With its ability to learn and adapt, Solana aims to provide seamless integration and meaningful insights for both newcomers and experienced crypto enthusiasts. Experience the future of autonomous technology with Solana, where AI meets the dynamic landscape of blockchain. |
6 |
| - |
7 |
| -</div> |
8 |
| - |
9 |
| -# Overview |
10 |
| - |
11 |
| -The Solana AI Agent for connecting AI agents to Solana protocols. |
12 |
| - |
13 |
| -1. **Blockchain Agent Chat Terminal** |
14 |
| - - Real-time Streaming Implementation |
15 |
| - - Blockchain Integration |
16 |
| - - UI Components Design |
17 |
| -2. Trading Infrastructure |
18 |
| - - Jupiter Exchange swaps |
19 |
| - - Launch on Pump via PumpPortal |
20 |
| - - Raydium pool creation (CPMM, CLMM, AMMv4) |
21 |
| - - Orca Whirlpool integration |
22 |
| - - Manifest market creation and limit orders |
23 |
| - - Meteora Dynamic AMM, DLMM Pool, and Alpha Vault |
24 |
| - - Openbook market creation |
25 |
| - - Register and resolve SNS |
26 |
| - - Jito Bundles |
27 |
| - - Pyth Price feeds for fetching asset prices |
28 |
| - - Perpetuals trading with Adrena Protocol |
29 |
| - - Drift Vaults, Perps, Lending, and Borrowing |
30 |
| -3. Analytics and Automation |
31 |
| - - Dashboard for Real-time Market Analytics |
32 |
| - - Whale Monitoring |
33 |
| - - DeFi Insights |
34 |
| - - NFT Management |
35 |
| - - NFT Listing Automtaion |
36 |
| - - Multichain-bridge to Solana |
37 |
| - - Autonomous trading agent powered by Solana AI |
38 |
| -4. Expand Cross-Chain Support & Security Features |
39 |
| - - Interoperability |
40 |
| - - Enhanced Security Tools |
41 |
| - - Comprehensive Ecosystem Integration |
42 |
| - |
43 |
| -5. Full Decentralization with Community Governance |
44 |
| - - Decentralized Architecture |
45 |
| - - Community-Led Decision Making |
46 |
| - - Sustainability and Growth |
47 |
| - |
48 |
| -Anyone - whether an SF-based AI researcher or a crypto-native builder - can bring their AI agents trained with any model and seamlessly integrate with Solana. |
49 |
| - |
50 |
| -[](https://replit.com/@earthzetaorg/solana-ai-agents) |
51 |
| - |
52 |
| -## 🔧 Core Blockchain Features |
53 |
| - |
54 |
| -- **Token Operations** |
55 |
| - - Deploy SPL tokens by Metaplex |
56 |
| - - Transfer assets |
57 |
| - - Balance checks |
58 |
| - - Stake SOL |
59 |
| - - Zk compressed Airdrop by Light Protocol and Helius |
60 |
| -- **NFTs on 3.Land** |
61 |
| - - Create your own collection |
62 |
| - - NFT creation and automatic listing on 3.land |
63 |
| - - List your NFT for sale in any SPL token |
64 |
| -- **NFT Management via Metaplex** |
65 |
| - - Collection deployment |
66 |
| - - NFT minting |
67 |
| - - Metadata management |
68 |
| - - Royalty configuration |
69 |
| - |
70 |
| -- **DeFi Integration** |
71 |
| - - Jupiter Exchange swaps |
72 |
| - - Launch on Pump via PumpPortal |
73 |
| - - Raydium pool creation (CPMM, CLMM, AMMv4) |
74 |
| - - Orca Whirlpool integration |
75 |
| - - Manifest market creation, and limit orders |
76 |
| - - Meteora Dynamic AMM, DLMM Pool, and Alpha Vault |
77 |
| - - Openbook market creation |
78 |
| - - Register and Resolve SNS |
79 |
| - - Jito Bundles |
80 |
| - - Pyth Price feeds for fetching Asset Prices |
81 |
| - - Register/resolve Alldomains |
82 |
| - - Perpetuals Trading with Adrena Protocol |
83 |
| - - Drift Vaults, Perps, Lending and Borrowing |
84 |
| - |
85 |
| -- **Solana Blinks** |
86 |
| - - Lending by Lulo (Best APR for USDC) |
87 |
| - - Send Arcade Games |
88 |
| - - JupSOL staking |
89 |
| - - Solayer SOL (sSOL)staking |
90 |
| - |
91 |
| -- **Non-Financial Actions** |
92 |
| - - Gib Work for registering bounties |
93 |
| - |
94 |
| -## 🤖 AI Integration Features |
95 |
| - |
96 |
| -- **LangChain Integration** |
97 |
| - - Ready-to-use LangChain tools for blockchain operations |
98 |
| - - Autonomous agent support with React framework |
99 |
| - - Memory management for persistent interactions |
100 |
| - - Streaming responses for real-time feedback |
101 |
| - |
102 |
| -- **Vercel AI SDK Integration** |
103 |
| - - Vercel AI SDK for AI agent integration |
104 |
| - - Framework agnostic support |
105 |
| - - Quick and easy toolkit setup |
106 |
| - |
107 |
| -- **Autonomous Modes** |
108 |
| - - Interactive chat mode for guided operations |
109 |
| - - Autonomous mode for independent agent actions |
110 |
| - - Configurable action intervals |
111 |
| - - Built-in error handling and recovery |
112 |
| - |
113 |
| -- **AI Tools** |
114 |
| - - DALL-E integration for NFT artwork generation |
115 |
| - - Natural language processing for blockchain commands |
116 |
| - - Price feed integration for market analysis |
117 |
| - - Automated decision-making capabilities |
118 |
| - |
119 |
| -## Quick Start |
| 1 | +# **Solana AI Agent** |
120 | 2 |
|
121 |
| -```typescript |
122 |
| -import { SolanaAIAgent, createSolanaTools } from "solana-ai-agents"; |
123 |
| - |
124 |
| -// Initialize with private key and optional RPC URL |
125 |
| -const agent = new SolanaAIAgent( |
126 |
| - "your-wallet-private-key-as-base58", |
127 |
| - "https://api.mainnet-beta.solana.com", |
128 |
| - "your-openai-api-key" |
129 |
| -); |
| 3 | +**An innovative AI-powered solution built on the Solana blockchain.** |
130 | 4 |
|
131 |
| -// Create LangChain tools |
132 |
| -const tools = createSolanaTools(agent); |
133 |
| -``` |
| 5 | +Solana AI Agent revolutionizes digital interactions by integrating **artificial intelligence** with the **Solana blockchain**. Designed for **automating complex tasks** and **optimizing decision-making**, this agent enhances **DeFi operations, trading, analytics, and cross-chain interactions**. |
134 | 6 |
|
135 |
| -## Usage Examples |
| 7 | +With its ability to learn and adapt, Solana AI Agent ensures **seamless integration and actionable insights** for both newcomers and experienced crypto users. |
136 | 8 |
|
137 |
| -- Deploy a New Token |
| 9 | +--- |
138 | 10 |
|
139 |
| -- Create NFT on 3Land |
140 |
| -When creating an NFT using 3Land's tool, it automatically goes for sale on 3.land website |
| 11 | +## **📌 Overview** |
141 | 12 |
|
142 |
| -- Create NFT Collection |
| 13 | +**Solana AI Agent** enables the connection between AI agents and Solana protocols, offering: |
143 | 14 |
|
144 |
| -- Swap Tokens |
| 15 | +### **1️⃣ Blockchain Agent Chat Terminal** |
| 16 | +- **Real-time streaming** implementation |
| 17 | +- **Blockchain integration** for AI-driven operations |
| 18 | +- **Intuitive UI components** for seamless interaction |
145 | 19 |
|
146 |
| -- Lend Tokens |
| 20 | +### **2️⃣ Trading Infrastructure** |
| 21 | +- **Jupiter Exchange swaps** |
| 22 | +- **PumpPortal launch support** |
| 23 | +- **Raydium pool creation** (CPMM, CLMM, AMMv4) |
| 24 | +- **Orca Whirlpool & OpenBook market integration** |
| 25 | +- **Pyth price feeds** for real-time asset tracking |
| 26 | +- **Drift Vaults, Perps, Lending, and Borrowing** |
147 | 27 |
|
148 |
| -- Stake SOL |
| 28 | +### **3️⃣ Analytics & Automation** |
| 29 | +- **Real-time market analytics dashboard** |
| 30 | +- **Whale monitoring & DeFi insights** |
| 31 | +- **NFT management & automated NFT listing** |
| 32 | +- **Multi-chain bridge to Solana** |
| 33 | +- **Autonomous trading agent powered by Solana AI** |
149 | 34 |
|
150 |
| -- Stake SOL on Solayer |
| 35 | +### **4️⃣ Cross-Chain & Security Enhancements** |
| 36 | +- **Interoperability across ecosystems** |
| 37 | +- **Advanced security protocols** |
| 38 | +- **Comprehensive integration with Solana's ecosystem** |
151 | 39 |
|
152 |
| -- Send an SPL Token Airdrop via ZK Compression |
| 40 | +### **5️⃣ Full Decentralization & Community Governance** |
| 41 | +- **Decentralized architecture** |
| 42 | +- **Community-led decision-making** |
| 43 | +- **Sustainable growth & innovation** |
153 | 44 |
|
154 |
| -- Fetch Price Data from Pyth |
| 45 | +**Anyone**—whether an **AI researcher** or a **crypto-native developer**—can train AI agents and seamlessly integrate them with Solana. |
155 | 46 |
|
156 |
| -- Open PERP Trade |
| 47 | +[](https://replit.com/@toptrendev/solana-ai-agents) |
157 | 48 |
|
158 |
| -- Close PERP Trade |
| 49 | +--- |
159 | 50 |
|
160 |
| -- Close Empty Token Accounts |
| 51 | +## **🔧 Core Blockchain Features** |
161 | 52 |
|
162 |
| -- Create a Drift account |
| 53 | +### **🪙 Token Operations** |
| 54 | +- Deploy **SPL tokens** via **Metaplex** |
| 55 | +- **Transfer assets** and **balance checks** |
| 56 | +- **Stake SOL** for rewards |
| 57 | +- **ZK-compressed airdrops** via **Light Protocol & Helius** |
163 | 58 |
|
164 |
| -- Create a Drift Vault |
| 59 | +### **🎨 NFT Integration** |
| 60 | +- **Create NFT collections** and list them automatically on **3.land** |
| 61 | +- **NFT metadata & royalty management** via **Metaplex** |
165 | 62 |
|
166 |
| -- Deposit into a Drift Vault |
| 63 | +### **📊 DeFi Integration** |
| 64 | +- **Jupiter Exchange swaps & PumpPortal integration** |
| 65 | +- **Raydium & Orca liquidity pools** |
| 66 | +- **Perpetuals trading & lending via Adrena and Drift** |
| 67 | +- **Market data via Pyth price feeds** |
167 | 68 |
|
168 |
| -- Deposit into your Drift account |
| 69 | +### **⚡ Solana Blinks** |
| 70 | +- **Best USDC lending rates via Lulo** |
| 71 | +- **Arcade game transactions** |
| 72 | +- **JupSOL staking & Solayer SOL staking** |
169 | 73 |
|
170 |
| -- Derive a Drift Vault address |
| 74 | +### **🛠️ Non-Financial Actions** |
| 75 | +- **Bounty registration** via Gib Work |
171 | 76 |
|
172 |
| -- Do you have a Drift account |
| 77 | +--- |
173 | 78 |
|
174 |
| -- Get Drift account information |
| 79 | +## **🤖 AI Integration Features** |
175 | 80 |
|
176 |
| -- Request withdrawal from Drift vault |
| 81 | +### **💡 LangChain Integration** |
| 82 | +- **Blockchain-ready LangChain tools** |
| 83 | +- **Autonomous agent support** with **React framework** |
| 84 | +- **Persistent memory management** |
| 85 | +- **Real-time streaming responses** |
177 | 86 |
|
178 |
| -- Carry out a perpetual trade using a Drift vault |
| 87 | +### **🚀 Vercel AI SDK Integration** |
| 88 | +- **Framework-agnostic** AI toolkit |
| 89 | +- **Seamless integration** for AI agent workflows |
179 | 90 |
|
180 |
| -- Carry out a perpetual trade using your Drift account |
| 91 | +### **🔄 Autonomous AI Modes** |
| 92 | +- **Interactive mode** for user-guided operations |
| 93 | +- **Fully autonomous mode** for AI-driven tasks |
| 94 | +- **Configurable action intervals & error handling** |
181 | 95 |
|
182 |
| -- Update Drift vault parameters |
| 96 | +### **🖼️ AI-Powered Tools** |
| 97 | +- **DALL·E integration** for **NFT artwork generation** |
| 98 | +- **Natural Language Processing (NLP)** for blockchain commands |
| 99 | +- **Automated price feed tracking & market analysis** |
| 100 | +- **AI-driven decision-making for DeFi strategies** |
183 | 101 |
|
184 |
| -- Withdraw from Drift account |
| 102 | +--- |
185 | 103 |
|
186 |
| -- Borrow from Drift |
| 104 | +## **🚀 Quick Start Guide** |
187 | 105 |
|
188 |
| -- Repay Drift loan |
| 106 | +```typescript |
| 107 | +import { SolanaAIAgent, createSolanaTools } from "solana-ai-agents"; |
189 | 108 |
|
190 |
| -- Withdraw from Drift vault |
| 109 | +// Initialize with private key and optional RPC URL |
| 110 | +const agent = new SolanaAIAgent( |
| 111 | + "your-wallet-private-key-as-base58", |
| 112 | + "https://api.mainnet-beta.solana.com", |
| 113 | + "your-openai-api-key" |
| 114 | +); |
191 | 115 |
|
192 |
| -- Update the address a Drift vault is delegated to |
| 116 | +// Create LangChain tools |
| 117 | +const tools = createSolanaTools(agent); |
| 118 | +``` |
193 | 119 |
|
194 |
| -- Get Voltr Vault Position Values |
| 120 | +--- |
195 | 121 |
|
196 |
| -- Deposit into Voltr Strategy |
| 122 | +## **🛠️ Usage Examples** |
197 | 123 |
|
198 |
| -- Withdraw from Voltr Strategy |
| 124 | +- **Deploy a New Token** |
| 125 | +- **Create NFTs & Collections** (Auto-listed on **3Land**) |
| 126 | +- **Swap & Lend Tokens** |
| 127 | +- **Stake SOL on Solana & Solayer** |
| 128 | +- **ZK Compression Airdrops** |
| 129 | +- **Fetch Market Data via Pyth** |
| 130 | +- **Open & Close Perpetual Trades** |
| 131 | +- **Manage Drift Vaults & Accounts** |
| 132 | +- **Borrow & Repay Loans on Drift** |
199 | 133 |
|
200 |
| -- Get a Solana asset by its ID |
| 134 | +--- |
201 | 135 |
|
202 |
| -## Examples |
| 136 | +## **🔍 Advanced AI & Blockchain Examples** |
203 | 137 |
|
204 |
| -### LangGraph Multi-Agent System |
| 138 | +### **LangGraph Multi-Agent System** |
| 139 | +This repository includes a **multi-agent system** using **LangGraph & Solana AI Agent**. |
205 | 140 |
|
206 |
| -The repository includes an advanced example of building a multi-agent system using LangGraph and Solana AI Agent. Located in `examples/agent-kit-langgraph`, this example demonstrates: |
| 141 | +📂 **Located in:** `examples/agent-kit-langgraph` |
207 | 142 |
|
208 |
| -- Multi-agent architecture using LangGraph's StateGraph |
209 |
| -- Specialized agents for different tasks: |
210 |
| - - General purpose agent for basic queries |
211 |
| - - Transfer/Swap agent for transaction operations |
212 |
| - - Read agent for blockchain data queries |
213 |
| - - Manager agent for routing and orchestration |
214 |
| -- Fully typed TypeScript implementation |
215 |
| -- Environment-based configuration |
| 143 | +🔹 **Features:** |
| 144 | +- **Multi-agent architecture** using **StateGraph** |
| 145 | +- **Specialized agents** for queries, transactions, and market analysis |
| 146 | +- **Fully typed** implementation in **TypeScript** |
| 147 | +- **Configurable & scalable environment** |
216 | 148 |
|
217 |
| -Check out the [LangGraph example](examples/agent-kit-langgraph) for a complete implementation of an advanced Solana agents system. |
| 149 | +🔗 **Explore the full implementation:** [LangGraph Example](examples/agent-kit-langgraph) |
218 | 150 |
|
219 |
| -## Dependencies |
| 151 | +--- |
220 | 152 |
|
221 |
| -The toolkit relies on several key Solana and Metaplex libraries: |
| 153 | +## **📦 Dependencies** |
222 | 154 |
|
223 |
| -- @solana/web3.js |
224 |
| -- @solana/spl-token |
225 |
| -- @metaplex-foundation/digital-asset-standard-api |
226 |
| -- @metaplex-foundation/mpl-token-metadata |
227 |
| -- @metaplex-foundation/mpl-core |
228 |
| -- @metaplex-foundation/umi |
229 |
| -- @lightprotocol/compressed-token |
230 |
| -- @lightprotocol/stateless.js |
| 155 | +This toolkit integrates key Solana and Metaplex libraries: |
| 156 | +- `@solana/web3.js` |
| 157 | +- `@solana/spl-token` |
| 158 | +- `@metaplex-foundation/mpl-token-metadata` |
| 159 | +- `@lightprotocol/compressed-token` |
| 160 | +- `@lightprotocol/stateless.js` |
231 | 161 |
|
232 |
| -## Contributing |
| 162 | +--- |
233 | 163 |
|
234 |
| -Contributions are welcome! Please feel free to submit a Pull Request. |
235 |
| -Refer to [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines on how to contribute to this project. |
| 164 | +## **🤝 Contributing** |
236 | 165 |
|
237 |
| -## Contributors |
| 166 | +Contributions are welcome! Please review the [CONTRIBUTING.md](CONTRIBUTING.md) file before submitting a **Pull Request**. |
238 | 167 |
|
239 |
| -<a href="https://github.com/earthzetaorg/solana-ai-agents/graphs/contributors"> |
240 |
| - <img src="https://contrib.rocks/image?repo=earthzetaorg/solana-ai-agents" /> |
241 |
| -</a> |
| 168 | +--- |
242 | 169 |
|
243 |
| -## Star History |
| 170 | +## **👥 Contributors** |
244 | 171 |
|
245 |
| -[](https://star-history.com/#earthzetaorg/solana-ai-agents&Date) |
| 172 | +<a href="https://github.com/toptrendev/solana-ai-agents/graphs/contributors"> |
| 173 | + <img src="https://contrib.rocks/image?repo=toptrendev/solana-ai-agents" /> |
| 174 | +</a> |
246 | 175 |
|
247 |
| -## License |
| 176 | +--- |
248 | 177 |
|
249 |
| -Apache-2 License |
| 178 | +## **🛡️ Security Notice** |
250 | 179 |
|
251 |
| -## Security |
| 180 | +⚠️ **Always store your private keys securely.** This toolkit handles **private keys and blockchain transactions**, so ensure proper security measures. |
252 | 181 |
|
253 |
| -This toolkit handles private keys and transactions. Always ensure you're using it in a secure environment and never share your private keys. |
| 182 | +--- |
254 | 183 |
|
255 |
| -## 👋 Contact Me |
| 184 | +## **📬 Contact & Community** |
256 | 185 |
|
257 |
| -### |
258 |
| -Telegram: https://t.me/earthzeta |
259 |
| -### |
260 |
| -<div style={{display:flex; justify-content:space-evenly}}> |
261 |
| - <a href="https://t.me/earthzeta" target="_blank"><img alt="Telegram" |
262 |
| - src="https://img.shields.io/badge/Telegram-26A5E4?style=for-the-badge&logo=telegram&logoColor=white"/></a> |
263 |
| - <a href="https://discordapp.com/users/339619501081362432" target="_blank"><img alt="Discord" |
264 |
| - src="https://img.shields.io/badge/Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white"/></a> |
265 |
| -</div> |
| 186 | +📢 **Telegram:** [@toptrendev](https://t.me/toptrendev) |
| 187 | +📢 **Discord:** [toptrendev](https://discordapp.com/users/334173411402317846) |
0 commit comments