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 candles), real-time DEX pair monitoring (new pairs, liquidity updates), wallet activity streaming, decoded swap/transfer events, token search, trader PnL analysis, or any sub-second latency blockchain event push. This is the right skill for trading bots, live dashboards, alerting systems, copy-trading, DEX sniping, and real-time analytics. Also covers one-time GraphQL queries for token discovery and profitability analysis. If the user needs historical data, batch queries, or paginated REST results, use goldrush-foundational-api instead. If the user needs pay-per-request access without an API key, use goldrush-x402 instead.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "goldrush-streaming-api" with this command: npx skills add gane5h/goldrush-streaming-api

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

TaskEndpoint
Live token price candlessubscribeToOHLCVTokens
Live pair price candlessubscribeToOHLCVPairs
Monitor new DEX pairssubscribeToNewPairs
Track pair price/liquidity/volumesubscribeToPairUpdates
Stream wallet activitysubscribeToWalletActivity
Search tokens by name/symbolsearchTokens (query)
Analyze trader PnLgetTradersPnl (query)

Key Differences from Foundational API

AspectFoundational APIStreaming API
ProtocolREST (HTTPS)GraphQL over WebSocket
Chain name formateth-mainnet (kebab-case)ETH_MAINNET (SCREAMING_SNAKE_CASE)
AuthenticationAuthorization: Bearer KEYGOLDRUSH_API_KEY in connection_init payload
Data deliveryRequest/responsePush-based (subscriptions)
LatencyBlock-by-blockSub-second
Use caseHistorical data, batch queriesReal-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.

FileWhen to read
overview.mdNeed connection setup, supported chains/DEXes list, quickstart code samples, or authentication details
endpoints.mdBuilding a subscription or query — full parameters, response schemas, decoded event types
sdk-guide.mdNeed SDK patterns for multiple subscriptions, React integration, raw GraphQL queries, or troubleshooting WebSocket issues

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

Simmer Wallet Setup

Self-custody wallet setup for Simmer agents. Choose OWS (recommended — encrypted local vault, multi-chain, policy controls) or external raw key (existing set...

Registry SourceRecently Updated
Web3

lobstercash

Use this skill when the user wants to spend money, make purchases, send crypto, pay for APIs, browse websites for shopping, complete checkout, or manage an A...

Registry SourceRecently Updated
Web3

Power Automate Build

Build, scaffold, and deploy Power Automate cloud flows using the FlowStudio MCP server. Your agent constructs flow definitions, wires connections, deploys, a...

Registry SourceRecently Updated
3540Profile unavailable
Web3

Bybit AI Trading Skill

Bybit AI Trading Skill — deprecated

Registry SourceRecently Updated
4820Profile unavailable