Getting Started

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


Installing in Node.js

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

/home/jeansoon/my-project> 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 for a quick prototype using the Maxonrow CDN (content distribution network) should suffice.

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