@sekhmetdev/byteball

The JavaScript library for Byteball

Usage no npm install needed!

<script type="module">
  import sekhmetdevByteball from 'https://cdn.skypack.dev/@sekhmetdev/byteball';
</script>

README

Byteball.js

A simple JavaScript library for Byteball

Install

npm install byteball --save

Usage

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);
});

License

MIT.