Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 948 Bytes

.verb.md

File metadata and controls

42 lines (27 loc) · 948 Bytes

CDN

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>

Usage

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

Running examples

Examples are contained in the examples folder and can be executed in Node using:

$ npm install && npm run examples

To execute the JavaScript examples, open the examples/js/index.html file in a browser window.

Models

Account

{%= apidocs("lib/models/Account.js") %}

Transaction

{%= apidocs("lib/models/Transaction.js") %}