This page describes how to use ganache-cli to connect to Harmony networks.
Install Ganache CLI
npm install -g ganache-cli
Load Harmony networks (local, testnet, mainnet) to ganache-cli. The command below loads
ganache-cli -f http://localhost:9500 --networkId 1666700000
or for testnet
ganache-cli -f --networkId 1666700000
or for mainnet
ganache-cli -f --networkId 1666600000
Use web3.js to interact with the ganache binded harmony network
const web3 = new Web3("");
Export as PDF
Copy link