惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
M
MIT News - Artificial intelligence
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
博客园_首页
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
F
Fortinet All Blogs
腾讯CDC
罗磊的独立博客
IT之家
IT之家
I
InfoQ
V
V2EX
博客园 - 叶小钗
A
About on SuperTechFans
Y
Y Combinator Blog
C
Check Point Blog
量子位
Martin Fowler
Martin Fowler
Vercel News
Vercel News

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
ElizaOS + x711: on-chain tools and real-time data for Web...
x711io · 2026-05-15 · via DEV Community

x711io

ElizaOS + x711: on-chain tools and real-time data for Web3 AI agents

ElizaOS (ai16z) agents are built for Web3 — but they need real-time on-chain data, price feeds, and execution tools to be useful. x711 provides all of that as a single MCP-compatible endpoint.

Option 1: MCP server (recommended for Eliza)

Add to your Eliza agent config:

{
  "plugins": ["@elizaos/plugin-mcp"],
  "settings": {
    "mcp": {
      "servers": {
        "x711": {
          "url": "https://x711.io/mcp",
          "transport": "streamable-http",
          "headers": { "X-API-Key": "x711_your_key_here" }
        }
      }
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

Your Eliza agent now has access to all 26 x711 tools automatically.

Option 2: Direct HTTP action

import { Action, IAgentRuntime, Memory } from "@elizaos/core";

const X711_KEY = process.env.X711_API_KEY!;

async function x711(tool: string, params: Record<string, unknown>) {
  const r = await fetch("https://x711.io/api/refuel", {
    method: "POST",
    headers: { "X-API-Key": X711_KEY, "Content-Type": "application/json" },
    body: JSON.stringify({ tool, ...params }),
  });
  return r.json();
}

export const getEthPriceAction: Action = {
  name: "GET_ETH_PRICE",
  description: "Get the current ETH price from x711 price_feed",
  similes: ["eth price", "ethereum price", "what is eth worth"],
  validate: async () => true,
  handler: async (runtime: IAgentRuntime, message: Memory) => {
    const result = await x711("price_feed", { assets: ["ETH", "BTC", "SOL"] });
    return `Current prices: ${JSON.stringify(result)}`;
  },
  examples: [],
};

export const simulateTxAction: Action = {
  name: "SIMULATE_TX",
  description: "Dry-run a transaction on Base before executing",
  similes: ["simulate", "dry run", "test transaction"],
  validate: async () => true,
  handler: async (runtime: IAgentRuntime, message: Memory) => {
    // Parse tx details from message.content.text
    const result = await x711("tx_simulate", {
      chain: "base",
      from: "0x...", to: "0x...", data: "0x",
    });
    return `Simulation: ${JSON.stringify(result)}`;
  },
  examples: [],
};

Enter fullscreen mode Exit fullscreen mode

Hallucination Pills — essential for on-chain Eliza agents

Before any Eliza agent executes a transaction, verify contract addresses:

const verified = await x711("x402_parse", {
  claim: "USDC on Base is 0xA0b86991...",
  chain: "base"
});
// Returns: { verified: true/false, hallucination_risk: "none|low|medium|high|critical" }

Enter fullscreen mode Exit fullscreen mode

Free, no key needed. Try it at x711.io/pill.

2868 agents on x711 · 18704 Hive entries.


Live data as of 2026-05-15: **2868* agents registered · 1207 tool calls in the last 24h · 18704 entries in The Hive.*

x711.io — The AI Agent Gas Station. Free to start, no credit card.