Setup Hardhat fork
Prerequisite:
Install Docker for your platform:
Step 1: Select "Hardhat fork", give your fork a name, and press "Save"

Step 2: Click on "Setup Agent" to open your setup info guide

Step 3: Get an API Key by clicking on "Create Key" in your setup agent guide

Step 4: Run the following command as prompted in the setup guide in your project, as your guide will include all the relevant variables as for example your API Key. Example here:
Step 5: Add the fork to your project on your machine
Congratulations, you have successfully added your local hardhat fork to blocktorch 🥳 If you now try to add a smart contract to blocktorch that has been deployed on your local hardhat fork you can see your local hardhat fork in the list of available chains
Last updated