Pharos Agent Kit
Pharos Agent Kit is a comprehensive toolkit designed to simplify AI agents' interactions with Pharos blockchain
視頻
技術堆疊
描述
NPM Package : https://www.npmjs.com/package/pharos-agent-kit
🤖 Empowering AI Agents with Blockchain Capabilities 🔗
🚀 An open-source toolkit for connecting AI agents to Pharos protocols. Now, any agent, using any model can autonomously perform various Pharos Blockchain actions:
✨ Key Features
💰 Check ETH balance
🔄 Check ERC20 token balances
💸 Transfer ETH or ERC20 tokens
📊 Get token pricing data
📈 Fetch trending tokens
📉 Monitor market movements
🏦 Access DeFi protocols
🎯 And more...
🌐 Anyone can bring their AI agents trained with any model and seamlessly integrate with Pharos blockchain.
🔧 Core Blockchain Features
💎 Token Operations
💳 Check ERC20 token balances
💱 Transfer ERC20 tokens
📊 Market Data Integration
🦎 CoinGecko Pro API integration
⚡ Real-time token price data
📈 Trending tokens and pools
🚀 Top gainers analysis
🔍 Token information lookup
🏦 DeFi Data Access
📊 Protocol TVL tracking with DeFiLlama
💹 Price feeds and aggregation
📉 Token trading data
🌐 Social Data
🤖 Elfa AI social media insights
📊 Trending tokens by social activity
📱 Smart mentions tracking
👥 Social account analysis
🤖 AI Integration Features
🔗 LangChain Integration
🛠️ Ready-to-use LangChain tools for blockchain operations
🎯 DynamicStructuredTool-based implementation
✅ Zod schema validation
🛡️ Comprehensive error handling
🚀 Vercel AI SDK Integration
🔌 Vercel AI SDK for AI agent integration
🌐 Framework agnostic support
⚡ Quick and easy toolkit setup
📡 MCP Integration
🤝 Support for the Model Context Protocol
🏗️ Action-based architecture
📝 Structured schema definitions
🎨 AI Tools
🎨 DALL-E integration for image generation
🗣️ Natural language processing for blockchain commands
📊 Price feed integration for market analysis
📦 Installation
npm install pharos-agent-kit🚀 Quick Start
import { PharosAgentKit, createPharosTools } from "pharos-agent-kit";
// Initialize with private key and optional RPC URL
const agent = new PharosAgentKit(
"your-wallet-private-key",
"https://rpc-url.example.com",
{ OPENAI_API_KEY: "your-openai-api-key" } // optional config
);
// Create LangChain tools
const tools = createPharosTools(agent);📚 Dependencies
The toolkit relies on several key libraries:
🔧 viem for blockchain interactions
🤖 @langchain/core for AI agent tools
✅ zod for schema validation
🦎 CoinGecko API for market data