Commands

This section describes the commands available from nodechain. For more general information at the command line, append the -h or --help, such as nodechain -h.

For more information about a specific nodechain command, append the -h or --help flag after the command, such as nodechain start --help.

start

Initiates the Connector or any node. By default will prompt an interface.

Syntax

$ ./nodechain.py start

Example

$ ./nodechain.py start

Options

  • -h or --help: Shows command help information.

  • -a or --all: Initializes all the nodes of the network specified as a parameter

Syntax

$ ./nodechain.py start -a <network>

Example

$ ./nodechain.py start -a regtest
circle-info

An interface will be prompt if the user needs to specify any variable

stop

Stop the Connector or any node. By default will prompt an interface.

Syntax

Example

Options

  • -h or --help: Shows command help information.

  • -a or --all: Stop all the nodes of the network specified as a parameter

Syntax

Example

circle-info

An interface will be prompt if the user needs to specify any variable

status

Display the status of the services. By default will prompt an interface.

Syntax

Example

Options

  • -h or --help: Shows command help information.

General options (flags)

--blockchain

Also -b

Specifies the absolute path to the folder where the blockchain files will be stored.

Syntax

Example

circle-info

If there is already data in the directory from a volume with the previous blockchain synchronization, the synchronization will continue from the same point.

--certs

Also -c

Specifies the absolute path to the folder with the SSL certificates.

Syntax

Example

triangle-exclamation

--config

Also -g

Specifies the configuration via command line in JSON format

Syntax

Example

circle-exclamation

--defaultconfig

Use the default configuration to start the node

Syntax

Example

--help

Also -h

Shows general help information

Syntax

--local

Use a local node. This command will start the blockchain using the docker-composes

Syntax

Example

--network

Also -n

Specifies the network of the node.

Syntax

Example

--port

Also -p

Specifies the Connector port.

Syntax

Example

--remote

Use a remote node. This command won't start the blockchain using the docker-composes.

Syntax

Example

circle-info

Do not forget to use the appropriate configuration for each endpoint.

--ssl

Enable SSL in the Connector.

circle-exclamation

Syntax

Example

--sslport

Also -sp

Specify the Connector SSL port.

Syntax

Example

--token

Also -t

Selects a blockchain by its token from command line.

Syntax

Example

--verbose

Also -v

Increase output verbosity.

Syntax

Example

--version

Also -V

Returns the version of NodeChain you're running.

Syntax

Last updated