mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
6d1897b796
They render the comment as if it's in the list. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
93 lines
2.8 KiB
Groff
Generated
93 lines
2.8 KiB
Groff
Generated
.TH "LIGHTNING-OPENCHANNEL_UPDATE" "7" "" "" "lightning-openchannel_update"
|
|
.SH NAME
|
|
lightning-openchannel_update - Command to update a collab channel open
|
|
.SH SYNOPSIS
|
|
|
|
\fBopenchannel_update\fR \fIchannel_id\fR \fIpsbt\fR
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBopenchannel_update\fR is a low level RPC command which continues an open
|
|
channel, as specified by \fIchannel_id\fR\. An updated \fIpsbt\fR is passed in; any
|
|
changes from the PSBT last returned (either from \fBopenchannel_init\fR or
|
|
a previous call to \fBopenchannel_update\fR) will be communicated to the peer\.
|
|
|
|
|
|
Must be called after \fBopenchannel_init\fR and before \fBopenchannel_signed\fR\.
|
|
|
|
|
|
Must be called until \fIcommitments_secured\fR is returned as true, at which point
|
|
\fBopenchannel_signed\fR should be called with a signed version of the PSBT
|
|
returned by the last call to \fBopenchannel_update\fR\.
|
|
|
|
|
|
\fIchannel_id\fR is the id of the channel\.
|
|
|
|
|
|
\fIpsbt\fR is the updated PSBT to be sent to the peer\. May be identical to
|
|
the PSBT last returned by either \fBopenchannel_init\fR or \fBopenchannel_update\fR\.
|
|
|
|
.SH RETURN VALUE
|
|
|
|
On success, an object is returned, containing:
|
|
|
|
.RS
|
|
.IP \[bu]
|
|
\fBchannel_id\fR (hex): the channel id of the channel (always 64 characters)
|
|
.IP \[bu]
|
|
\fBpsbt\fR (string): the PSBT of the funding transaction
|
|
.IP \[bu]
|
|
\fBcommitments_secured\fR (boolean): whether the \fIpsbt\fR is complete (if true, sign \fIpsbt\fR and call \fBopenchannel_signed\fR to complete the channel open)
|
|
.IP \[bu]
|
|
\fBfunding_outnum\fR (u32): The index of the funding output in the psbt
|
|
.IP \[bu]
|
|
\fBclose_to\fR (hex, optional): scriptPubkey which we have to close to if we mutual close
|
|
|
|
.RE
|
|
|
|
If \fIcommitments_secured\fR is true, will also return:
|
|
|
|
.RS
|
|
.IP \[bu]
|
|
The derived \fIchannel_id\fR\.
|
|
.IP \[bu]
|
|
A \fIclose_to\fR script, iff a \fBclose_to\fR address was provided to
|
|
\fBopenchannel_init\fR and the peer supports \fBoption_upfront_shutdownscript\fR\.
|
|
.IP \[bu]
|
|
The \fIfunding_outnum\fR, the index of the funding output for this channel
|
|
in the funding transaction\.
|
|
|
|
.RE
|
|
.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]
|
|
309: PSBT missing required fields
|
|
.IP \[bu]
|
|
311: Unknown channel id\.
|
|
.IP \[bu]
|
|
312: Channel in an invalid state
|
|
|
|
.RE
|
|
.SH SEE ALSO
|
|
|
|
lightning-openchannel_\fBinit\fR(7), lightning-openchannel_\fBsigned\fR(7),
|
|
lightning-openchannel_\fBbump\fR(7), lightning-openchannel_\fBabort\fR(7),
|
|
lightning-fundchannel_\fBstart\fR(7), lightning-fundchannel_\fBcomplete\fR(7),
|
|
\fBlightning-fundchannel\fR(7), \fBlightning-fundpsbt\fR(7), \fBlightning-utxopsbt\fR(7),
|
|
\fBlightning-multifundchannel\fR(7)
|
|
|
|
.SH AUTHOR
|
|
|
|
@niftynei \fI<niftynei@gmail.com\fR> is mainly responsible\.
|
|
|
|
.SH RESOURCES
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
|
|
|
\" SHA256STAMP:1fefdbe12a003eb46b52eeb0947ebb23f1c92e450b2452fd29c8e0e6a4386f4b
|