GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-DISCONNECT(7) LIGHTNING-DISCONNECT(7)

lightning-disconnect -- Command for disconnecting from another lightning node

disconnect id [force]

The 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.

  • id (pubkey): The public key of the peer to terminate the connection. It can be discovered as peer_id in the output of the listpeerchannels command.

  • force (boolean, optional): If set to True, it will disconnect even with an active channel.

On success, an empty object is returned.

On error the returned object will contain code and message properties, with code being one of the following:

  • -32602: If the given parameters are wrong.

  • -1: Catchall nonspecific error.

Michael Hawkins <michael.hawkins@protonmail.com>.

lightning-connect(7), lightning-listpeerchannels(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli disconnect -k "id"="nodeid040404040404040404040404040404040404040404040404040404040404" "force"=False

{

"id": "example:disconnect#1",
"method": "disconnect",
"params": {
"id": "nodeid040404040404040404040404040404040404040404040404040404040404",
"force": false
} }

Response:

{}

Example 2:

Request:

$ lightning-cli disconnect -k "id"="nodeid050505050505050505050505050505050505050505050505050505050505" "force"=True

{

"id": "example:disconnect#2",
"method": "disconnect",
"params": {
"id": "nodeid050505050505050505050505050505050505050505050505050505050505",
"force": true
} }

Response:

{}
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.