Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vechain/connex.driver-nodejs

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vechain/connex.driver-nodejs

Connex framework driver implementation in NodeJS

  • 1.0.0-beta-5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
76
decreased by-20%
Maintainers
2
Weekly downloads
 
Created
Source

Connex Driver for NodeJS

It drives Connex Framework to work in NodeJS environment. Now you can use Connex in NodeJS backend project.

Installation

# install driver along with framework
npm i @vechain/connex-framework @vechain/connex.driver-nodejs

Usage

The REPL playground is a good start.

import { Framework } from '@vechain/connex-framework'
import { DriverNodeJS } from '@vechain/connex.driver-nodejs'

(async () => {
    const driver = await DriverNodeJS.connect('http://localhost:8669/')
    const connex = new Framework(driver)
    // here get connex object ready to use

    const wallet = driver.wallet
    // add account by importing private key
    wallet.add('<private key>')
    // remove account by address
    wallet.remove('<address>')
    // list all accounts
    wallet.list

    // config tx parameters, e.g. expiration, gasPriceCoef, watcher
    const txConfig = driver.txConfig

})()

Keywords

FAQs

Package last updated on 25 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc