Step #1:
Read an account's ether balance on Ethereum Mainnet
Step #2:
Read data from the ERC20 UNI token contract deployed on Ethereum Mainnet
Step #3:
Transfer 0.1 ETH from one account to another on Ropsten Testnet
Step #4:
Deployed a simple contract, on Ropsten Testnet, that has a uint256
state variable and the following four functions:
setNumber
to set a specific value in the variableincrement
will increase the value of the variable by 1decrement
will decrease the value by 1getNumber
returns the current value
Address of the deployed contract is 0x5Bdc2d267058F861a609da09fB81a075395B520C
Step #5:
Calling functions of the smart contract deployed in previous step
Step #6:
Read events from the ERC20 UNI token contract deployed on Ethereum Mainnet
Step #7:
To inspect the content within a block, the following three functions are implemented:
getLatestBlockNumber
to display number of the latest blockgetLatestBlock
displays content of the latest blockgetLastBlocks
shows the block number and hash of the latest x blocks (where x is a number provided as a parameter to the function)
Step #8:
The following Web3 Utilities had been explored:
getAverageGasPrice
gets the average gas price currently for the networkgenerateHash
displayssha3
andkeccak256
hashes of the provided stringgenerateRandomHex
generates a random hexadecimal number of the provided bytesuseUnderscoreJsLibrary
uses thecontains
function of the Underscore.js library