Ethereum Asked on November 24, 2021
How to check the current MetaMask network?
For example, if the current network is Rinkeby, I need the string "rinkeby"
.
You can check the current network chain ID like this:
console.log(window.ethereum.networkVersion, 'window.ethereum.networkVersion');
And these are the chain IDs for the most used ethereum networks:
Answered by Miroslav Nedelchev on November 24, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP