Pharos Agent Kit
Pharos Agent Kit is a comprehensive toolkit designed to simplify AI agents' interactions with Pharos blockchain
Videos
Tech Stack
Description
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