Hyperliquid: The Engine Powering DeFi's Fastest Exchange

HyperliquidHyperCoreHyperEVMDeFiEVMLayer 1Blockchain

A comprehensive technical overview of Hyperliquid’s architecture. How HyperCore and HyperEVM work together to deliver high-speed, on-chain order book trading and EVM programmability, plus what it’s like to build DeFi and dApps on the platform in 2025.

Table of Contents

    Origins and Founding

    Hyperliquid is a decentralized exchange built on its own Layer-1, created to match centralized-exchange performance while keeping trades and funds fully on-chain. It was founded by Jeff Yan and a team with backgrounds in high-frequency trading, who ran a crypto market-making firm before growing frustrated with the inefficiencies of existing DeFi venues. FTX's 2022 collapse reinforced the case for trustless infrastructure — existing L2s couldn't hit the throughput needed for a fully on-chain order book, so the team built a custom L1 instead.

    Founder Jeff Yan (CEO)
    Background Crypto market-making / HFT
    Catalyst FTX collapse (2022) — pushed toward trustless, on-chain venues
    Funding No VC funding — self-funded, "user-first"
    Mainnet Late 2022, alongside the HYPE token

    Architecture: HyperCore + HyperEVM

    Hyperliquid's chain is really two tightly-coupled parts sharing one state and one consensus (HyperBFT, a Proof-of-Stake protocol derived from HotStuff): HyperCore, the order book engine, and HyperEVM, an Ethereum-compatible execution layer. Because they're the same chain, not separate networks, there's no bridge between the exchange layer and the smart contract layer.

    HyperCore: the trading engine

    HyperCore processes every order, cancel, trade, and liquidation on-chain — there's no off-chain matching engine.

    Metric Value
    Finality One-block, median ≈ 0.2s
    Throughput ≈ 200,000 orders/sec
    Bottleneck Execution logic, not consensus (headroom to scale further)
    Consensus HyperBFT (PoS, HotStuff-derived)

    HyperEVM: the smart contract layer

    HyperEVM runs standard Solidity/Vyper contracts with the usual Ethereum tooling (Hardhat, Foundry, ethers.js) and JSON-RPC — add it to MetaMask with chain ID 999, gas paid in HYPE. Its one structural twist is a dual-block design that decouples confirmation latency from block size:

    Block type Interval Gas limit Purpose
    Fast (small) 1s ≈ 2M gas Low-latency confirmation for regular txs
    Slow (large) 60s ≈ 30M gas Large deployments / complex txs

    That gives two very different sustained gas budgets:

    Gˉfast=2M gas1s=2M gas/s,Gˉslow=30M gas60s=0.5M gas/s\bar{G}_{\text{fast}} = \frac{2\text{M gas}}{1\text{s}} = 2\text{M gas/s}, \qquad \bar{G}_{\text{slow}} = \frac{30\text{M gas}}{60\text{s}} = 0.5\text{M gas/s}

    A dApp can flip a flag to deploy on a slow block, then switch back to fast blocks for everyday calls.

    Reading HyperCore from EVM: precompiles

    HyperEVM exposes read-only HyperCore state through precompiled contracts at reserved addresses, callable via staticcall from within the same transaction — no oracle, no off-chain fetch:

    Precompile Returns
    0x...0807 Oracle price for a perp (oraclePx)
    0x...08000x...080x User perp positions, spot balances, vault equity
    0x...080x Funding rates, asset metadata

    Hyperliquid's L1Read.sol wraps these in human-readable functions. From TypeScript, reading a live oracle price looks like any other view call:

    import { Contract, JsonRpcProvider, formatUnits } from 'ethers';
    
    const L1_READ_ADDRESS = '0x0000000000000000000000000000000000000807';
    const abi = ['function oraclePx(uint32 index) view returns (uint64)'];
    
    const provider = new JsonRpcProvider('https://rpc.hyperliquid.xyz/evm');
    const l1Read = new Contract(L1_READ_ADDRESS, abi, provider);
    
    // HyperCore prices are fixed-point — check the asset's decimals before formatting,
    // the same way you'd check ERC-20 decimals (see "Mastering EVM Numbers in TypeScript").
    const rawPrice: bigint = await l1Read.oraclePx(0); // e.g. BTC-PERP
    console.log(formatUnits(rawPrice, 6));
    

    A lending protocol can call this in the same transaction it checks collateral, with no oracle-latency window between price and decision.

    Writing to HyperCore: CoreWriter

    Contracts (and users) send HyperCore actions — place an order, transfer funds, trigger a liquidation — by calling a fixed system contract, which emits a log that HyperCore interprets as an action:

    const CORE_WRITER_ADDRESS = '0x3333333333333333333333333333333333333333';
    
    Cost component Gas
    Base overhead ≈ 25,000
    Total for a basic action ≈ 47,000

    Matching/clearing still runs in HyperCore's native code — the EVM side only requests the action. CoreWriter went live on mainnet on July 5, 2025, unlocking atomic on-chain trading: arbitrage bots, automated liquidations, and full DeFi protocols that read a price and act on it in one transaction.

    Moving assets between layers

    Core and EVM aren't bridged — they're two views of the same balance. A Core spot asset gets linked to an ERC-20 on HyperEVM via a two-step, deployer-driven process (requestEvmContract, then finalizeEvmContract), after which supply is conserved across both representations:

    Score+Sevm=Stotal(constant after linking)S_{\text{core}} + S_{\text{evm}} = S_{\text{total}} \quad \text{(constant after linking)}

    Sending a Core asset to its system address (0x20…) mints the ERC-20 side; sending the ERC-20 back to that address burns it and credits the Core balance — both applied within the same or next block, no external bridge involved. HYPE itself skips the ERC-20 wrapper entirely and is treated as EVM-native currency. Hyperliquid doesn't enforce ERC-20 correctness or supply consistency automatically during linking, so that part is on the deployer to get right.

    Building on Hyperliquid

    If you know Solidity and TypeScript, the entry cost is low — HyperEVM is a standard EVM chain. The learning curve is entirely in Hyperliquid-specific extensions, not in the base programming model:

    Familiar (same as Ethereum) New (Hyperliquid-specific)
    Solidity/Vyper, Hardhat/Foundry, ethers.js L1Read.sol / CoreWriter.sol interfaces
    Standard JSON-RPC, MetaMask HIP-1 / HIP-2 native token standards
    Gas paid in native currency (HYPE) Fixed-point HyperCore prices vs. 18-decimal EVM tokens
    Deploy/test flow Dual-block gas budgeting for large deploys
    Block explorers exist Less mature than Etherscan; lean on Hyperliquid's own APIs

    Because contracts can read live prices and hit the order book atomically, the interesting DeFi patterns are the ones that need synchronous price + execution:

    Use case What HyperCore/HyperEVM enable
    Lending & liquidations Contract checks collateral via a precompile and liquidates via CoreWriter in one tx — no keeper bots
    On-chain trading strategies Arbitrage/algo contracts read oraclePx() and place orders in the same transaction
    Composable products Index funds, options, structured products that settle directly against HyperCore markets
    Unified UX Trade, lend, and farm in one wallet, one chain, no bridging between steps

    General-purpose dApps (NFTs, games, social) work fine too, but the ecosystem — liquidity, users, tooling, oracles beyond Hyperliquid's own markets — is currently DeFi-heavy. As of mid-2025, HyperEVM had roughly $2B TVL and 175+ teams building on it, so tooling gaps are closing quickly but aren't gone.

    Bottom line: the hard part isn't Solidity or TypeScript, it's the paradigm — order books, precompiles, and dual-blocks as first-class primitives instead of things you bolt on. Once that clicks, you're deploying on a chain with CEX-level speed and Ethereum-level composability in the same transaction.

    © 2026 gbXBT