const Web3 = require('Web3');
var web3 = new Web3('https://mainnet.infura.io');
web3.eth.getBlockNumber()
.then(console.log);
Note
- Ethereum 関連の情報は https://scrapbox.io/sushiether/ に集約することにしました。
- この記事の内容に変更・更新がある場合は、以下の URL を更新します。
- https://scrapbox.io/sushiether/Ethereum_ブロックチェーンの現在のブロック高を取得