1 unstable release
0.1.0 | Feb 1, 2025 |
---|
#7 in #pyth
30 downloads per month
Used in solagent-rig-pyth
7KB
89 lines
solagent.rs
An open-source Agent framework for connecting any AI agents to Solana protocols in Rust.
SOLAGENT.RS
- Agent Frameworks: Rig
- Wallets: keypair, solana
- +50 tools: Birdeye, dexscreener, solana, jupiter, helius nd more
- Chains: Solana
Quick start
- Add dependencies
[dependencies]
# add wallet
solagent-wallet-solana = "0.1.3"
# 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
~4–19MB
~196K SLoC