Getting Started


NEXA.js can be integrated with plain JavaScript or with different module loaders.


We provide several examples below showing how to load NEXA.js in different systems.

You should know!

If you're using a front-end framework (e.g., React, Angular, or Vue), please see available integrations.

Script Tag

NEXA.js offers a drop-in option that plays nicely with your current JS framework.

<script src="path/to/nexajs/dist/nexajs.umd.js"></script>

const wallet = new Nexa.Wallet(ctx, {...})

Bundlers (Webpack, Rollup, etc.)

NEXA.js is 100% modular and tree-shakeable. However, it is recommended to import ONLY the methods you are going to use, to keep (re-)build times as short as possible.

import Nexa from 'nexajs'

const wallet = new Nexa.Wallet(ctx, {...})


Because Chart.js is an ESM library, in CommonJS modules you should use a dynamic import:

const Nexa = await import('nexajs')

const wallet = new Nexa.Wallet(ctx, {...})


Important: RequireJS can load only AMD modules, so be sure to require one of the UMD builds instead (i.e. dist/nexajs.umd.js).

require(['path/to/nexajs/dist/nexajs.umd.js'], function(Nexa) {
    const wallet = new Nexa.Wallet(ctx, {...})
Builder Studio