Learn how to fork the Hyperliquid EVM chain locally using Foundry’s Anvil for development and testing of smart contracts
This guide demonstrates how to fork the Hyperliquid EVM chain using Foundry’s Anvil to create a local development environment for testing smart contracts and dApps.
Remember that forked state is ephemeral. Any transactions or state changes exist only in your local fork and don’t affect the actual Hyperliquid network.
Forking Hyperliquid EVM with Foundry provides a powerful development environment for testing smart contracts and dApps. This approach allows you to interact with actual on-chain state without risking real funds or affecting the live network.