7 releases
| 0.1.6 | Feb 20, 2025 |
|---|---|
| 0.1.5 | Feb 11, 2025 |
#1405 in #solana
233 downloads per month
Used in 21 crates
17KB
236 lines
solagent.rs: Bridging the Gap Between AI and Solana protocols
solagent.rs is an open-source Rust library designed to streamline the integration of AI agents with Solana protocols. Built upon the rig framework, solagent.rs empowers developers to construct portable, modular, and lightweight full-stack AI agents capable of interacting with the Solana blockchain.
This powerful toolkit simplifies agent-to-blockchain communication, offering a comprehensive suite of functions for tasks such as token operations, trading, and more. By leveraging solagent.rs, developers can seamlessly connect their AI agents to the Solana ecosystem, unlocking a world of possibilities for on-chain automation and intelligent decision-making.
SOLAGENT
- Agent Frameworks: Rig
- Wallets: keypair, solana
- tools: Birdeye, dexscreener, solana, jupiter, helius and more
- Chains: Solana only
Quick start
- Add dependencies
[dependencies]
# add wallet
solagent-wallet-solana = "0.1.4"
# add core
solagent-core = "0.1.6"
# add plugin
solagent-plugin-birdeye = "0.1.7"
- Create agent
use solagent_core::{ConfigBuilder, SolanaAgentKit};
use solagent_plugin_birdeye::get_token_metadata;
use solagent_wallet_solana::Wallet;
#[tokio::main]
async fn main() {
let wallet = Wallet::from_env("SOLANA_WALLET").unwrap();
let config = ConfigBuilder::default().birdeye_api_key("api_key".into()).build();
let agent = SolanaAgentKit::new(wallet, "https://api.devnet.solana.com", config);
let data = get_token_metadata(&agent, "So11111111111111111111111111111111111111112")
.await
.unwrap();
println!("{:#?}", data);
}
Table of Contens
Packages
Core
| Crate | Package | Version | Downloads |
|---|---|---|---|
| Core | solagent-core | ||
| Wallet | solagent-wallet-solana |
Tools
| Tools | Description | Package | Version | Downloads |
|---|---|---|---|---|
| gibwork | Create a task on Gibwork | solagent-rig-gibwork | ||
| goplus | Token Security API | solagent-rig-goplus | ||
| helius | Webhook operates | solagent-rig-helius | ||
| jupiter | Jupiter Exchange | solagent-rig-jupiter | ||
| pumpfun | Launch Token on pumpfun | solagent-rig-pumpfun | ||
| pyth | Fetch price from Pyth | solagent-rig-pyth | ||
| rugcheck | Rug check | solagent-rig-rugcheck | ||
| solana | Operations on solana | solagent-rig-solana | ||
| solayer | Stake with solayer | solagent-rig-solayer | ||
| cookie | Cookie Data Swarm APIs | solagent-rig-cookie | ||
| dexscreener | Dexscreener data APIs | solagent-rig-dexscreener | ||
| birdeye | Birdeye API | solagent-rig-birdeye |
Plugins
| Plugin | Description | Package | Version | Downloads |
|---|---|---|---|---|
| gibwork | Create a task on Gibwork | solagent-plugin-gibwork | ||
| goplus | Token Security API | solagent-plugin-goplus | ||
| helius | Webhook operates | solagent-plugin-helius | ||
| jupiter | Jupiter Exchange | solagent-plugin-jupiter | ||
| pumpfun | Launch Token on pumpfun | solagent-plugin-pumpfun | ||
| pyth | Fetch price from Pyth | solagent-plugin-pyth | ||
| rugcheck | Rug check | solagent-plugin-rugcheck | ||
| solana | Operations on solana | solagent-plugin-solana | ||
| solayer | Stake with solayer | solagent-plugin-solayer | ||
| cookie | Cookie Data Swarm APIs | solagent-plugin-cookie | ||
| dexscreener | Dexscreener data APIs | solagent-plugin-dexscreener | ||
| birdeye | Birdeye API | solagent-plugin-birdeye |
Contributors
Star History
Support solagent.rs
Thank you for your support of solagent.rs! Donation Addresses:
Solana: qsvR7V3DtbbxAEs4TkGiQL9N9Z1GccfV6Q6Vm2oHViS
Ethereum: 0x972b8d20f5847B03Df43d9A595B7e83A7bbCD951
Supporters
SendAI: solscan.io
Dependencies
~49–69MB
~1M SLoC