Smart Contract Developer


This section is designed to get the casual smart contract developer up and running deploying ERC20 tokens on a harmony network. This can be done in under one Minute.

One Minute Deploy

Here is a short video running through the deployment.

One Minute Instructions

npm install -g truffle
git clone
cd H2O
npm install
truffle compile
truffle migrate --network testnet --reset
truffle networks

Interacting with contracts

truffle console --network testnet
truffle(testnet)> HarmonyERC20.deployed().then(function(instance){myHRC20=instance})
truffle(testnet)> myHRC20.symbol()
truffle(testnet)> myHRC20.decimals()
BN { negative: 0, words: [ 18, <1 empty item> ], length: 1, red: null }
truffle(testnet)> myHRC20.totalSupply()
BN {
negative: 0,
words: [ 16777216, 62077800, 20718012, 3, <1 empty item> ],
length: 4,
red: null

Detailed Overview

For detailed instructions, sample files and github repository please see below