HyperEVM (chain 998/999) is an EVM-compatible execution environment that runs inside the same consensus as HyperLiquid’s L1. It shares state with the L1 order book through a bridge mechanism called the CoreWriter.Documentation Index
Fetch the complete documentation index at: https://hypernode-docs.polynode.dev/llms.txt
Use this file to discover all available pages before exploring further.
Architecture
HyperEVM is not a separate chain. It runs within the same HyperBFT consensus as the L1 order book. Every L1 block can include EVM transactions alongside native L1 actions.HyperEVM mainnet uses chain ID 999. Testnet uses chain ID 998.
CoreWriter — L1 to EVM Bridge
The CoreWriter is the mechanism that pushes L1 state changes into the EVM environment.How it works
- L1 actions execute on the native order book
- Relevant state changes are captured as CoreWriter events
- Events are written into the EVM state within the same block
- EVM contracts can read L1 state through precompiled contracts
CoreWriter Actions
Specific L1 actions can be enabled or disabled for CoreWriter bridging. Each action type has a toggle controlling whether its state changes propagate to the EVM. EVM contracts can subscribe to bridge events to react to L1 state updates.Precompiles — Reading L1 State from EVM
HyperEVM includes precompiled contracts that allow EVM smart contracts to read L1 state directly.Available Data
Through precompiles, EVM contracts can access:- Order book state (prices, depth)
- User positions and balances
- Asset metadata
- Spot token information
- Clearinghouse state
Precompile Interface
Precompiles use a typed request/response model:- Input:
ReadPrecompileInput— a structured type specifying which L1 data to read (asset, user address, query parameters) - Output:
ReadPrecompileResult— eitherOkwith the requested data or an error describing what went wrong
PrecompileToAddress mapping. The system tracks the highest_precompile_address to efficiently determine whether a call targets a precompile or a regular contract.
Usage metrics are recorded via precompile_calls, which tracks how many times each precompile has been invoked. This is useful for monitoring which L1 data EVM contracts access most frequently.
Precompiles are lazily initialized on a per-epoch basis, controlled by precompile_lazy_epoch_round. This means a precompile may not be available until its first access within a given epoch triggers initialization. Refer to HyperLiquid’s EVM documentation for current precompile addresses and calling conventions.
EVM Transactions
EVM transactions on HyperLiquid use theevmRawTx action type. These are standard Ethereum-format transactions (EIP-1559) submitted through the L1 consensus.
Transaction Flow
- User signs an EVM transaction (chain ID 999)
- Transaction is submitted as an
evmRawTxL1 action - L1 consensus orders it alongside other actions
- EVM execution happens within the block
- Receipts and logs are produced
Supported Transaction Types
- Legacy transactions
- EIP-2930 (access list)
- EIP-1559 (dynamic fee)
- EIP-4844 (blob)
- EIP-7702 (authorization list)
EVM State Management
HyperEVM state is stored alongside the L1 state. When a new node joins the network, it downloads both L1 and EVM state snapshots which must be consistent at the same block height.User Actions
| Action | Description |
|---|---|
evmUserModify | Modify EVM-specific user settings |
sendToEvmWithData | Send tokens to EVM with calldata |
finalizeEvmContract | Finalize a deployed EVM contract |
Bridge Address
The HyperEVM bridge contract lives at:- Receives HYPE and emits
BridgeDepositevents - Reverts on any other calldata
- Is the canonical entry point for L1-to-EVM transfers
USDC on HyperEVM
USDC is bridged to HyperEVM through theUsdcEvmContract system:
SystemAlignedQuoteSupplyDeltaAction— mint/burn USDC on EVMusdc_evm_system_balance— tracks the system’s USDC balance on EVM- Supply changes are governed by validator consensus
Aligned Quote Tokens
The stablecoin settlement infrastructure uses aligned quote tokens:| Field | Purpose |
|---|---|
AlignedQuoteToken | Base settlement token |
AlignedQuoteTokenConfig | Per-token configuration |
cross_scale | Cross-margin scale factor |
vlm_contribution_scale | Volume contribution scaling for fee tier calculation |
SystemAlignedQuoteSupplyDeltaAction and require validator consensus.
EVM transactions are visible in the L1 data stream before they execute on-chain, providing pre-confirmation visibility for monitoring and analytics.