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.