npm install hh-protocol-mapper
modify the hardhat config such that the network contains query to local node and also require the module in the config:
require("hh-protocol-mapper");
module.exports = {
defaultNetwork: "localnode",
networks: {
localnode: {
url: "http://127.0.0.1:8545"
}
},
}
also, :
run a local node first by
npx hardhat node
then
npx hardhat mapper