What the HyperEVM is, and is not
The HyperEVM is Hyperliquid's smart contract environment: it reads HyperCore state and queues HyperCore actions, but never executes them atomically.
The HyperEVM connects Hyperliquid to the EVM ecosystem, on the same chain as HyperCore. It runs the Cancun hardfork without blobs, and the docs call it largely the same as Ethereum, so your tooling carries over.
It is the second execution environment, built within Hyperliquid’s execution, secured by HyperBFT. HyperCore’s books, margin, balances and settlement are protocol state nobody can deploy code to (HyperCore overview). Lending markets, tokenised vaults and custom tokens need code; here it runs on HyperCore’s liquidity, with no bridge or price relay.
A lending contract, end to end
Section titled “A lending contract, end to end”The docs’ example: a lending protocol that prices collateral from HyperCore’s books and liquidates into them. On mainnet:
- It reads the collateral price through a precompile.
- The price is under its threshold, so it sends a sell order through CoreWriter (about 47k gas).
- HyperCore executes it 0.35 to 0.51 s after the EVM block.
- If HyperCore refuses it, the EVM transaction still succeeded.
Three links: read, write, move
Section titled “Three links: read, write, move”| Link | Mechanism | Page |
|---|---|---|
| Read | Precompiles at 0x800 to 0x814 return HyperCore state (positions, balances, prices, lending, outcome status) as it stood when the EVM block was built |
precompiles |
| Write | A call to CoreWriter emits a log; after the block, HyperCore executes the action (trade, transfer, stake, lending supply, outcome split) for the contract’s own HyperCore account | CoreWriter |
| Move | A token sent to its system address on one side is credited on the other | moving assets |
What it cannot do
Section titled “What it cannot do”- No matching. Order books live only in HyperCore.
- No atomicity. The EVM transaction finishes first (most actions land within about half a second), so no EVM state can depend on the HyperCore result.
- No reverts. The HyperEVM is never told. Every refusal returns success, gas is spent, a log is emitted and the money stays put.
- No history. Precompiles answer only at the latest block, even on an archive node.
- No multi-sig. CoreWriter does not work for multi-sig HyperCore users.
The numbers
Section titled “The numbers”| Parameter | Value |
|---|---|
| Chain id | 999 mainnet, 998 testnet |
| Gas token | HYPE, 18 decimals on the HyperEVM |
| Small blocks | every 1 s, 3M gas |
| Big blocks | every 60 s, 30M gas |
| Read precompiles | 0x800 to 0x814, 21 addresses, assigned on both networks |
| CoreWriter | 0x3333333333333333333333333333333333333333, about 47k gas per basic call |
| Order sent from a contract | executes 0.35 to 0.51 s after the EVM block (mainnet, n=52) |
| Vault transfer sent from a contract | executes about 4.05 s after the EVM block (mainnet, n=6) |
| HyperCore to HyperEVM transfer | 200k gas at the next EVM block’s base fee, charged on HyperCore |
Getting a token to HyperCore’s book
Section titled “Getting a token to HyperCore’s book”A HyperEVM token reaches HyperCore’s book only by crossing, and crossing back costs gas on the HyperCore side. HYPE crosses via 0x2222222222222222222222222222222222222222, other tokens via their own system address; the docs warn a non-HYPE token sent to the HYPE address is lost (moving assets).
An app trading for you places ordinary HyperCore orders from its own account.
Reading order for builders
Section titled “Reading order for builders”Read in order: blocks, gas and RPC, moving assets, precompiles, CoreWriter, execution order, patterns, footguns.
For the concept, see Two execution environments; for the atomicity limit, see one transaction.