bvm-cli-bot
TypeScript icon, indicating that this package has built-in type declarations

1.2.18 • Public • Published

EVM-Lite CLI

npm version

A Command Line Interface to interact with an EVM-Lite node.

Table of Contents

  1. Installation
  2. Commands
  3. Data Directory

Installation

You can easily install evmlc with NPM

$ npm install -g bvm-cli

or with yarn

$ yarn global add bvm-cli

Commands

Flags

The global flag -d, --datadir specifies the directory where keystore and evmlc.toml are stored unless overwritten by specific flags.

$ evmlc --datadir <path> <command>

Commands also have two logging level flags --silent and --debug which will silence and show debug logs respectively.

By default all commands will output formatted output. If you wish to script or require a JSON output use the -j, --json flag.

For example to show JSON output for the info command:

$ evmlc info --json

evmlc http GET camille.monet.network:8080/info

{"consensus_events":"4121","consensus_transactions":"99","events_per_second":"0.00","id":"3048798009","last_block_index":"112","last_consensus_round":"445","last_peer_change":"258","min_gas_price":"10","moniker":"mosaic","num_peers":"4","round_events":"0","rounds_per_second":"0.00","state":"Babbling","sync_rate":"1.00","time":"1574268876085188708","transaction_pool":"0","type":"babble","undetermined_events":"19"}

Data Directory

The first time evmlc runs, and if no options are specified, it creates a special directory in a default location, where it stores any relevant information.

  • Linux: ~/.evmlite
  • Mac OS: ~/Library/EVMLITE
  • Windows: ~/AppData/Roaming/EVMLITE

In particular, this directory contains the following items:

  • evmlc.toml: where global options are specified
  • keystore: where all encrypted account keys are stored

This directory is shared by EVM-Lite.

evmlc.toml

Example evmlc.toml:

[connection]

# The IP address of the EVM-Lite node
host = "localhost"

# The listening port of the EVM-Lite service
port = 8080

[defaults]

# Moniker of the account to be used as default
# usually the filename of the keyfile
from = "moniker"

# Gas will only default to this value for contract
# calls as transfer will take a maximum of 21000 gas
gas = 1000000

# DEPRECATED
# Commands requiring gas price will pull the
# minimum gas price of the requested node and
# use with the transaction.
gasPrice = 0

Note: from refers to the moniker of the account not the address.

To change default configuration values run evmlc config set -i or evmlc c s -i. You will be taken to an interactive prompt to change connection and default values.

$ evmlc config set -i

? Host: localhost
? Port: 8080
? From: moniker
? Gas: 1000000
? Gas Price: 0

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.184latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.184
1.2.172
1.2.162
1.2.152
1.2.132
1.2.122
1.2.112
1.2.102
1.2.92
1.2.82
1.2.72
1.2.52
1.2.33
1.2.22
1.2.12
1.2.02
1.1.212
1.1.202
1.1.192
1.1.182
1.1.172
1.1.162
1.1.152
1.1.132
1.1.122
1.1.112
1.1.102
1.1.92
1.1.83
1.1.72
1.1.62
1.1.52
1.1.42
1.1.32
1.1.22
1.1.12
1.1.02
1.0.252
1.0.232
1.0.222
1.0.212
1.0.203
1.0.192
1.0.182
1.0.172
1.0.162
1.0.152
1.0.132
1.0.122
1.0.112
1.0.102
1.0.92
1.0.82
1.0.71
1.0.61
1.0.51
1.0.31
1.0.21
1.0.12

Package Sidebar

Install

npm i bvm-cli-bot

Weekly Downloads

59

Version

1.2.18

License

MIT

Unpacked Size

233 kB

Total Files

88

Last publish

Collaborators

  • botcoinnetwork