Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1 KB

README.md

File metadata and controls

47 lines (34 loc) · 1 KB

Sotez - A JS Library for Tezos

npm Build Status

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.