mascara icon indicating copy to clipboard operation
mascara copied to clipboard

Metamascara does not default to mainnet

Open coinop-logan opened this issue 8 years ago • 2 comments

I was hoping to use MetaMascara to allow new users to interact with www.toastycoin.com without having to setup Metamask, but because metamascara defaults to network 4, I can't fetch mainnet data. Is there a way to specify via the api to use the mainnet?

coinop-logan avatar Nov 27 '17 21:11 coinop-logan

The provider's network is specified by the user's metamask instance, and at the moment, only user interaction can change the network.

I'm interested in adding an API for requesting the user uses a specific network, you might be interested in this issue.

In the meanwhile, you should instruct the user to change the network, and maybe initialize your own connection to a main-net RPC to load data from it if the user's provider is set to another network.

danfinlay avatar Nov 27 '17 22:11 danfinlay

I have the very same question/problem. That's related to my other question (providing an API to open Mascara popup which would let the user the possibility to play with network select button)

sulliwane avatar Dec 12 '17 14:12 sulliwane