1

I've written a REST API using a hardhat server. I need to send the network through the API parameter.

For example, currently, I've set the default network as polygon in config.hardhat.js, and it all is working fine. Now I need to enable my server to support two networks [Ethereum & Polygon] in runtime.

P.S. I know we can set multiple networks in config.hardhat.js. I need to select the network dynamically at runtime without restarting the server.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.