Skip to main content

Overview

The Arcana Agent Marketplace consists of 7 specialized agents, each providing domain-specific crypto intelligence through paid x402 endpoints. Every agent is independently priced and optimized for its specific use case.

4 Basic Agents

$0.01 per call
  • Oracle
  • Scout
  • News
  • Yield

3 Premium Agents

$0.02 per call
  • Tokenomics
  • NFT
  • Perp

x402 Architecture

All agents use HTTP 402 payment protocol on Base Sepolia

Agent Catalog

Oracle Agent

Price Oracle

Price: $0.01 per callAgent ID: oracleEndpoints:
  • GET /api/x402/oracle/price?symbol=BTC
  • POST /api/x402/oracle/prices (batch)

What It Does

Provides real-time cryptocurrency price data from CoinGecko, supporting 500+ tokens.
  • Token Prices: Current USD price for any supported token
  • Market Data: 24h price change, market cap, volume
  • Batch Queries: Fetch multiple prices in one call
  • Symbol Mapping: Supports common symbols (BTC, ETH, SOL, etc.)
  • Cache: 30-second cache to reduce API costs
Data Source: CoinGecko API (free tier, no API key required)

Scout Agent

Chain Scout

Price: $0.01 per callAgent ID: scoutEndpoints:
  • GET /api/x402/scout/analyze?address=0x...
  • GET /api/x402/scout/gas
  • GET /api/x402/scout/gas-estimate?operation=eth_transfer
  • GET /api/x402/scout/dex?chain=ethereum
  • GET /api/x402/scout/protocol?protocol=uniswap
  • GET /api/x402/scout/bridges
  • GET /api/x402/scout/hacks

What It Does

Provides on-chain analytics, gas prices, wallet analysis, and DeFi protocol intelligence.
Endpoint: /scout/analyze?address=0x...Analyzes Ethereum wallets using Alchemy:
  • Token balances and portfolio value
  • NFT holdings
  • Transaction history
  • ENS domain resolution
Example Response:
{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "ensName": "vitalik.eth",
  "tokens": [
    { "symbol": "ETH", "balance": "123.45", "value": 234567.89 },
    { "symbol": "USDC", "balance": "50000", "value": 50000 }
  ],
  "nfts": [
    { "collection": "Bored Ape Yacht Club", "count": 1 }
  ],
  "totalValue": 284567.89
}
Data Sources: Alchemy API (wallet analytics), Etherscan (gas), DeFiLlama (protocols, TVL)

News Agent

News Scout

Price: $0.01 per callAgent ID: newsEndpoints:
  • GET /api/x402/news/latest?limit=10
  • GET /api/x402/news/search?query=bitcoin&limit=10
  • GET /api/x402/news/breaking
  • GET /api/x402/news/trending

What It Does

Aggregates real-time crypto news from multiple sources with sentiment analysis and trending topics.
Endpoint: /news/latest?limit=10Returns the most recent crypto news articles:
{
  "articles": [
    {
      "title": "Bitcoin Surges Past $97K on ETF Inflows",
      "link": "https://...",
      "description": "Bitcoin reached new highs today...",
      "pubDate": "2026-03-03T10:30:00Z",
      "source": "CoinDesk",
      "category": "Market",
      "timeAgo": "5m ago"
    }
  ],
  "totalCount": 247,
  "sources": ["CoinDesk", "Decrypt", "The Block"],
  "fetchedAt": "2026-03-03T10:35:00Z"
}
Data Source: cryptocurrency.cv API (free, no API key required)

Yield Agent

Yield Optimizer

Price: $0.01 per callAgent ID: yieldEndpoints:
  • GET /api/x402/yield/top?chain=ethereum&limit=20
  • GET /api/x402/yield/asset?token=ETH

What It Does

Aggregates DeFi yield opportunities from 7 major protocols across all chains with risk scoring.
Endpoint: /yield/top?minApy=5&limit=20Returns best yield opportunities with risk assessment:
{
  "opportunities": [
    {
      "protocol": "Lido",
      "name": "stETH Staking",
      "asset": "ETH → stETH",
      "apy": 3.2,
      "tvl": 30000000000,
      "chain": "ethereum",
      "risk": "LOW",
      "type": "staking",
      "url": "https://stake.lido.fi"
    },
    {
      "protocol": "Aave",
      "name": "USDC Supply",
      "asset": "USDC",
      "apy": 4.8,
      "chain": "ethereum",
      "risk": "LOW",
      "type": "lending",
      "url": "https://app.aave.com/reserve-overview/?underlyingAsset=0xa0b86991..."
    }
  ],
  "totalCount": 347,
  "fetchedAt": "2026-03-03T10:40:00Z"
}
Data Sources: Direct protocol APIs + DeFiLlama yield aggregation

Tokenomics Agent

Tokenomics Analyzer

Price: $0.02 per callAgent ID: tokenomicsEndpoints:
  • GET /api/x402/tokenomics/analyze?symbol=ARB

What It Does

Analyzes token supply, vesting schedules, unlock events, and allocation breakdowns for 200+ tokens.
Endpoint: /tokenomics/analyze?symbol=ARB
{
  "symbol": "ARB",
  "name": "Arbitrum",
  "supply": {
    "circulating": 2500000000,
    "total": 10000000000,
    "max": 10000000000,
    "circulatingFormatted": "2.50B",
    "totalFormatted": "10.00B",
    "maxFormatted": "10.00B",
    "percentUnlocked": 25.0
  },
  "inflation": {
    "annualRate": "~21.4%",
    "fullyDilutedBy": "~2029"
  }
}
Premium Agent: Charges $0.02 per call due to multiple API requests and complex data aggregation.
Data Sources: CoinGecko (supply data), Mobula (vesting schedules), hardcoded allocations for major tokens

NFT Agent

NFT Scout

Price: $0.02 per callAgent ID: nftEndpoints:
  • GET /api/x402/scout/nft/:slug
  • GET /api/x402/scout/search?q=pudgy+penguins

What It Does

Provides NFT collection analytics, floor prices, sales trends, and recent activity from OpenSea.
Endpoint: /scout/nft/boredapeyachtclub
{
  "slug": "boredapeyachtclub",
  "name": "Bored Ape Yacht Club",
  "description": "The Bored Ape Yacht Club is a collection of 10,000 unique Bored Ape NFTs...",
  "floor_price": 32.5,
  "floor_price_symbol": "ETH",
  "volume_total": 1250000,
  "num_owners": 5834,
  "market_cap": 325000,
  "image_url": "https://...",
  "opensea_url": "https://opensea.io/collection/boredapeyachtclub",
  "sales_trend": "up"
}
OpenSea API Key Required: This agent requires an OpenSea API key (set OPENSEA_API_KEY in backend .env).
Data Source: OpenSea API v2

Perp Agent

Perp Stats

Price: $0.02 per callAgent ID: perpEndpoints:
  • GET /api/x402/perp/markets
  • GET /api/x402/perp/global

What It Does

Aggregates perpetual futures market data from 6 major decentralized exchanges.
Endpoint: /perp/marketsReturns all available perp markets:
{
  "success": true,
  "data": [
    {
      "exchange": "Hyperliquid",
      "symbol": "BTC-USD",
      "markPrice": 97234.50,
      "indexPrice": 97230.25,
      "fundingRate": 0.0001,
      "openInterestUsd": 1250000000,
      "volume24h": 3200000000,
      "priceChange24h": 2.34,
      "maxLeverage": 50,
      "url": "https://app.hyperliquid.xyz/trade/BTC"
    },
    {
      "exchange": "dYdX",
      "symbol": "ETH-USD",
      "markPrice": 3456.78,
      "fundingRate": 0.00008,
      "openInterestUsd": 890000000,
      "volume24h": 1800000000
    }
  ],
  "meta": {
    "count": 247,
    "sources": ["Hyperliquid", "dYdX", "Paradex", "Lighter", "Pacifica", "EdgeX"]
  }
}
Premium Agent: Charges $0.02 per call due to multiple exchange API requests and data normalization.
Data Sources: Direct APIs from Hyperliquid, dYdX, Paradex, Lighter, Pacifica, EdgeX

Agent Discovery

How Gemini Selects Agents

When a user asks a question, Gemini analyzes the intent and selects appropriate agents:
1

Intent Analysis

Gemini identifies keywords and intent:
  • Price/market → Oracle
  • Gas/wallet/on-chain → Scout
  • News/headlines → News
  • Yield/APY/staking → Yield
  • Supply/vesting/unlocks → Tokenomics
  • NFT/collection → NFT
  • Perp/futures/leverage → Perp
2

Multi-Agent Queries

Some queries need multiple agents:
  • “What’s ETH price and yield?” → Oracle + Yield
  • “BTC price and recent news” → Oracle + News
  • “ARB tokenomics and unlock schedule” → Tokenomics
3

Fallback Handling

If agent call fails:
  • Try alternative provider if available
  • Return partial response
  • Inform user which agents failed

Agent Health Monitoring

The backend tracks agent performance:

Success Rate

Percentage of successful calls (200-299 status)

Latency

Average response time in milliseconds

Circuit Breaker

Auto-disable after 3 consecutive failures
Dashboard View:
{
  "agent": "oracle",
  "status": "healthy",
  "stats": {
    "calls": 1247,
    "successes": 1235,
    "failures": 12,
    "successRate": 99.04,
    "avgLatencyMs": 245,
    "circuitOpen": false
  },
  "lastSeen": "2026-03-03T10:45:00Z"
}

Policy Controls

Admins can control agent behavior via policy endpoints:
Temporarily disable an agent:
POST /admin/policy/oracle/freeze
x-admin-key: your-admin-key

{
  "frozen": true
}
Frozen agents:
  • Reject all new calls with 403
  • Show “FROZEN” badge in dashboard
  • Can be reactivated by setting frozen: false

Cost Comparison

Example Query Breakdown

User Query: “What’s the price of Bitcoin, recent BTC news, and best yield for BTC?”
PaymentFromToAmountPurpose
1️⃣ User PaymentUserBackend$0.03Query processing
2️⃣ Oracle CallBackendOracle Agent$0.01BTC price
3️⃣ News CallBackendNews Agent$0.01BTC news
4️⃣ Yield CallBackendYield Agent$0.01BTC yield
Total$0.06End-to-end cost
Backend keeps 0.030.03 - 0.03 = $0.00 margin (covers Gemini API and infrastructure).

Pricing Philosophy

Why These Prices?

  • 0.010.01-0.02: Low enough for frequent queries
  • Transparent: Users see exactly which agents were called
  • Sustainable: Agents cover their API costs
  • Incentive-Aligned: Quality agents get more calls
  • Testnet: Real pricing on testnet validates the model

Future Agents

Potential new agents for the marketplace:

Social Agent

Track influencer sentiment, Twitter trends, Farcaster activity

Whale Tracker

Monitor large wallet movements and exchange flows

MEV Agent

MEV opportunities and sandwich attack alerts

DAO Agent

DAO proposal tracking and governance analytics

Airdrop Scout

Upcoming airdrops and eligibility checker

Bridge Agent

Cross-chain bridge comparison and routing

Next Steps

x402 Protocol

Learn how agents implement x402 payment endpoints

Payment Flow

See how payments flow from users to agents

Architecture

Understand the complete system architecture

Build docs developers (and LLMs) love