|
@ -10,12 +10,15 @@ lightning-fundchannel_cancel - Command for completing channel establishment |
|
|
\fBfundchannel_cancel\fR is a lower level RPC command\. It allows channel funder |
|
|
\fBfundchannel_cancel\fR is a lower level RPC command\. It allows channel funder |
|
|
to cancel a channel before funding broadcast with a connected peer\. |
|
|
to cancel a channel before funding broadcast with a connected peer\. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fIid\fR is the node id of the remote peer with which to cancel\. |
|
|
\fIid\fR is the node id of the remote peer with which to cancel\. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note that the funding transaction MUST NOT be broadcast before |
|
|
Note that the funding transaction MUST NOT be broadcast before |
|
|
\fBfundchannel_cancel\fR\. Broadcasting transaction before \fBfundchannel_cancel\fR |
|
|
\fBfundchannel_cancel\fR\. Broadcasting transaction before \fBfundchannel_cancel\fR |
|
|
WILL lead to unrecoverable loss of funds\. |
|
|
WILL lead to unrecoverable loss of funds\. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If \fBfundchannel_cancel\fR is called after \fBfundchannel_complete\fR, the remote |
|
|
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 |
|
|
peer may disconnect when command succeeds\. In this case, user need to connect |
|
|
to remote peer again before opening channel\. |
|
|
to remote peer again before opening channel\. |
|
@ -26,8 +29,18 @@ On success, returns confirmation that the channel establishment has been |
|
|
canceled\. |
|
|
canceled\. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
On failure, returns an error\. |
|
|
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] |
|
|
|
|
|
-1: Catchall nonspecific error\. |
|
|
|
|
|
.IP \[bu] |
|
|
|
|
|
306: Unknown peer id\. |
|
|
|
|
|
|
|
|
|
|
|
.RE |
|
|
.SH AUTHOR |
|
|
.SH AUTHOR |
|
|
|
|
|
|
|
|
Lisa Neigut \fI<niftynei@gmail.com\fR> is mainly responsible\. |
|
|
Lisa Neigut \fI<niftynei@gmail.com\fR> is mainly responsible\. |
|
|