|
NAMElightning-disconnect - Command for disconnecting from another lightning nodeSYNOPSISdisconnect id [force]DESCRIPTIONThe disconnect RPC command closes an existing connection to a peer, identified by id, in the Lightning Network, as long as it doesn't have an active channel. If force is set then it will disconnect even with an active channel.The id can be discovered in the output of the listpeers command, which returns a set of peers: { "peers": [ { "id": "0563aea81...", "connected": true, ... } ] } Passing the id attribute of a peer to disconnect will terminate the connection. RETURN VALUEOn success, an empty object is returned.On error the returned object will contain code and message properties, with code being one of the following:
AUTHORMichael Hawkins <michael.hawkins@protonmail.com>.SEE ALSOlightning-connect(1), lightning-listpeers(1)RESOURCESMain web site: https://github.com/ElementsProject/lightning Visit the GSP FreeBSD Man Page Interface. |