The JavaScript version of the SDK may be included on the pae with the following CDN location:
<script src="https://cdn.jsdelivr.net/npm/@dispatchlabs/disnode-sdk/dist/disJS.js"></script>Node:
var DisNodeSDK = require('@dispatchlabs/disnode-sdk');JavaScript:
For JavaScript, the top-level object is DisJS. Any of the models and methods below (unless otherwise stated) can be used in the browser by replacing DisNodeSDK with DisJS. For example;
// Create an empty account
var account = new DisJS.Account();Examples are contained in the examples folder and can be executed in Node using:
$ npm install && npm run examplesTo execute the JavaScript examples, open the examples/js/index.html file in a browser window.
{%= apidocs("lib/models/Account.js") %}
{%= apidocs("lib/models/Transaction.js") %}