Quick start
To install and run Byteball.js, follow this quick start guide.
Install
Node.js
npm i byteball --saveBrowser
<script src="https://cdn.jsdelivr.net/npm/byteball"></script>Usage
const byteball = require('byteball');
// Connect to mainnet official node 'wss://byteball.org/bb'
const client = new byteball.Client();
// Connect to a custom node
const client = new byteball.Client('wss://byteball.org/bb');
// Connect to testnet
const options = { testnet: true };
const client = new byteball.Client('wss://byteball.org/bb-test', options);Transaction
Generate a random addressLast updated