This repository illustrates how to use web3.js in two different major version using MetaCoin smart contract.
MetaCoin is default project for Truffle: example contracts, migrations and tests.
Find out more in plain words on this article (written in Korean).
RPC with websocket endpoint by using
- ganache latest version (or v1.1.0 at least)
- infura
See the Truffle documentation for info.