var Web3 = require('web3'); const { TESTNET_RPC } = require('../constants'); const web3 = new Web3(TESTNET_RPC); const web3NetGetId = async () => { console.log('The id: :', await web3.eth.net.getId()); }; module.exports = { web3NetGetId };
Last updated 7 months ago