Net

Description The subcommands can be used to interact with local p2p network connections.

Subcommands

  • Connect — Start a new connection to a peer.

  • Disconnect — Close an existing connection.

  • Status — Status of existing connection.

  • Peers — Status of all existing peers.

Connect

Description

Start a new connection to a peer.

Positional Parameters

  • (string) host— The hostname:port to connect to (required).

Options

No options required for this subcommand.

Command

Examples

Connect to 'hostname:port'.

Disconnect

Description

Close an existing connection.

Positional Parameters

  • (string) host— The hostname:port to disconnect from (required).

Options

No options required for this subcommand.

Command

Examples

Disconnect from 'hostname:port'.

Status

Description

Status of existing connection.

Positional Parameters

  • (string) host— The hostname:port to query status of connection (required).

Options

No options required for this subcommand.

Command

Examples

Given, a valid, existing 'hostname:port' parameter the above command returns a JSON response looking similar to the one below:

Peers

Description

Status of all existing peers.

Positional Parameters

No parameters required fot this subcommand.

Options

No options required for this subcommand.

Command

Last updated