Getting Started

The mxw-sdk-js library is a compact and complete JavaScript library for Maxonrow blockchain.

Setup

Learn how to set up environment & create project.

Installing in Node.js

Install the mxw-sdk-js library from your project directory:

$ npm install --save mxw-sdk-js

Importing

JavaScript (ES3)
var mxw = require('mxw-sdk-js');
JavaScript (ES5 or ES6)
const mxw = require('mxw-sdk-js');
JavaScript (ES6) / TypeScript
import { mxw } from 'mxw-sdk-js';

Including in React Native

JavaScript (ES6) / TypeScript
import { mxw } from 'mxw-sdk-js';

Including in React

JavaScript (ES6) / TypeScript
import { mxw } from 'mxw-sdk-js';

Including in Vue.js

JavaScript (ES6) / TypeScript
import { mxw } from 'mxw-sdk-js';

Including in Web Applications

For security purposes, it is usually best to place a copy of this script on the application’s server; but using the Maxonrow content distribution network (CDN) should suffice for a quick prototype.

HTML
<!-- This exposes the library as a global variable: mxw -->
<script src="https://cdn.maxonrow.com/scripts/mxw-sdk-js-v1.min.js"
        charset="utf-8"
        type="text/javascript">
</script>