addnode

addnode "node" "command"

Attempts to either add or remove a node from the addnode list, or attempts a one-time connection to a node.

Nodes added through addnode (or using the -connect option) are protected from DoS disconnections and are not required to be full nodes or support SegWit like other outbound peers. However, synchronization will not occur from such peers.

Argument #1 – node

Type: string, required

The node (see getpeerinfo for nodes)

Argument #2 – command

Type: string, required

Options:

  • 'add': Add a node to the list.
  • 'remove': Remove a node from the list.
  • 'onetry': Attempt a one-time connection to the node.

Result

null    (json null)

Examples

bitcoinevo-cli addnode "192.168.0.6:7333" "onetry"
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "addnode", "params": ["192.168.0.6:7333", "onetry"]}' -H 'content-type: text/plain;' http://127.0.0.1:7332/