disconnectnode

disconnectnode ( "address" nodeid )

Immediately disconnects from the specified peer node.

Only one of ‘address’ or ‘nodeid’ should be provided to identify the node.

To disconnect by nodeid, either set ‘address’ to an empty string or use the named ‘nodeid’ argument exclusively.

Argument #1 – address

Type: string, optional, default=fallback to nodeid

The IP address/port of the node

Argument #2 – nodeid

Type: numeric, optional, default=fallback to address

The node ID (see getpeerinfo for node IDs)

Result

null    (json null)

Examples

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