Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
LIGHTNING-DISCONNECT(7)	     lightning-disconnect      LIGHTNING-DISCONNECT(7)

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

SYNOPSIS
       disconnect id [force]

DESCRIPTION
       The disconnect RPC command closes an existing  connection  to  a	 peer,
       identified  by id, in the Lightning Network, as long as it doesnat 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 VALUE
       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:

	      o	     -32602: If	the given parameters are wrong.

	      o	     -1: Catchall nonspecific error.

AUTHOR
       Michael Hawkins _michael.hawkins@protonmail.com>.

SEE ALSO
       lightning-connect(1), lightning-listpeers(1)

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

						       LIGHTNING-DISCONNECT(7)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | AUTHOR | SEE ALSO | RESOURCES

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=lightning-disconnect&sektion=7&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help