Introducing the "HardHat MultiChain" extension for VS Code - a powerful tool that streamlines the process of setting up a local multichain environment for your Ethereum development needs. With this extension, you can easily create and manage forked blockchain networks within your Hardhat projects, allowing you to test and debug your smart contracts and decentralized applications with ease. Whether you're a beginner or an experienced developer, this extension is the perfect solution for managing and testing your multichain projects. Say goodbye to the hassle of manual setup and configuration, and hello to a streamlined, efficient development experience.
Get started now with the Hardhat MultiChain Extension for VS Code.
Usage
Download
Search HardHat MultiChain in extensions pane of VS Code and click on Install.
Setup in Project
Create a file chains.config.json in root directory of a HardHat Project.
Here is the schema of chains.config.json ⬇️
{
"chains": {
// keys and values reqired for a forked network setup
"name": "Catalog",
"url": "https://rpc.url.com/yoururl", // RPC URL to interact with the chain
"chainId": 12345, // not neccessary to be same as original chain
"port": 18514 // can be same port also but make sure it is available to use
},
{
// keys and values required for new local chain setup
"name": "Reetik",
"chainId": 17080, // can use any valid chain id which is not already in use
"port": 17080 // can be different port also but make sure it is available to use
}
}
Press Cmd + Shift + P, then seach and hit Setup HardHat MultiChain Networks.
Wait for the notification in the right bottom corner of your screen i.e. Networks setup successfully.
Future
Implement error handling and required check to handle faliure.