Use
<script src="//cdn.jsdelivr.net/npm/pawket-js-sdk/dist/pawket.iife.js"></script>
to inject the IIFE code.
Use
const client = new chia.Pawket(baseUrl);
to initialize the client.
Install:
$ yarn add pawket-js-sdk
or
$ npm install pawket-js-sdk
CommonJS:
const Pawket = require('pawket-js-sdk');
const client = new Pawket({ baseUrl });
ES module:
import { Pawket } from 'pawket-js-sdk';
const client = new Pawket({ baseUrl });
MIT