npm install sotez
import sotez from 'sotez';
sotez.node.query('/chains/main/blocks/head')
.then(response => console.log(response));
Or import individule modules
import { node, rpc } from 'sotez';
node.query('/chains/main/blocks/head')
.then(response => console.log(response));
Documentation can be found HERE.
npm install
npm run build
MIT