Skip to content
BuildBuild on HyperCore16 pages
Architecture: info, exchange, WebSocketFoundationHyperliquid's API has three surfaces: an unsigned read endpoint, a signed write endpoint, and a WebSocket that streams data and can carry both.Your first requestFoundationReading Hyperliquid needs no key, no account and no risk: three unsigned POST requests return the list of markets, an order book and any address's positions.Asset ids and namingPractitionerOrders name a market by an integer asset id and info requests by a coin string, and perps, spot, HIP-3 and outcomes each derive both by a different rule.Precision: tick size, lot size, significant figuresPractitionerA HyperCore price has at most 5 significant figures and a decimal cap set by szDecimals, a size at most szDecimals decimals, and outcomes use a 0.00001 grid.Signing from first principlesExpertL1 actions sign a keccak hash of their msgpack bytes, user-signed actions sign readable EIP-712 data, and one wrong byte in either recovers a stranger's address.Nonces, expiry and API walletsPractitionerHyperCore keeps each signer's 100 highest nonces and accepts a new one only if unused, above the smallest, and within 2 days before and 1 day after block time.Orders: place, modify, cancel, batch, dead man's switchPractitionerAn order is a signed action carrying a batch of compact orders; modify, cancel, TWAP and the dead man's switch are separate actions, each with its own response.Transfers and withdrawalsPractitionerEvery HyperCore transfer is a signed action: sends and withdrawals need the account's own key, and an API wallet's transfer actions keep value inside the account.Multi-sig actionsExpertA multi-sig action carries enough authorised users' signatures over one nonce and one named leader, in an envelope only the leader signs and submits.WebSocket: subscriptions, post requests, heartbeatsPractitionerOne WebSocket streams book, trade and account updates as blocks execute and carries signed actions, but drops without warning and forgets every subscription.Rate limits and user limitsPractitionerHyperliquid meters each IP by request weight, 1200 per minute, and each address by actions: 10,000 plus one per USDC traded.Priority fees and the activation feeExpertHyperliquid sells latency in two burned auctions, read priority per IP and write priority per order, and charges 1 quote token to activate a new account.Error responsesPractitionerHyperliquid reports errors at four layers, from HTTP status to a string inside a successful response, and several name a cause other than the real one.Debugging signatures and wire shapesExpertA signature over wrong bytes still verifies, so HyperCore recovers a stranger's address and says it does not exist; the fix is almost always the encoding.Optimising latencyExpertAn order's round trip includes the API hop, mempool and consensus commit; code wins by streaming reads, cutting serial round trips, using the fast order class and never stalling orders.Data: historical, node and explorerPractitionerThe API keeps only recent history; a full record needs pagination, archived node data or your own node, and each trade counted once by its trade id.
BuildBuild on the HyperEVM9 pages
What the HyperEVM is, and is notFoundationThe HyperEVM is Hyperliquid's smart contract environment: it reads HyperCore state and queues HyperCore actions, but never executes them atomically.Blocks, gas and RPCPractitionerThe HyperEVM produces small blocks every second and big blocks every minute, prices gas with EIP-1559 in HYPE, and serves a JSON-RPC with no historical state.Moving assets between HyperCore and the HyperEVMPractitionerLinked tokens cross between HyperCore and the HyperEVM via per-token system addresses, with a decimal offset and a 200k-gas fee when leaving HyperCore.Linking a tokenExpertLinking binds a HyperCore token to one ERC20 through the spot deployer's request and the contract deployer's finalisation; the protocol checks almost nothing else.Reading HyperCore: precompilesExpertRead precompiles are 21 fixed addresses, 0x800 to 0x814, that return HyperCore state as of the EVM block's construction, and only at the latest block.Writing to HyperCore: CoreWriterExpertCoreWriter turns a contract call into a HyperCore action for the caller's own account, run after the EVM block, with no result returned and no revert on refusal.Execution order and timingExpertEach L1 block runs the EVM block, then EVM to HyperCore transfers, then CoreWriter actions; on mainnet most actions land within half a second, vault transfers in about 4 s.PatternsExpertA contract that touches HyperCore stays solvent by recording an intent, sending the action, and settling only on HyperCore state that visibly moved.Footguns, measuredExpertTwelve ways a HyperEVM contract loses money or silently does nothing when it touches HyperCore, each with the on-chain evidence and the fix.

SDKs and developer tools

Foundation

The SDKs, RPC endpoints, explorers, data providers and HyperEVM tools for building on Hyperliquid, grouped by job, with what each one is for and who maintains it.

An SDK builds, signs and sends Hyperliquid actions for you. The official docs advise using an existing SDK instead of signing by hand, because a wrong byte recovers a different address and the error does not say why (signing). The tools below are the ones the official builder tools list names, plus the SDK maintained by the author of this site.

Language SDK Maintained by What it covers
Python hyperliquid-python-sdk Hyperliquid The SDK the official docs point to for signing code and examples
Rust df-hyperliquid-core df.hl, the author of this site Every info request, exchange action, WebSocket channel and HyperEVM method in the official API docs, with native and wasm builds
Rust hypersdk Infinite Field, a community member Listed in the official docs
TypeScript @nktkas/hyperliquid nktkas, a community member Listed in the official docs
TypeScript nomeida/hyperliquid nomeida, a community member Listed in the official docs
Many CCXT CCXT Hyperliquid behind the standard CCXT API, in several languages

df-hyperliquid-core checks each signed action byte for byte against @nktkas/hyperliquid and the Python SDK, and signs every L1 action on testnet. In its own benchmark it signs orders 1.3 times as fast as hypersdk (2.6 times with its secp256k1 feature) and 5 times as fast as the Python SDK with coincurve, and parses WebSocket frames 2.4 times as fast as hypersdk. Its source is on GitHub and the crate on crates.io.

Whichever SDK you pick, the pages in Build on HyperCore show the raw request shapes, so you can check what it sends.

Surface Mainnet Testnet
API (info, exchange, WebSocket) https://api.hyperliquid.xyz https://api.hyperliquid-testnet.xyz
HyperEVM JSON-RPC https://rpc.hyperliquid.xyz/evm https://rpc.hyperliquid-testnet.xyz/evm

The public endpoints are rate limited (rate limits). For heavier use, the official list names Hydromancer and Uniblock for APIs without rate limits, and Dwellir for gRPC and WebSocket access.

A front end reads markets and accounts from the info endpoint and the WebSocket, has the user sign actions in their wallet, and posts them to the exchange endpoint. A builder code adds the app’s own fee to the orders it routes. The reading order is in building apps and front ends.

To run a branded exchange without building one, perps.studio, from the same author, offers white-label exchanges that route through Hyperliquid.

The API keeps only recent history, so full records come from an indexer, archived node data or your own node (data).

Job Tools named in the official list
HyperCore indexing and history Allium, Hydromancer, HypeDexer, SonarX
HyperEVM indexing and subgraphs Allium, Covalent, Envio, Goldsky, Ormilabs, SonarX, SQD, SubQuery
Perps and order book analytics ASXN, Artemis, Coinalyze, DefiLlama, Flowscan, HyperDash, HyperTracker, Laevitas, Velo
HyperEVM analytics Dune
Job Tools named in the official list
RPC providers Alchemy, Chainstack, dRPC, Dwellir, HypeRPC, OnFinality, Quicknode, Stakely
Oracles Blocksense, Chainlink, DIA, Pyth, Redstone, Seda, Stork
Cross-chain messaging DeBridge, LayerZero, Reactive, Wormhole
Account abstraction Alchemy, Biconomy, ZeroDev
Multi-sig, MPC and custody, HyperCore and HyperEVM Safe (and the Den and Palmera instances), HyperSig, BitGo, Fireblocks, Fordefi, Anchorage Digital, FalconX, Komainu, Tholos
Testnet HYPE for gas Chainstack and Quicknode faucets

For how contracts read and write HyperCore, see precompiles and CoreWriter.