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.
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.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 standardeth_blockNumber call.
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