disconnectnode
Summary
Immediately disconnects from the specified peer node.
Description
Immediately disconnects from the specified peer node.
Strictly one out of 'address' and 'nodeid' can be provided to identify the node.
To disconnect by nodeid, either set 'address' to the empty string, or call using the named 'nodeid' argument only.
Arguments
address(STR): The IP address/port of the nodenodeid(NUM): The node ID (see getpeerinfo for node IDs)
Results
value(NONE): No description.
Examples
qbit-cli disconnectnode "192.168.0.6:8333"
qbit-cli disconnectnode "" 1
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "disconnectnode", "params": ["192.168.0.6:8333"]}' -H 'content-type: application/json' http://127.0.0.1:8352/
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "disconnectnode", "params": ["", 1]}' -H 'content-type: application/json' http://127.0.0.1:8352/