2019-08-10 02:12:44 +02:00
|
|
|
.TH "LIGHTNING-FUNDCHANNEL_CANCEL" "7" "" "" "lightning-fundchannel_cancel"
|
|
|
|
.SH NAME
|
2019-08-31 14:30:56 +02:00
|
|
|
lightning-fundchannel_cancel - Command for completing channel establishment
|
2019-08-10 02:12:44 +02:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
2019-06-06 01:32:04 +02:00
|
|
|
\fBfundchannel_cancel\fR \fIid\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
2019-09-09 18:11:24 +02:00
|
|
|
\fBfundchannel_cancel\fR is a lower level RPC command\. It allows channel opener
|
2019-08-29 09:54:19 +02:00
|
|
|
to cancel a channel before funding broadcast with a connected peer\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2020-01-05 16:40:17 +01:00
|
|
|
|
2019-08-29 09:54:19 +02:00
|
|
|
\fIid\fR is the node id of the remote peer with which to cancel\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2020-01-05 16:40:17 +01:00
|
|
|
|
2019-08-29 09:54:19 +02:00
|
|
|
Note that the funding transaction MUST NOT be broadcast before
|
|
|
|
\fBfundchannel_cancel\fR\. Broadcasting transaction before \fBfundchannel_cancel\fR
|
|
|
|
WILL lead to unrecoverable loss of funds\.
|
|
|
|
|
2020-01-05 16:40:17 +01:00
|
|
|
|
2019-08-29 09:54:19 +02:00
|
|
|
If \fBfundchannel_cancel\fR is called after \fBfundchannel_complete\fR, the remote
|
|
|
|
peer may disconnect when command succeeds\. In this case, user need to connect
|
|
|
|
to remote peer again before opening channel\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH RETURN VALUE
|
|
|
|
|
|
|
|
On success, returns confirmation that the channel establishment has been
|
|
|
|
canceled\.
|
|
|
|
|
|
|
|
|
2020-01-05 16:40:17 +01:00
|
|
|
On error the returned object will contain \fBcode\fR and \fBmessage\fR properties,
|
|
|
|
with \fBcode\fR being one of the following:
|
|
|
|
|
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
-32602: If the given parameters are wrong\.
|
|
|
|
.IP \[bu]
|
|
|
|
306: Unknown peer id\.
|
2020-06-24 06:34:26 +02:00
|
|
|
.IP \[bu]
|
|
|
|
307: No channel currently being funded that can be cancelled\.
|
|
|
|
.IP \[bu]
|
|
|
|
308: It is unsafe to cancel the channel: the funding transaction
|
|
|
|
has been broadcast, or there are HTLCs already in the channel, or
|
|
|
|
the peer was the initiator and not us\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
2020-01-05 16:40:17 +01:00
|
|
|
.RE
|
2019-08-10 02:12:44 +02:00
|
|
|
.SH AUTHOR
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
Lisa Neigut \fI<niftynei@gmail.com\fR> is mainly responsible\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
|
|
|
|
\fBlightning-connect\fR(7), \fBlightning-fundchannel\fR(7),
|
|
|
|
lightning-fundchannel_\fBstart\fR(7), lightning-fundchannel_\fBcomplete\fR(7)
|
|
|
|
|
|
|
|
.SH RESOURCES
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|