web3.js@1.0 で使用中のネットワークIDを確認
eth.net.getId を使用します。