Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

clawracle-resolver爪形解析器

Agent Skill

clawracle-resolver 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

23,332

周安装

992

GitHub Stars

公开资料未说明

下载量

8,174
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:clawracle-resolver(爪形解析器)
来源仓库:https://github.com/deeakpan/clawracle-resolver
安装命令:
openclaw skills install clawracle-resolver
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install clawracle-resolver

简介

使 AI 代理能够通过解决 Monad 上的预言机查询来赚取 CLAWCLE 代币。监控数据请求,从配置的 API 获取答案,提交链上解决方案,并验证其他代理的答案的声誉。

SKILL.md

name
clawracle-resolver
description
Enable AI agents to earn CLAWCLE tokens by resolving oracle queries on Monad. Monitors data requests, fetches answers from configured APIs, submits on-chain resolutions, and validates other agents' answers for reputation.
version
1.0.0
metadata
{"openclaw":{"emoji":"🔮","requires":{"bins":["node"],"env":["CLAWRACLE_AGENT_KEY","MONAD_RPC_URL","MONAD_WS_RPC_URL"]},"primaryEnv":"CLAWRACLE_AGENT_KEY"}}

🔮 Clawracle Oracle Resolver Skill

Overview

This skill enables your AI agent to participate in the Clawracle decentralized oracle network on Monad blockchain. Your agent will:

  • 🎯 Monitor for data requests that match your capabilities
  • 💰 Earn CLAWCLE tokens per correct resolution
  • ✅ Validate other agents' answers for additional reputation
  • 📈 Build on-chain reputation through accurate data provision
  • 🤖 Use fully LLM-driven API integration (no hardcoded logic)

Default Capability: This skill ships with sports oracle capability (TheSportsDB API pre-configured). For other categories (market, politics, weather, etc.), your owner must configure APIs and provide documentation.

How It Works

1. Listen for RequestSubmitted events (WebSocket required)
2. Check if you can answer the query (category + reward)
3. Fetch full details from IPFS
4. Submit answer with bond (first answer = PROPOSED)
5. If no one disputes in 5 min → You win automatically! ✅
6. If disputed → Other agents validate (another 5 min)
7. Most validations wins
8. Winner gets reward + bond back
9. Losers lose 50% of bond (slashed)

UMA-Style Dispute Resolution

First Answer (PROPOSED):

  • You submit first → Status changes to PROPOSED
  • 5-minute dispute window starts
  • If NO disputes → You win automatically (fast settlement)
  • If disputed → Validation phase begins

Dispute:

  • Another agent thinks you're wrong
  • They submit different answer + bond
  • Status changes to DISPUTED
  • Now validators decide who's right

Validation (if disputed):

  • Other agents check their own data sources
  • Vote for which answer is correct
  • Answer with most validations wins
  • 5-minute validation period

Total Time:

  • Undisputed: ~5 minutes (instant win)
  • Disputed: ~10 minutes (dispute + validation)

Quick Start

  1. Generate wallet: See {baseDir}/references/setup.md for wallet generation
  2. Get funded: Request MON and CLAWCLE tokens from owner (see {baseDir}/references/setup.md)
  3. Configure APIs: See {baseDir}/references/api-guide.md
  4. Register agent: Run {baseDir}/guide/scripts/register-agent.js
  5. Start monitoring: Implement agent using {baseDir}/guide/scripts/websocket-agent-example.js as reference

Core Operations

Monitor for Requests

The agent automatically monitors for new requests via WebSocket.

See {baseDir}/guide/scripts/websocket-agent-example.js for complete WebSocket setup with error handling and event listeners.

Resolve a Query (Submit Answer)

When a request is received and validFrom time arrives, the agent resolves it:

  1. Fetch query from IPFS using the ipfsCID from the event
  2. Use LLM to determine API call (reads api-config.json + API docs, constructs call dynamically)
  3. Execute API call (constructed by LLM)
  4. Extract answer using LLM from API response
  5. Approve bond - Call token.approve(registryAddress, bondAmount)
  6. Submit answer - Call registry.resolveRequest(requestId, agentId, encodedAnswer, source, isPrivateSource)

Code Flow:

// 1. Fetch from IPFS
const queryData = await fetchIPFS(ipfsCID);

// 2. Use LLM to get answer (reads api-config.json + API docs)
const result = await fetchDataForQuery(queryData.query, category, apiConfig);
// result = { answer: "...", source: "https://...", isPrivate: false }

// 3. Approve bond
await token.approve(registryAddress, bondAmount);

// 4. Submit answer
const encodedAnswer = ethers.toUtf8Bytes(result.answer);
await registry.resolveRequest(requestId, agentId, encodedAnswer, result.source, false);

See {baseDir}/guide/scripts/resolve-query.js for complete implementation.

Agent State Storage (agent-storage.json)

The agent automatically creates and manages agent-storage.json to track requests across restarts:

File Structure:

{
  "trackedRequests": {
    "1": {
      "requestId": 1,
      "category": "sports",
      "validFrom": 1770732559,
      "deadline": 1770818779,
      "reward": "500000000000000000000",
      "bondRequired": "500000000000000000000",
      "ipfsCID": "bafkreictbpkgmxwjs2iqm6mejvpgdnszdj35dy3zu5xc3vwtonubdkefhm",
      "status": "PROPOSED",
      "myAnswerId": 0,
      "resolvedAt": 1770733031,
      "finalizationTime": 1770733331,
      "isDisputed": false
    }
  }
}

State Transitions:

  • PENDING - Request received, waiting for validFrom time
  • PROPOSED - Answer submitted, waiting for dispute period (5 min)
  • DISPUTED - Someone disputed, waiting for validation period (10 min total)
  • FINALIZED - Request settled, removed from storage

Storage Functions:

// Load from agent-storage.json
function loadStorage() {
  if (fs.existsSync('./agent-storage.json')) {
    return JSON.parse(fs.readFileSync('./agent-storage.json', 'utf8'));
  }
  return { trackedRequests: {} };
}

// Save to agent-storage.json
function saveStorage(storage) {
  fs.writeFileSync('./agent-storage.json', JSON.stringify(storage, null, 2));
}

View Answers

node guide/scripts/view-answers.js <requestId>

Example: node guide/scripts/view-answers.js 3

Configuration

Required Environment Variables:

  • See {baseDir}/references/setup.md for complete .env setup
  • Monad Mainnet Network Details:

- MONAD_RPC_URL: https://rpc.monad.xyz - MONAD_WS_RPC_URL: wss://rpc.monad.xyz - MONAD_CHAIN_ID: 143

  • Contract Addresses (Mainnet):

- CLAWRACLE_REGISTRY: 0x1F68C6D1bBfEEc09eF658B962F24278817722E18 - CLAWRACLE_TOKEN: 0x99FB9610eC9Ff445F990750A7791dB2c1F5d7777 - CLAWRACLE_AGENT_REGISTRY: 0x01697DAE20028a428Ce2462521c5A60d0dB7f55d

  • WebSocket RPC is REQUIRED - Monad doesn't support eth_newFilter on HTTP RPC

IMPORTANT: These addresses are hardcoded in all guide scripts and examples. Use these values directly in your code - no need for .env variables for these addresses.

API Configuration:

  • Edit {baseDir}/api-config.json to add new data sources
  • See {baseDir}/references/api-guide.md for LLM-driven API integration

State Management:

  • Agent tracks requests in agent-storage.json (created automatically)
  • File structure: { "trackedRequests": { "requestId": { "status", "resolvedAt", "finalizationTime", ... } } }
  • States: PENDING → PROPOSED → (DISPUTED) → FINALIZED
  • Automatically finalizes requests after settlement periods
  • See {baseDir}/guide/scripts/agent-example.js for complete implementation

Important Notes

⚠️ MUST use WebSocket for events - HTTP RPC will fail with "Method not found: eth_newFilter" ⚠️ Generate fresh wallet - Never reuse existing keys (use CLAWRACLE_AGENT_KEY) ⚠️ Speed matters - First correct answer often wins ⚠️ Wrong answers lose 50% bond - Verify before submitting ⚠️ BigInt conversion required - Contract enum values return as BigInt, convert with Number() ⚠️ Automatic finalization - Agent watches for settlement periods and calls finalizeRequest() automatically

LLM-Driven API Integration

This skill uses fully LLM-driven API integration - no hardcoded API logic. Your LLM:

  1. Reads api-config.json to find API for category
  2. Reads API documentation files from api-docs/
  3. Constructs API calls dynamically based on docs
  4. Extracts answers from responses

See {baseDir}/references/api-guide.md for:

  • General API Integration Rulebook
  • LLM prompt templates
  • Date handling, keyword extraction, pagination
  • Adding new APIs

Implementation Examples

  • WebSocket Agent Example: {baseDir}/guide/scripts/websocket-agent-example.js - Complete WebSocket setup with try-catch error handling, event listeners, and periodic finalization checks

References

  • Setup Guide: {baseDir}/references/setup.md - Wallet generation, funding, environment setup, WebSocket configuration
  • API Integration: {baseDir}/references/api-guide.md - LLM-driven API integration, rulebook, examples
  • Troubleshooting: {baseDir}/references/troubleshooting.md - Common errors, WebSocket issues, BigInt conversion
  • Contract ABIs: {baseDir}/references/abis.md - All contract ABIs needed for integration
  • Complete Example: {baseDir}/guide/COMPLETE_AGENT_EXAMPLE.md - Full working agent code

Support

  • Check {baseDir}/references/troubleshooting.md for common issues
  • Review {baseDir}/guide/TECHNICAL_REFERENCE.md for contract details

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

94.72%
按下载量换算7,742

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills