2019-08-10 02:12:44 +02:00
|
|
|
.TH "LIGHTNING-FUNDCHANNEL_COMPLETE" "7" "" "" "lightning-fundchannel_complete"
|
|
|
|
.SH NAME
|
2019-08-31 14:30:56 +02:00
|
|
|
lightning-fundchannel_complete - Command for completing channel establishment
|
2019-08-10 02:12:44 +02:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
2021-03-15 05:27:56 +01:00
|
|
|
\fBfundchannel_complete\fR \fIid\fR \fIpsbt\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
|
|
\fBfundchannel_complete\fR is a lower level RPC command\. It allows a user to
|
2019-08-21 10:55:49 +02:00
|
|
|
complete an initiated channel establishment with a connected peer\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
2019-08-21 10:55:49 +02:00
|
|
|
\fIid\fR is the node id of the remote peer\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
2021-03-15 05:27:56 +01:00
|
|
|
\fIpsbt\fR is the transaction to use for funding (does not need to be
|
|
|
|
signed but must be otherwise complete)\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
2019-08-21 10:55:49 +02:00
|
|
|
Note that the funding transaction MUST NOT be broadcast until after
|
2019-08-10 02:12:44 +02:00
|
|
|
channel establishment has been successfully completed, as the commitment
|
|
|
|
transactions for this channel are not secured until this command
|
2019-08-21 10:55:49 +02:00
|
|
|
successfully completes\. Broadcasting transaction before can lead to
|
|
|
|
unrecoverable loss of funds\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.SH RETURN VALUE
|
|
|
|
|
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the
testsuite.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-26 09:35:01 +02:00
|
|
|
On success, an object is returned, containing:
|
2019-08-10 02:12:44 +02:00
|
|
|
|
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the
testsuite.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-26 09:35:01 +02:00
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
|
|
|
\fBchannel_id\fR (hex): The channel_id of the resulting channel (always 64 characters)
|
|
|
|
.IP \[bu]
|
|
|
|
\fBcommitments_secured\fR (boolean): Indication that channel is safe to use (always \fItrue\fR)
|
|
|
|
|
|
|
|
.RE
|
2019-08-10 02:12:44 +02:00
|
|
|
|
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]
|
|
|
|
-1: Catchall nonspecific error\.
|
|
|
|
.IP \[bu]
|
|
|
|
305: Peer is not connected\.
|
|
|
|
.IP \[bu]
|
|
|
|
306: Unknown peer id\.
|
2021-03-15 05:27:56 +01:00
|
|
|
.IP \[bu]
|
|
|
|
309: PSBT does not have a unique, correct output to fund the channel\.
|
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
|
|
|
|
|
2021-03-11 05:33:47 +01:00
|
|
|
\fBlightning-connect\fR(7), \fBlightning-fundchannel\fR(7), \fBlightning-multifundchannel\fR(7),
|
|
|
|
lightning-fundchannel_\fBstart\fR(7), lightning-fundchannel_\fBcancel\fR(7),
|
|
|
|
lightning-openchannel_\fBinit\fR(7), lightning-openchannel_\fBupdate\fR(7),
|
2021-03-09 22:14:08 +01:00
|
|
|
lightning-openchannel_\fBsigned\fR(7), lightning-openchannel_\fBbump\fR(7),
|
|
|
|
lightning-openchannel_\fBabort\fR(7)
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
.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
|
|
|
|
2021-06-16 03:08:17 +02:00
|
|
|
\" SHA256STAMP:51894a500920df4510ca85db038527f8ef7138fba3afcea0cb1326ac1142f567
|