Connex REPL
Connex REPL the REPL style command-line playground to try out Connex interface.
Requirement
It requires NodeJS version >= 10
Installation
$ npm i -g @vechain/connex-repl
Startup to connect with local thor node by default (http://localhost:8669/)
$ connex
or the remote one
$ connex http://remote-thor-node-api-base-url
Then you get a NodeJS REPL interface. e.g.
VeChain Connex Playground @ http://localhost:8669/
connex v1.3.1
Testnet(100%)>
Play with it
-
Check VeChain status
Testnet(100%)> thor.status
-
Get newest block
Testnet(100%)> await thor.block().get()
-
Import private key
Testnet(100%)> wallet.import('<private key>')
License
This package is licensed under the GNU Lesser General Public License v3.0, also included in LICENSE file in the repository.