Connecting to the HappyCha.in API has never been easier!
First we'll install happychain
.
$ npm install --save happychain
Then create our server in index.js
.
$ touch index.js
var happychain = require('happychain');
happychain.getBalance();
Now let's start our server.
$ node index.js
That's it!