Skip to main content
Pick the path for what you’re building. Each takes about five minutes and assumes you already have an Uniblock project — if not, follow the Uniblock Quickstart Guide first to create one and copy your API key.
Every example below authenticates with your project API key. Replace YOUR_API_KEY with the key from your Uniblock dashboard.

Path 1 — Call the Info API

Fetch a user’s perpetuals clearinghouse state with a single POST. This is Hyperliquid’s public /info contract, routed through Uniblock.
Change the type to any Hyperliquid /info operation (l2Book, metaAndAssetCtxs, spotClearinghouseState, …) or a Uniblock synthetic type like portfolioState. Full details in the Info API overview.

Path 2 — Connect a WebSocket

Open one connection and subscribe to per-block order book diffs for a single asset.
The first message per coin is a full Snapshot; the rest are per-block Updates. See the WebSockets overview for every channel and payload shape.

Path 3 — Query HyperEVM over JSON-RPC

Read the latest HyperEVM block number with a standard eth_blockNumber call.
Use chainId=998 for testnet. Browse every method group in the HyperEVM overview.

Ready to get started with Uniblock?

Create your free account and start building with unified blockchain infrastructure across 100+ chains.

View API reference

Explore all available endpoints and interactive playgrounds