The JavaScript library for Byteball
npm install byteball --save
`
$3
`js
const byteball = require('byteball');
// Init WebSocket client
const client = new byteball.Client();
// Get peers
client.api.getPeers(function(err, result) {
console.log(err, result);
});
// Promises
client.api.getPeers().then(function(result) {
console.log(result);
});
``