npm install sotez// Import library or individual modules
import Sotez, { utility, forge, crypto, ledger } from 'sotez';
const sotez = new Sotez('http://127.0.0.1:8732');
sotez.query('/chains/main/blocks/head')
.then(response => console.log(response));
crypto.generateMnemonic()
.then(mnemonic => console.log(mnemonic));Or
const Sotez = require('sotez').default;
const sotez = new Sotez('http://127.0.0.1:8732');
sotez.query('/chains/main/blocks/head')
.then(response => console.log(response));Documentation can be found HERE.
npm install
npm run buildMIT
Credits to Stephen Andrews and EZTZ.