Pharos Agent Kit
Pharos Agent Kit is a comprehensive toolkit designed to simplify AI agents' interactions with Pharos blockchain
Videos
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
Progress During Hackathon
π§ Progress During the Hackathon During the hackathon, I successfully implemented full integration with the Pharos Blockchain through the PharosAgentKit. This included: - β Developed and deployed core functionalities for: - π Checking native and ERC-20 token balances - πΈ Transferring ETH and ERC-20 tokens - π Fetching real-time token prices via CoinGecko - π Tracking trending tokens and market data - π¦ Accessing DeFi TVL and protocol data from DeFiLlama - π± Integrating social insights via Elfa AI - βοΈ Built developer-friendly interfaces using: - π§ LangChain tools (via DynamicStructuredTool) - π§ͺ Zod for input validation - π¦ Seamless integration with Vercel AI SDK and Model Context Protocol (MCP) - π€ Designed the system to be model-agnostic, allowing any AI agent to interact with Pharos onchain via natural language commands. - π§ͺ Thoroughly tested all functions and documented how developers can extend the toolkit with custom tools and actions. - π Overall, this work delivers a production-ready SDK that opens up the Pharos Blockchain to the AI agent ecosystem.
Tech Stack
Fundraising Status
π° Fundraising Status We are actively seeking funding to accelerate the development and adoption of the PharosAgentKit. Weβre open to angel investors, VCs, and ecosystem grants aligned with our mission.