web3 has the following methods to determine the type of account that is selected in Metamask:
web3.eth.net.getNetworkType(): for xDai, returns “private”
web3.eth.net.getId(): for xDai, returns “100”
Is xDai the only network that has a Network ID of 100?
If other networks also have a Network ID of 100, how can I use web3 to confirm that an xDai account is selected in Metamask?