Quick start
To install and run Obyte.js, follow this quick start guide.
Install
Node.js
npm i obyte --saveBrowser
<script src="https://cdn.jsdelivr.net/npm/obyte"></script>Usage
const obyte = require('obyte');
// Connect to mainnet official node 'wss://obyte.org/bb'
const client = new obyte.Client();
// Connect to a custom node
const client = new obyte.Client('wss://relay.bytes.cash/bb');
// Connect to testnet
const options = { testnet: true };
const client = new obyte.Client('wss://obyte.org/bb-test', options);Option
Default
Description
Connection lifecycle
Transaction
Generate a random addressMigration to 0.2.0
utils.fromWif().privateKey is now a Uint8Array (was a Buffer)
Last updated