import Web3 from 'web3' ; export const getBlockNumber = function ( url ) { if ( ! url ) { throw new Error ( '[getBlockNumber] URL required' ) ; } const web3 = new Web3 ( url ) ; return web3 . eth . getBlockNumber ( ) ; } ;