Usage
Arguments
Flags
Description
Resets the local chain to a fork of a live blockchain network. After forking, your local environment has the complete state of the target network at the specified block — you can interact with all deployed contracts (Uniswap, Aave, etc.) as if you were on mainnet.How It Works
- Resolves the network name to an RPC URL (or uses the custom
--url) - Calls
anvil_reset(orhardhat_reset) with forking parameters - Waits up to 120 seconds for the fork to complete
- Fetches the new chain ID and block number
- Funds the specified number of accounts with 10,000 ETH each