![]() |
![]()
| ![]() |
![]()
NAMElightning-disconnect -- Command for disconnecting from another lightning node SYNOPSISdisconnect 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.
RETURN VALUEOn success, an empty object is returned. ERRORSOn 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(7), lightning-listpeerchannels(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Request: $ lightning-cli disconnect -k "id"="nodeid040404040404040404040404040404040404040404040404040404040404" "force"=False { Response: {} Example 2: Request: $ lightning-cli disconnect -k "id"="nodeid050505050505050505050505050505050505050505050505050505050505" "force"=True { Response: {}
|