Lightchain Commands

lightchain

Lightstreams PoA blockchain node.

lightchain [flags]

Options

-h, --help help for lightchain

init

Initializes a new lightchain node according to the configured flags.

lightchain init [flags]

Options

--datadir string Data directory for the databases and keystore (default "/home/ggarrido/.lightchain")
--force Forces the init by removing the data dir if already exists
-h, --help help for init
--lvl string Level of logging (default "info")
--mainnet Initialize a node connected to production, MainNet
--sirius Initialize a node connected to Sirius network
--standalone Data directory for the databases and keystore
--trace Whenever to be asserting and reporting blockchain state in real-time (testing, debugging purposes)

run

Launches lightchain node and all of its online services including blockchain (Geth) and the consensus (Tendermint).

lightchain run [flags]

Options

--datadir string Data directory for the databases and keystore (default "/home/ggarrido/.lightchain")
-h, --help help for run
--lvl string Level of logging (default "info")
--prometheus Enable prometheus metrics exporter
--rpc Enable the HTTP-RPC server
--rpcaddr string HTTP-RPC server listening interface (default "localhost")
--rpcapi string API's offered over the HTTP-RPC interface
--rpccorsdomain string Comma separated list of domains from which to accept cross origin requests (browser enforced)
--rpcport int HTTP-RPC server listening port (default 8545)
--rpcvhosts string Comma separated list of virtual hostnames from which to accept requests (server enforced). Accepts '*' wildcard. (default "localhost")
--tmt_p2p_port uint Tendermint port used to achieve exchange messages across nodes (default 26656)
--tmt_rpc_port uint Tendermint RPC port used to receive incoming messages from Lightchain (default 26657)
--trace Whenever to be asserting and reporting blockchain state in real-time (testing, debugging purposes)
--ws Enable the WS-RPC server
--wsaddr string WS-RPC server listening interface (default "localhost")
--wsapi string API's offered over the WS-RPC interface
--wsorigins string Origins from which to accept websockets requests (default "Origins from which to accept websockets requests")
--wsport int WS-RPC server listening port (default 8546)

simulate

Executes init and run commands with active tracing and simulates TXs activity to assert crucial components such as Consensus State, DB, Mempool and others. (testing purposes)

lightchain simulate [flags]

Options

--abci/protocol string socket | grpc (default "socket")
--datadir string Data directory for the databases and keystore (default "/Users/enchanterio/.lightchain")
-h, --help help for simulate
--lvl string Level of logging (default "info")
--prometheus Enable prometheus metrics exporter
--rpc Enable the HTTP-RPC server
--rpcaddr string HTTP-RPC server listening interface (default "localhost")
--rpcapi string API's offered over the HTTP-RPC interface
--rpcport int HTTP-RPC server listening port (default 8545)
--sirius Initialize a node connected to Sirius network
--standalone Data directory for the databases and keystore
--tmt/p2p/port uint Tendermint port used to achieve exchange messages across nodes (default 26656)
--tmt/proxy/port uint Lightchain RPC port used to receive incoming messages from Tendermint (default 26658)
--tmt/rpc/port uint Tendermint RPC port used to receive incoming messages from Lightchain (default 26657)
--trace Whenever to be asserting and reporting blockchain state in real-time (testing, debugging purposes)
--tracelog string The filepath to a log file where all tracing output will be persisted (default "/var/folders/f9/11wh9x9j31d75nxgwv2qsj3r0000gn/T/tracer.log")
--ws Enable the WS-RPC server
--wsaddr string WS-RPC server listening interface (default "localhost")
--wsport int WS-RPC server listening port (default 8546)

docs

Generates lightchain / usage docs based on code into the: 'docs/cmd/auto/generated'.

lightchain docs [flags]

Options

-h, --help help for docs

version

Describes the current version.

Options

-h, --help help for version

‚Äč