Skip to main content
GoldRush WebSockets give you real-time access to Hyperliquid’s HyperCore data (the native order book, perpetuals, and account event streams) through a single Uniblock-managed connection. By connecting through Uniblock you get unified authentication and billing without managing a separate GoldRush key.
HyperCore is Hyperliquid’s native trading engine and isn’t a permissionless chain you can run a node for. See HyperCore vs. HyperEVM for how the two components differ.

Endpoint

To connect to GoldRush WebSockets through Uniblock, use the following base URL:
GoldRush uses a single fixed endpoint, so no chainId query parameter is required.

Authentication

Uniblock supports two ways to authenticate your GoldRush WebSocket connection and validation requests:
  1. Header: Include X-API-KEY: YOUR_API_KEY in your request headers.
  2. URL query parameter: Append apiKey=YOUR_API_KEY to the connection string.
Header authentication is recommended to avoid exposing your API key in URLs, server logs, or browser history.

Validate connection

Before integrating, use the validation endpoint to verify your credentials.

Option 1: Header authentication

Option 2: URL authentication

Subscriptions

Once connected, send a JSON subscribe message to start a stream. Each message targets a subscription type, and most types accept an optional coin filter.
  • coin accepts a single asset ("HYPE") or an array (["HYPE", "BTC"]).
  • Omitting coin streams all assets (wildcard) for the types that support it.
To stop a stream, send the matching unsubscribe message with the exact same subscription body:

Available subscription types

Pricing

GoldRush bills credits per minute for each active subscription, converted to compute units at 5,000 CU per credit. Charges accrue for as long as a subscription stays open.

Best practices

  • Security: Use the X-API-KEY header where possible to avoid exposing your key.
  • Keep-alive: Implement a heartbeat with ping/pong every 30 to 60 seconds to prevent connection timeouts.
  • Reconnection: Use an exponential backoff strategy for reconnections to handle network instability.
  • Cost control: Subscribe to specific coin values rather than the wildcard stream when you only need a few assets; wildcard subscriptions are billed at a much higher per-minute rate.

Resources