Skip to main content

How do HyperEVM blocks and gas work?

· · 9 min read
BlockTrader365
Illustration: How do HyperEVM blocks and gas work?

HyperEVM, the smart-contract side of the Hyperliquid chain, runs two kinds of block at once. Small blocks come every second and hold up to 3M gas; big blocks come every minute and hold up to 30M. Most transactions land in a small block within about a second. Gas is paid in HYPE, and every fee you pay, priority fee included, is burned.

How do HyperEVM blocks work?​

On most EVM chains, block size and block speed are one trade-off: bigger blocks take longer to produce. Hyperliquid's answer is to run both. "The total HyperEVM throughput is split between small blocks produced at a fast rate and large blocks produced at a slower rate" (Hyperliquid, dual-block architecture).

The documented settings:

Block typeDurationGas limit
Small (fast)1 second3M
Big (slow)1 minute30M

Hyperliquid calls this "the initial configuration", "set conservatively", and expects throughput "to increase over successive technical upgrades". Treat the numbers as the documented baseline, not a constant.

A few details matter in practice:

  • Two mempools. The mempool is "split into two independent mempools that source transactions for the two block types".
  • One numbering. "The two block types are interleaved with a unique increasing sequence of EVM block numbers." Consecutive block numbers can be a small block and then a big one.
  • Same security. HyperEVM "is not a separate chain" (Hyperliquid, HyperEVM). Its blocks are "built as part of Hyperliquid's execution, inheriting all security from HyperBFT consensus" (Hyperliquid, HyperEVM for developers).

A worked example​

From the documented settings, one minute holds 60 small blocks of 3M gas and one big block of 30M:

  • Small blocks: 60 × 3M = 180M gas a minute.
  • Big blocks: 1 × 30M = 30M gas a minute.
  • Total: 210M gas a minute, of which big blocks carry 30M ÷ 210M ≈ 14%.

A plain HYPE transfer costs 21,000 gas, so one small block has room for 3,000,000 ÷ 21,000 ≈ 142 of them. A contract deployment that needs 5M gas fits in no small block at all. It has to go in a big block, and it can wait up to a minute for the next one.

What are HyperEVM big blocks for?​

Big blocks are for transactions that need more than a small block holds, "such as more complex contract deployments". Getting into one takes an explicit opt-in:

  1. Become a HyperCore user. The address must already exist on HyperCore. "Like any EOA, the deployer address can be converted to a Core user by receiving a Core asset such as USDC."
  2. Flip the flag. Send the HyperCore action {"type": "evmUserModify", "usingBigBlocks": true}. From then on, that address's HyperEVM transactions go to big blocks.
  3. Price for big blocks. eth_gasPrice "returns the base fee for the next small block". For a big block, the JSON-RPC offers eth_bigBlockGasPrice (Hyperliquid, JSON-RPC). eth_usingBigBlocks tells you whether an address has the flag set.
  4. Unset it. The flag "must be unset again to target small blocks". An address left on big blocks waits up to a minute for every transaction, transfers included.

How does gas work on HyperEVM?​

  • The gas token is HYPE. "HYPE is the native gas token on the HyperEVM", with 18 decimals. To move HYPE from HyperCore to HyperEVM, you send it to 0x2222222222222222222222222222222222222222.
  • EIP-1559 is on. HyperEVM "uses the Cancun hardfork without blobs", so a transaction pays a base fee plus a priority fee. "Base fees are burned as usual."
  • Priority fees are burned too. "Unlike most other EVM chains, priority fees are also burned because the HyperEVM uses HyperBFT consensus. The burned priority fees are sent to the zero address's EVM balance."

On Ethereum, the priority fee goes to whoever proposes the block. On HyperEVM, nobody collects it.

The chain ID is 999 on mainnet and 998 on testnet. Hyperliquid's public RPC is https://rpc.hyperliquid.xyz/evm, which has no websocket support. Transactions pass through RPC servers before reaching the L1, which "can add a few hundred milliseconds of latency".

Why is my HyperEVM transaction stuck or failing?​

  • Too many pending transactions. "The onchain mempool implementation accepts only the next 8 nonces for each address. Transactions older than 1 day old in the mempool are pruned." A ninth queued transaction will not be accepted, and one that waits a day disappears.
  • Too big for a small block. A transaction over 3M gas fits only in a big block. If the address is not on big blocks, it cannot be included.
  • "Insufficient ETH". Hyperliquid's support page says this "usually" means the network was not added to the wallet correctly. You need HYPE, not ETH (Hyperliquid, gas problems on HyperEVM).
  • "Invalid transaction envelope type". The page calls this "a known issue with MetaMask" and suggests trying another wallet.
  • Error code 10055. It marks errors "at the boundary between HyperCore and HyperEVM", for example "nonce errors, insufficient funds, duplicate transaction hashes, or underpriced replacement transactions".
  • No HYPE on the right side. Moving tokens from HyperCore to HyperEVM needs HYPE in your HyperCore spot balance. Transactions on HyperEVM, including moving tokens back, need HYPE on HyperEVM.

How fast do transfers between HyperCore and HyperEVM land?​

According to Hyperliquid's interaction timings:

  • HyperCore to HyperEVM: transfers "are queued on the L1 until the next HyperEVM block". Under the documented settings, a small block comes every second.
  • HyperEVM to HyperCore: transfers "happen in the same L1 block as the HyperEVM block, immediately after the HyperEVM block is built".

On an L1 block that produces a HyperEVM block, the order is fixed: the L1 block is built, then the EVM block, then EVM-to-Core transfers, then actions that HyperEVM contracts send to HyperCore. What is HyperEVM, and how is it different from HyperCore? explains the two sides and what each one holds.

What does BT365 do on HyperEVM?​

On the BT365 web app you can launch a token on a HyperEVM bonding curve and trade it.

BT365 never asks your wallet to switch to big blocks. Launches and curve trades are built to fit a small block, and creator and trader wallets stay on small blocks, so they land in the 1-second small blocks. The exception is BT365's own platform addresses: the keeper that graduates a curve into locked HyperSwap liquidity, for example, is set to big blocks with evmUserModify. If your own address was switched to big blocks somewhere else, your transactions wait for big blocks until you unset it. What actually happens when you launch a token on a HyperEVM launchpad? walks through one launch.

BT365 offers trading on Hyperliquid and HyperEVM, so it has a business interest in both. This page reports what Hyperliquid's documentation and BT365's code say, and takes no view on the price of HYPE.

BT365 is not available in every jurisdiction, and nothing on this page is investment advice. Trading perpetual futures and prediction markets carries risk of loss.