HyperNode

HyperNode

HTTP API in front of CoinAPI's Hyperliquid non-validating nodes - node event streams, L4 snapshots, /info queries and node health.

HyperNode

HyperNode is CoinAPI's Hyperliquid Node API: managed access to our Hyperliquid non-validating nodes over HTTP, for teams that need node data without running a node.

A Hyperliquid node writes every order status change, every fill and several other event streams to files on its own disk, block by block. HyperNode makes those files, the node's L4 order book snapshot and the node's /info endpoint available over HTTP.

  • The data is the node's own, byte for byte. The API does not parse, filter or reorder stream lines.
  • One instance serves one node. We run more than one node, each with its own instance.
  • Block numbers are the chain's own, so a client can move from one instance to the other and continue from the same block.
  • Read-only by design: HyperNode does not submit transactions or forward /exchange requests.

HyperNode is in early access. Contact us to enable it for your organization.

Base URLProvided with your access; written as $NODE_API_URL in the examples
ProtocolHTTP/1.1; JSON, NDJSON, WebSocket
Exchange idHYPERLIQUIDL4

Authentication

Send an API key with HyperNode product enabled in the X-CoinAPI-Key header. The Authorization header is accepted too. GET /v1/health and GET /health/ready need no key.

curl -H "X-CoinAPI-Key: $KEY" "$NODE_API_URL/v1/streams"

Usage metering

Usage is metered in units, next to the usual bytes and calls:

ActionUnits
One line delivered on a stream (HTTP or WebSocket)1
One snapshot download (GET /v1/snapshot/{id})1
One /info call1
Listing streams or snapshots, health0

Endpoints at a glance

Method and pathAuthReturns
GET /v1/healthnoneJSON, node status; always 200
GET /health/readynoneHealthy only while the node is ready
GET /v1/streamskeyJSON, the streams and their block range on disk
GET /v1/streams/{name}keyNDJSON, never ends
GET /v1/streams/{name}/wskeyWebSocket, one text message per line
POST /v1/snapshotkeyJSON, a fresh L4 snapshot's id and height
GET /v1/snapshotkeyJSON, snapshots on disk
GET /v1/snapshot/{id}keyJSON, the snapshot itself
POST /v1/infokeyJSON, the node's answer to a Hyperliquid /info request

Pending transactions and block proposals (/v1/mempool, /v1/proposals) are coming soon.

Errors are RFC 7807 problem documents (application/problem+json) with status, title and detail.

The client contract

How a client builds and keeps a correct L4 order book:

  1. POST /v1/snapshot and download data_url. Note height.
  2. Apply the snapshot.
  3. Follow the streams with from_block = height + 1.
  4. Apply lines in block_number order.
  5. After a disconnect, reconnect with from_block = last applied block + 1.
  6. On 410 Gone, the block is no longer on disk: go back to step 1.

A client that reads more slowly than the node writes is disconnected once it is further behind than the service's buffer (300,000 lines or 256 MB per stream). It resumes with step 5.

Two nodes

  • Each instance judges its own node, and also reports not ready while its node lags the other.
  • The load balancer therefore sends new connections to the better node.
  • An open stream is not closed when the node falls behind. A client detects a stall by itself (no data, only keepalives) and reconnects with from_block, possibly to the other instance.

Not included

  • Per-coin filtering: a stream carries every coin (10–25 MB/s for order statuses). For per-symbol data use the L4 WebSocket.
  • History older than about two hours. For history use L4 Flat Files.
  • Writes (/exchange) and the HyperEVM JSON-RPC.
  • The optimistic best bid and ask. It needs a live L4 order book, which HyperNode does not keep; see HyperStream.

Facts for AI agents

  • Never invent a stream name: the six names in Streams are the complete list.
  • Stream responses never end. Read them as a stream; do not wait for the body to close.
  • An empty line or empty WebSocket message is a keepalive, not data and not an error.
  • from_block is inclusive. After a snapshot at height, the first block to request is height + 1.
  • 410 always means "take a new snapshot", never "retry".
  • 503 on a stream means "the node has no data yet": retry.
  • GET /v1/health is always 200; read the ready field, not the status code.
  • Times in stream lines have nanosecond precision and no zone suffix; they are UTC.
  • Absent fields mean "does not apply" or "unknown", never zero.