hackquest logo

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

本次黑客松进展

🚧 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.

技术栈

Node
Web3
Ethers
Solidity
Rust
Typescript
Pharos
Langchain

融资状态

💰 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.

队长
Kkakarot8363
赛道
AIOther