Skip to content

SutuLabs/pawket-js-sdk

Repository files navigation

JS SDK

IIEF

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.

Module

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 });

License

MIT