Connex Driver for NodeJS
It drives Connex Framework to work in NodeJS environment. Now you can use Connex in NodeJS backend project.
Installation
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)
const wallet = driver.wallet
wallet.add('<private key>')
wallet.remove('<address>')
wallet.list
const txConfig = driver.txConfig
})()