Adding custom network as default in place of ethereum mainnet

I’m trying to add custom network in MetaMask-extension in place of ethereum mainnet. i want it like whenever user tries to open MetaMask by-default my custom network should be opened.

I tried to add my network in selectors.js in function ``getNonTestNetworks` function but getting
networkConfigurationId xdc does not match a configured networkConfiguration or built-in network type

1 Like

Hi you can add a custom network to MetaMask, by using the request method of the ethereum object, passing it the wallet_addEthereumChain property

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.