Ganache
This page describes how to use ganache-cli to connect to Harmony networks.
npm install -g ganache-cliganache-cli -f http://localhost:9500 --networkId 1666700000
or for testnet
ganache-cli -f https://api.s0.b.hmny.io --networkId 1666700000
or for mainnet
ganache-cli -f https://api.s0.t.hmny.io --networkId 1666600000const web3 = new Web3("http://127.0.0.1:8545");
web3.eth.getBlockNumber().then(console.log)Last updated
Was this helpful?