
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
solana-agentkit
Advanced tools
Welcome to the Solana AgentKit documentation! This Python package provides tools and utilities for building AI agents that can interact with the Solana blockchain.
# Basic installation
pip install solana-agentkit
# With development tools
pip install solana-agentkit[dev]
# With documentation tools
pip install solana-agentkit[docs]
from solana_agentkit import SolanaAgent
from solana_agentkit.tools import transfer_tokens, get_balance
# Initialize agent
agent = SolanaAgent(
private_key="your_private_key",
rpc_url="https://api.mainnet-beta.solana.com"
)
# Check balance
balance = await agent.get_balance()
print(f"Current balance: {balance} SOL")
# Transfer tokens
result = await agent.transfer(
to="recipient_address",
amount=1.0
)
print(f"Transfer successful: {result.signature}")
# Clone repository
git clone https://github.com/arhansuba/solana-agentkit
cd solana-agentkit
# Create virtual environment
python -m venv venv
source venv/bin/activate # Unix
# or
.\venv\Scripts\activate # Windows
# Install development dependencies
pip install -r requirements.txt
# Run all tests
pytest tests/
# Run with coverage
pytest --cov=solana_agentkit tests/
We use Black for code formatting and isort for import sorting:
# Format code
black src/ tests/
# Sort imports
isort src/ tests/
solana-agentkit/
βββ docs/ # Documentation
βββ src/ # Source code
β βββ solana_agentkit/
β βββ agent/ # Agent implementations
β βββ tools/ # Blockchain tools
β βββ utils/ # Utility functions
βββ tests/ # Test suite
βββ examples/ # Usage examples
plaintextCopysolana_agentkit/ βββ protocols/ # New module for additional DeFi protocols β βββ jupiter/ # Jupiter DEX integration β βββ orca/ # Orca DEX integration β βββ solend/ # Lending protocol integration βββ analytics/ # New module for on-chain analytics β βββ price/ # Price analysis and feeds β βββ volume/ # Volume analysis β βββ metrics/ # General protocol metrics βββ security/ # New module for security features β βββ validation/ # Input validation β βββ verification/ # Transaction verification βββ monitoring/ # New module for monitoring βββ events/ # Event monitoring βββ alerts/ # Alert system
Missing Tool Categories:
plaintextCopysolana_agentkit/tools/ βββ defi/ # DeFi-specific tools β βββ yield_farming.py β βββ liquidity_mining.py βββ governance/ # Governance tools β βββ proposal.py β βββ vote.py βββ analytics/ # Analytics tools β βββ market_analysis.py β βββ portfolio_tracking.py βββ automation/ # Automation tools βββ strategy.py βββ scheduler.py
Utility Enhancements:
plaintextCopysolana_agentkit/utils/ βββ cache/ # Caching utilities βββ rate_limiting/ # Rate limiting βββ error_handling/ # Enhanced error handling βββ logging/ # Logging utilities
Testing Infrastructure:
plaintextCopytests/ βββ unit/ # Unit tests βββ integration/ # Integration tests βββ e2e/ # End-to-end tests βββ fixtures/ # Test fixtures
Documentation:
plaintextCopydocs/ βββ api/ # API documentation βββ tutorials/ # Usage tutorials βββ examples/ # Example implementations βββ protocols/ # Protocol documentation Key missing features:
Protocol Integrations:
Jupiter integration for optimal routing Orca integration for concentrated liquidity Solend integration for lending operations Marinade integration for liquid staking
Analytics & Monitoring:
Price feed integration Market analytics Portfolio tracking Event monitoring Alert system
Enhanced Security:
Input validation framework Transaction simulation Risk assessment Rate limiting
Advanced Tools:
Yield farming strategies Liquidity mining tools Portfolio management Governance integration Automated trading strategies
Infrastructure:
Caching system Error handling framework Logging system Rate limiting Performance monitoring
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A Python toolkit for building AI agents on Solana
We found that solana-agentkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Hereβs whatβs actually happening.