Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Commands/AddNode"

Index

Interfaces

Type aliases

Functions

Type aliases

AddNodeResult

AddNodeResult: any

Result of the addnode command.

Functions

AddNode

  • AddNode(host: string, command: "add" | "remove" | "onetry"): AddNodeRequest
  • Manages the peer-to-peer connections:

    • The "add" command queues the specified node for the next available slot;
    • The "remove" command removes the connection to the specified node;
    • The "onetry" command adds a connection to the specified node, whether a slot is available or not.

    Parameters

    • host: string

      IP address or hostname of the node, optionally including a port number.

    • command: "add" | "remove" | "onetry"

      Command name.

    Returns AddNodeRequest

    A JSON-RPC request for the addnode command.

Generated using TypeDoc