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
/exchangerequests.
HyperNode is in early access. Contact us to enable it for your organization.
| Base URL | Provided with your access; written as $NODE_API_URL in the examples |
| Protocol | HTTP/1.1; JSON, NDJSON, WebSocket |
| Exchange id | HYPERLIQUIDL4 |
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:
| Action | Units |
|---|---|
| One line delivered on a stream (HTTP or WebSocket) | 1 |
One snapshot download (GET /v1/snapshot/{id}) | 1 |
One /info call | 1 |
| Listing streams or snapshots, health | 0 |
Endpoints at a glance
| Method and path | Auth | Returns |
|---|---|---|
GET /v1/health | none | JSON, node status; always 200 |
GET /health/ready | none | Healthy only while the node is ready |
GET /v1/streams | key | JSON, the streams and their block range on disk |
GET /v1/streams/{name} | key | NDJSON, never ends |
GET /v1/streams/{name}/ws | key | WebSocket, one text message per line |
POST /v1/snapshot | key | JSON, a fresh L4 snapshot's id and height |
GET /v1/snapshot | key | JSON, snapshots on disk |
GET /v1/snapshot/{id} | key | JSON, the snapshot itself |
POST /v1/info | key | JSON, 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:
POST /v1/snapshotand downloaddata_url. Noteheight.- Apply the snapshot.
- Follow the streams with
from_block = height + 1. - Apply lines in
block_numberorder. - After a disconnect, reconnect with
from_block = last applied block + 1. - 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_blockis inclusive. After a snapshot atheight, the first block to request isheight + 1.410always means "take a new snapshot", never "retry".503on a stream means "the node has no data yet": retry.GET /v1/healthis always 200; read thereadyfield, 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.