Blockchain API for AI
The blockchain API designed specifically for AI consumption. Unlike traditional crypto APIs, Hive Intelligence formats data for optimal AI understanding and provides a unified interface across 60+ networks.
Why AI Agents Need a Different API
Traditional blockchain APIs (CoinGecko, Etherscan, etc.) weren't designed for AI:
| Traditional APIs | Hive Intelligence |
|---|---|
| Raw data formats | AI-optimized responses |
| Multiple integrations needed | Single API for all chains |
| Manual tool selection | Automatic tool discovery |
| Varied authentication | Unified access |
| Inconsistent errors | Standardized responses |
The AI Difference
When an AI agent asks "What's the price of Bitcoin?", it needs:
- Semantic context - Not just numbers, but meaning
- Formatted output - Ready for natural language responses
- Error handling - Clear messages it can relay to users
- Tool discovery - Know what data is available
Hive Intelligence provides all of this out of the box.
API Access Methods
REST API (HTTP)
For direct API calls from any application:
POST https://api.hiveintelligence.xyz/api/execute
Content-Type: application/json
{
"toolName": "get_price",
"arguments": {
"ids": "bitcoin,ethereum",
"vs_currencies": "usd"
}
}
Response: Returns tool data directly
{
"bitcoin": { "usd": 67234.00 },
"ethereum": { "usd": 3456.78 }
}
MCP Protocol
For AI agents supporting Model Context Protocol:
{
"mcpServers": {
"hive-intelligence": {
"url": "https://www.hiveintelligence.xyz/mcp"
}
}
}
The MCP interface provides:
- Tool Discovery - AI learns available tools automatically
- Type Safety - Structured parameters and responses
- Streaming - Real-time data updates
Supported Platforms
AI Assistants
- Claude Desktop - Native MCP support
- ChatGPT - Via REST API
- Google Gemini - Via REST API
- Open source LLMs - Via REST API or MCP
Agent Frameworks
- LangChain - Python and JavaScript
- LlamaIndex - Full integration
- AutoGPT - Custom tools
- Custom agents - Any framework
Trading Bots
- Algorithmic trading - Real-time data
- Arbitrage bots - Cross-exchange data
- DeFi bots - Protocol analytics
- Portfolio rebalancers - Multi-chain tracking
Available Data (275+ Tools)
Market Intelligence
# Get real-time prices
response = api.call("get_price", {
"ids": "bitcoin,ethereum,solana",
"vs_currencies": "usd"
})
# Get market data with rankings
response = api.call("get_coins_market_data", {
"vs_currency": "usd",
"per_page": 100
})
# Get trending coins
response = api.call("get_trending", {})
DeFi Analytics
# Get all DeFi protocols with TVL
response = api.call("get_protocols", {})
# Get yield farming opportunities
response = api.call("get_yield_pools", {
"chain": "ethereum"
})
DEX Data
# Get trending trading pools
response = api.call("get_trending_pools", {
"network": "ethereum"
})
# Get pool liquidity and volume
response = api.call("get_pool_info", {
"pool_address": "0x..."
})
Security Analysis
# Check if token is safe
response = api.call("get_token_security", {
"contract_addresses": "0x...",
"chain_id": "1"
})
Code Examples
Python
import requests
API_URL = "https://api.hiveintelligence.xyz/api/execute"
def call_hive(tool_name: str, arguments: dict) -> dict:
response = requests.post(API_URL, json={
"toolName": tool_name,
"arguments": arguments
})
return response.json()
# Get Bitcoin price
price = call_hive("get_price", {"ids": "bitcoin", "vs_currencies": "usd"})
print(f"Bitcoin: ${price['bitcoin']['usd']}")
# Get top DeFi protocols
protocols = call_hive("get_protocols", {})
for p in protocols[:5]:
print(f"{p['name']}: ${p['tvl']:,.0f} TVL")
JavaScript
const API_URL = "https://api.hiveintelligence.xyz/api/execute";
async function callHive(toolName, arguments) {
const response = await fetch(API_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ toolName, arguments })
});
return response.json();
}
// Get trending tokens
const trending = await callHive("get_trending", {});
console.log("Trending:", trending.coins.map(c => c.name));
LangChain Integration
from langchain.tools import tool
import requests
@tool
def get_crypto_price(coin: str) -> str:
"""Get the current price of a cryptocurrency."""
response = requests.post(
"https://api.hiveintelligence.xyz/api/execute",
json={
"toolName": "get_price",
"arguments": {"ids": coin, "vs_currencies": "usd"}
}
)
data = response.json()
price = data[coin]['usd']
return f"The current price of {coin} is ${price:,.2f}"
# Use in your LangChain agent
tools = [get_crypto_price]
Supported Blockchains
Full Support (All 275+ tools)
Ethereum, Polygon, Arbitrum, Optimism, Base, BNB Chain, Avalanche, Fantom, Cronos, zkSync Era
Extended Support
Solana, Tron, Near, Cosmos, and 50+ additional networks
Pricing
| Tier | Rate Limit | Price | Best For |
|---|---|---|---|
| Free | 30/min | $0 | Development, testing |
| Standard | 100/min | Contact | Small bots |
| Pro | 500/min | Contact | Production apps |
| Enterprise | Unlimited | Contact | High-volume |
All tiers include access to all 275+ tools.
Getting Started
- Try the API - No signup required for free tier
- Choose your method - REST API or MCP
- Build your agent - Use our code examples
- Scale up - Upgrade when you need more
Quick Links
- Quick Start Guide - Setup in 5 minutes
- API Documentation - REST API details
- Tools Reference - All 275+ tools
- SDKs - Language-specific libraries