Using Web3
Last updated
Last updated
This guide walks you through the process of using the Solidity compiler and to deploy and interact with a Solidity-based smart contract on Harmony. Given Harmony's Ethereum compatibility features, the web3.js library can be used directly with a Harmony node.
Completed code can be found
.env
in rootcompile.js
The only purpose of the compile.js
file, is to use the Solidity compiler to output the bytecode and interface of our contract.
deploy.js
You just deployed your first smart contract on Harmony using web3.js.