Net Api Plugin

Description

The net_api_plugin exposes functionality from the net_plugin to the RPC API interface managed by the http_plugin.

The net_api_plugin provides four RPC API endpoints:

  • connect
  • disconnect
  • connections
  • status

See Net section of RPC API.

🚧

Caution

This plugin exposes endpoints that allow management of p2p connections. Running this plugin on a publicly accessible node is not recommended as it can be exploited.

Usage

# config.ini
plugin = arisen::net_api_plugin
# command-line
aos ... --plugin arisen::net_api_plugin

Options

None

Dependencies

  • net_plugin
  • http_plugin

Load Dependency Examples

# config.ini
plugin = arisen::net_plugin
[options]
plugin = arisen::http_plugin
[options]
# command-line
aos ... --plugin arisen::net_plugin [options]  \
           --plugin arisen::http_plugin [options]