nodevct

0.1.1 • Public • Published

Description

The offical VCT Node API for Node.js

Requirements

  • Node: v8.10.0+
  • NPM: 5.4.0+

Installation

$ npm install nodevct --save

Using Node VCT

Sample code

let NodeVCT = require('nodevct');

// methods
let vct = new NodeVCT({
    host: '127.0.0.1', // default 127.0.0.1
    port: 7055,        // default 7055
    secure: false      // default false
});

// Devops Client
// query
var res = await vct.devops.query({
    name: 'contractname',
    method: 'count',
    args: []
});
console.log(res);

// invoke
var res = await vct.devops.invoke({
    name: 'contractname',
    method: 'invoke',
    args: []
});
console.log(res);

Package Sidebar

Install

npm i nodevct

Weekly Downloads

1

Version

0.1.1

License

Apache-2.0

Unpacked Size

667 kB

Total Files

45

Last publish

Collaborators

  • erwin1984