mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
6e636a835f
1. listpeers has a deprecated `"closer": null`, which we need to handle in the schema, while trying not to damage our documentation too much. 2. Don't print a condition if there are no fields to print. 3. Allow a special "untyped" marker for multifundchannel which returns arbitrary JSON in a field. 4. Allow a single field return (for 'stop'). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
68 lines
2.0 KiB
Groff
Generated
68 lines
2.0 KiB
Groff
Generated
.TH "LIGHTNING-FUNDCHANNEL_CANCEL" "7" "" "" "lightning-fundchannel_cancel"
|
|
.SH NAME
|
|
lightning-fundchannel_cancel - Command for completing channel establishment
|
|
.SH SYNOPSIS
|
|
|
|
\fBfundchannel_cancel\fR \fIid\fR
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBfundchannel_cancel\fR is a lower level RPC command\. It allows channel opener
|
|
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\.
|
|
|
|
|
|
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\.
|
|
|
|
|
|
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\.
|
|
|
|
.SH RETURN VALUE
|
|
|
|
On success, an object is returned, containing:
|
|
|
|
.RS
|
|
.IP \[bu]
|
|
\fBcancelled\fR (string): A message indicating it was cancelled by RPC
|
|
|
|
.RE
|
|
|
|
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\.
|
|
.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\.
|
|
|
|
.RE
|
|
.SH AUTHOR
|
|
|
|
Lisa Neigut \fI<niftynei@gmail.com\fR> is mainly responsible\.
|
|
|
|
.SH SEE ALSO
|
|
|
|
\fBlightning-connect\fR(7), \fBlightning-fundchannel\fR(7), \fBlightning-multifundchannel\fR(7),
|
|
lightning-fundchannel_\fBstart\fR(7), lightning-fundchannel_\fBcomplete\fR(7)
|
|
lightning-openchannel_\fBinit\fR(7), lightning-openchannel_\fBupdate\fR(7),
|
|
lightning-openchannel_\fBsigned\fR(7), lightning-openchannel_\fBabort\fR(7)
|
|
|
|
.SH RESOURCES
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
|
|
|
\" SHA256STAMP:b7e57e7a5eec165705d41d34205ac47ce1fe540c0bb9e4b6e36ae2da51322d67
|