← 返回 Skills 市场
gane5h

Goldrush Streaming API

作者 gane5h · GitHub ↗ · v3.0.5 · MIT-0
cross-platform ⚠ suspicious
302
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install goldrush-streaming-api
功能描述
GoldRush Streaming API — real-time blockchain data via GraphQL subscriptions over WebSocket. Use this skill whenever the user needs live price feeds (OHLCV c...
使用说明 (SKILL.md)

GoldRush Streaming API

Real-time blockchain data via GraphQL subscriptions over WebSocket. Sub-second latency for OHLCV price feeds, DEX pair events, and wallet activity.

Quick Start

IMPORTANT: Always prioritize using the official available GoldRush Client SDKs best suited for your development ecosystem. Only use a GraphQL WebSocket Client like graphql-ws if there are specific requirements or contraints to avoid dependencies on available Client SDKs. The GoldRush Client SDKs provides automatic authentication, connection management, retry logic, type safety, and a simplified API for all streaming operations. see SDK Guide for more details.

import {
  GoldRushClient,
  StreamingChain,
  StreamingInterval,
  StreamingTimeframe
} from "@covalenthq/client-sdk";

const client = new GoldRushClient(
  "YOUR_API_KEY",
  {},
  {
    onConnecting: () => console.log("Connecting..."),
    onOpened: () => console.log("Connected!"),
    onError: (error) => console.error("Error:", error),
  }
);

client.StreamingService.subscribeToOHLCVTokens(
  {
    chain_name: StreamingChain.BASE_MAINNET,
    token_addresses: ["0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b"],
    interval: StreamingInterval.ONE_MINUTE,
    timeframe: StreamingTimeframe.ONE_HOUR,
  },
  {
    next: (data) => console.log("OHLCV:", data),
    error: (error) => console.error(error),
    complete: () => console.log("Done"),
  }
);

Install: npm install @covalenthq/client-sdk

Available Streams

The Streaming API offers two types of endpoints:

  • Subscriptions — real-time push via WebSocket. Covers OHLCV price candles (by token or pair), new DEX pair creation, pair updates (price/liquidity/volume), and live wallet activity.
  • Queries — one-time GraphQL fetch. Covers token search and trader PnL analysis.

For the full list of endpoints with parameters and response schemas, see endpoints.md.

Common Tasks → Stream

Task Endpoint
Live token price candles subscribeToOHLCVTokens
Live pair price candles subscribeToOHLCVPairs
Monitor new DEX pairs subscribeToNewPairs
Track pair price/liquidity/volume subscribeToPairUpdates
Stream wallet activity subscribeToWalletActivity
Search tokens by name/symbol searchTokens (query)
Analyze trader PnL getTradersPnl (query)

Key Differences from Foundational API

Aspect Foundational API Streaming API
Protocol REST (HTTPS) GraphQL over WebSocket
Chain name format eth-mainnet (kebab-case) ETH_MAINNET (SCREAMING_SNAKE_CASE)
Authentication Authorization: Bearer KEY GOLDRUSH_API_KEY in connection_init payload
Data delivery Request/response Push-based (subscriptions)
Latency Block-by-block Sub-second
Use case Historical data, batch queries Real-time feeds, live monitoring

Critical Rules

  1. Chain names use SCREAMING_SNAKE_CASEETH_MAINNET, not eth-mainnet
  2. WebSocket URLwss://streaming.goldrushdata.com/graphql
  3. Protocol headerSec-WebSocket-Protocol: graphql-transport-ws
  4. Auth payload{ "type": "connection_init", "payload": { "GOLDRUSH_API_KEY": "YOUR_KEY" } }
  5. Auth errors are deferredconnection_ack always succeeds; auth errors only appear on subscription start
  6. SDK is recommended — handles WebSocket lifecycle, reconnection, and type safety automatically
  7. Singleton WebSocket — SDK reuses one connection for multiple subscriptions
  8. Cleanup subscriptions — call the returned unsubscribe function when done; call disconnect() to close all

Price Feed Sources

  • DEX swap events — prices derived from onchain trades across supported DEXes
  • Onchain oracle feeds — ultra-low-latency CEX-aggregated prices on select chains (e.g., Redstone Bolt on MegaETH at 2.4ms update frequency)

Reference Files

Read the relevant reference file when you need details beyond what this index provides.

File When to read
overview.md Need connection setup, supported chains/DEXes list, quickstart code samples, or authentication details
endpoints.md Building a subscription or query — full parameters, response schemas, decoded event types
sdk-guide.md Need SDK patterns for multiple subscriptions, React integration, raw GraphQL queries, or troubleshooting WebSocket issues
安全使用建议
This skill appears to be a legitimate streaming API client guide, but take these precautions before installing or using it: - Verify source: there is no homepage or source repository in the metadata and the owner ID is opaque. Prefer skills with a verifiable homepage or repo. - Validate the SDK: if you follow the SDK recommendation, inspect the npm package (@covalenthq/client-sdk) on the npm registry and its source code before installing. - Protect your API key: the protocol sends GOLDRUSH_API_KEY in the WebSocket connection_init payload—do not paste a sensitive key into public logs or code without understanding its permissions and billing model. Consider creating a scoped key with limited permissions or a test key. - Check the endpoint: the WebSocket host is wss://streaming.goldrushdata.com/graphql. Confirm this domain is owned by the service you trust before sending credentials. - Ask the publisher: because the skill metadata lacks a homepage/source, ask the publisher for a repository or official docs to confirm authenticity. If you cannot verify the provider, treat API keys and usage as higher risk. If you can verify the upstream SDK and domain, and you supply an API key intentionally, the skill's instructions are otherwise coherent for live blockchain streaming use.
功能分析
Type: OpenClaw Skill Name: goldrush-streaming-api Version: 3.0.5 The goldrush-streaming-api skill bundle provides comprehensive documentation and instructions for an AI agent to interact with the GoldRush/Covalent real-time blockchain data API. The files (SKILL.md, endpoints.md, overview.md, and sdk-guide.md) contain legitimate GraphQL schemas, WebSocket connection parameters, and code samples for tracking DEX pairs, token prices, and wallet activity. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the bundle strictly adheres to its stated purpose of enabling real-time blockchain analytics.
能力评估
Purpose & Capability
Name/description (real-time blockchain GraphQL subscriptions) match the instructions and included endpoint references. The recommended SDK (@covalenthq/client-sdk) and described WebSocket endpoints are consistent with the stated purpose.
Instruction Scope
SKILL.md stays on-topic: it describes connection setup, subscription queries, SDK usage, and troubleshooting. It does not instruct reading local files, unrelated environment variables, or exfiltrating data beyond the declared streaming endpoint.
Install Mechanism
No install spec provided (instruction-only), so nothing is written to disk by the skill itself. It recommends installing an npm SDK, which is a normal developer dependency; the skill does not automatically download or execute remote code.
Credentials
The docs require an API key sent in the WebSocket connection_init payload (GOLDRUSH_API_KEY), but the skill metadata declares no required environment variables or primary credential. The skill will therefore rely on the agent/user to supply an API key at runtime — this mismatch and the lack of declared provenance for the key are noteworthy. Also the metadata lists no homepage/source repository for verification.
Persistence & Privilege
Skill is not always-enabled and does not request elevated or persistent system privileges. It's instruction-only and does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install goldrush-streaming-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /goldrush-streaming-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.5
- Expanded documentation and usage guidance in SKILL.md for goldrush-streaming-api. - Clarified when to use this skill versus goldrush-foundational-api and goldrush-x402. - Provided detailed quick start instructions and SDK installation guidance. - Added comprehensive tables outlining available streaming endpoints, usage scenarios, and key API differences. - Included critical usage rules and best practices for authentication, WebSocket usage, and cleanup. - Enhanced reference sections for easier access to technical details and endpoint schemas.
元数据
Slug goldrush-streaming-api
版本 3.0.5
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Goldrush Streaming API 是什么?

GoldRush Streaming API — real-time blockchain data via GraphQL subscriptions over WebSocket. Use this skill whenever the user needs live price feeds (OHLCV c... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 302 次。

如何安装 Goldrush Streaming API?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install goldrush-streaming-api」即可一键安装,无需额外配置。

Goldrush Streaming API 是免费的吗?

是的,Goldrush Streaming API 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Goldrush Streaming API 支持哪些平台?

Goldrush Streaming API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Goldrush Streaming API?

由 gane5h(@gane5h)开发并维护,当前版本 v3.0.5。

💬 留言讨论