Skip to content
Request a review

Hyperliquid Architecture · HyperCore & HyperEVM · 4/8

HyperCore vs HyperEVM: Hyperliquid's Two Execution Layers

One Chain, Two Execution Environments

Hyperliquid's state is split into two execution environments that share the same consensus:

  1. HyperCore — Handles all trading operations (order books, matching, margin, liquidations, funding, spot balances, staking)
  2. HyperEVM — An EVM-compatible environment for general-purpose smart contracts

The HyperEVM is not a separate chain: both are part of the same Hyperliquid L1 and secured by the same HyperBFT validator set, but they serve different purposes.

Why Two Environments?

HyperCore is optimized for a single task: running the order books and margin system. It uses custom data structures and execution paths that would be impractical in a general-purpose VM. But trading alone isn't enough — DeFi needs composability.

HyperEVM provides:

How They Interact

                    HyperBFT Consensus
                    /                \
            HyperCore               HyperEVM
         (Order Books)           (Smart Contracts)
         - Orders                - Lending
         - Matching              - Vaults
         - Liquidations          - Yield protocols
         - Funding               - NFTs
                    \                /
          Shared state: read precompiles,
          CoreWriter, asset transfers

HyperCore → HyperEVM (Read Precompiles)

HyperEVM contracts can read HyperCore state through precompiles at fixed addresses (starting at 0x…0800). For example, a lending protocol on HyperEVM can check a user's perp positions or an oracle price on HyperCore to calculate collateral. The values match the latest HyperCore state at the time the EVM block is built.

HyperEVM → HyperCore (CoreWriter)

HyperEVM contracts can send actions to HyperCore — such as placing or cancelling orders, vault transfers, and staking — through the CoreWriter system contract at 0x3333…3333. Order actions sent this way are delayed on-chain by a few seconds so the EVM cannot be used to bypass the normal order path.

Token Transfers

USDC, HYPE, and linked spot tokens move between the two environments:

What This Design Provides

The split gives Hyperliquid: