This guide covers how to configure and deploy a dApp on HyperEVM.
1. Setting Up Your Application
Before deploying contracts, your dApp needs a proper setup with wallet integration and blockchain connectivity. HyperEVM supports standard Ethereum libraries, ensuring compatibility with tools like:
Wagmi / Viem & Ethers – for seamless wallet connections.
Hyperliquid RPC endpoints – to interact with the blockchain.
For a step-by-step guide on setting up a Next.js application with Wagmi, refer to the .
2. Deploying a Smart Contract on Hyperliquid EVM
Deploying a smart contract on Hyperliquid follows a similar workflow to Ethereum. You can use Foundry or Hardhat, two popular development frameworks.
This guide focuses on Foundry, but you can find additional .
1️⃣ Deploying with Foundry
Note: This is an old data sheet, so some details may not be accurate for HyperEVM. I haven’t tested deployment on HyperEVM yet, but an update is coming soon. For now, consider this a summary rather than a full guide.
Resources:
Install & Update Foundry
First, ensure you have Foundry installed and updated:
⚠️ Windows Users: Install or to run these commands.
Call a contract function and retrieve a stored value:
cast call --rpc-url $RPC $DST "val()(uint256)"
3️⃣ Understanding the Dual-Block Architecture
Hyperliquid EVM uses a dual-block system for transaction processing. By default, transactions go to small blocks, but deploying contracts efficiently may require big blocks. To enable this, submit an L1 action.
3. dApp <--> Blockchain
To interact with a smart contract from your dApp’s frontend, you can use Ethers.js, Viem, or Wagmi. These tools allow you to read and write blockchain data, handle transactions, and manage wallet connections.
1️⃣ Setting Up the Contract ABI & Address
Extract the ABI from Foundry output:
The ABI is located in out/ContractName.sol/ContractName.json.