Skip to main content
Version: 1.0

Initialise API

Now that we have the API installed, we can initialise the API. There are two ways to initialise the API:

Offline mode exposes the AWT token generation and signature proof generation required to configure JSON-RPC calls, along with account generation tools found here. To run the API in offline mode, have this at the top of your code:

const AVN_API = require('avn-api');
const API = new AVN_API();
await API.init();