
npm install hardhat-web-ui --save-dev
Import the plugin in your hardhat.config.js:
require("hardhat-web-ui");
Start the Web UI:
npx hardhat web-ui --network <network-name>
# e.g.
npx hardhat web-ui --network localhost
Then access http://localhost:3337 in your browser
The plugin can be configured in hardhat.config.js:
module.exports = {
webUI: {
enabled: true,
localChainIds: [31337, ...],
port: 3337,
}
};