Getting started
Let's see some basic usage.
Welcome to the Vulcan API JS.
Installation
YARN
yarn add vulcan-api-jsNPM
npm install vulcan-api-js --saveUsage
First, you need to create a keystore, this is where your certificate is stored.
You will have to save it somewhere as that's what gets registered in Vulcan.
const {Keystore} = require('vulcan-api-js');
const fs = require('fs');
const main = async () => {
const keystore = new Keystore();
await keystore.init();
fs.writeFileSync("keystore.json", keystore.dumpToJsonString(), { encoding: 'utf-8' });
};
main();Then you will have to register the account.
When you have your keystore and account generated, you can load them and use the SDK.
Last updated
Was this helpful?