@interplanetary-lab/smartcontract-supervisor-js
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Smartcontract Supervisor JS

Axios interaction with Smartcontract Supervisor's APIs.

Table of Contents

Overview

Installation

$ npm install @interplanetary-lab/smartcontract-supervisor-js

Usage

Once installed, you can use the contracts in the library by importing them:

import SmartContractSupervisor from '@interplanetary-lab/smartcontract-supervisor-js';

//...

try {
    const supervisor = new SmartContractSupervisor(
        process.env.SUPERVISOR_API_URL
        process.env.SUPERVISOR_API_KEY
    );

    const response = await supervisor.validatorSign(validator, wallet);
    // Do something
} catch (e) {
    console.error(`${e.status} - ${e.message}`)
}

Readme

Keywords

none

Package Sidebar

Install

npm i @interplanetary-lab/smartcontract-supervisor-js

Weekly Downloads

7

Version

0.1.5

License

MIT

Unpacked Size

20.1 kB

Total Files

7

Last publish

Collaborators

  • senecolas