Features
- Native SOL & SPL Tokens: Transfer SOL and any SPL token
- DeFi Integration: Token swaps via Jupiter aggregator
- Portfolio Management: Real-time balance tracking with USD valuations
- Market Data: Live price feeds for SOL, BTC, ETH, and SPL tokens
- AI-Powered: Natural language understanding for all operations
- WebSocket Support: Real-time account monitoring and updates
Installation
Configuration
The plugin requires the following environment variables:Usage
Actions
Transfer Tokens
Send SOL or SPL tokens to any Solana address. Example prompts:- “Send 1 SOL to 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU”
- “Transfer 100 USDC to alice.sol”
- “Send 50 BONK tokens to Bob’s wallet”
Swap Tokens
Exchange tokens using Jupiter’s aggregator for best prices. Example prompts:- “Swap 10 SOL for USDC”
- “Exchange all my BONK for SOL”
- “Trade 100 USDC for RAY with 1% slippage”
Providers
The plugin includes a comprehensive wallet provider that gives your agent awareness of:- Total portfolio value in USD and SOL
- Individual token balances with current prices
- Real-time updates via WebSocket subscriptions
- Token metadata including symbols and decimals
Key Features
AI-Powered Intent Parsing
The plugin uses advanced prompt engineering to understand natural language:Automatic Token Resolution
No need to specify token addresses - just use symbols:- Automatically resolves token symbols to mint addresses
- Fetches current token metadata
- Validates token existence before transactions
Real-Time Portfolio Tracking
- Updates every 2 minutes automatically
- WebSocket subscriptions for instant updates
- Comprehensive USD valuations using Birdeye API
High-Performance Architecture
- Connection pooling for optimal RPC usage
- Intelligent caching to minimize API calls
- Retry logic with exponential backoff
- Transaction simulation before execution
Advanced Configuration
Using Helius RPC
For enhanced performance and reliability:Custom Network Configuration
Connect to devnet or custom networks:Public Key Only Mode
For read-only operations without a private key:Error Handling
The plugin includes robust error handling for:- Insufficient balance errors
- Network timeouts and failures
- Invalid addresses or tokens
- Slippage tolerance exceeded
- Transaction simulation failures
Security Considerations
- Private keys support both base58 and base64 formats
- Never expose private keys in logs or responses
- Use public key mode when write access isn’t needed
- Validate all user inputs before execution
- Set appropriate slippage for swaps
Performance Tips
- Use Helius or other premium RPCs for production
- Enable WebSocket connections for real-time updates
- Configure appropriate cache TTLs
- Monitor rate limits on external APIs