Package Exports
- sotez
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sotez) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Sotez - A JS Library for Tezos
Getting Started
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
Documentation can be found HERE.
Development
npm install
npm run build
License
MIT
Credits
Credits to Stephen Andrews and EZTZ.