Connex Driver
This library implement Connex.Driver, which drives Connex Framework.
Installation
npm i @vechain/connex-framework @vechain/connex-driver
Usage
The REPL playground is a good start.
import { Framework } from '@vechain/connex-framework'
import { Driver, SimpleNet, SimpleWallet } from '@vechain/connex-driver'
const wallet = new SimpleWallet()
wallet.import('<private key>')
const driver = await Driver.connect(new SimpleNet('http://localhost:8669/'), wallet)
const connex = new Framework(driver)
...
driver.txParams.expiration = 18
driver.txParams.gasPriceCoef = 128
driver.onTxCommit = txObj => {
}
License
This package is licensed under the
GNU Lesser General Public License v3.0, also included
in LICENSE file in the repository.