2020-09-10 21:43:40 +02:00
.TH "LIGHTNING-OPENCHANNEL_UPDATE" "7" "" "" "lightning-openchannel_update"
.SH NAME
lightning-openchannel_update - Command to update a collab channel open
.SH SYNOPSIS
2020-09-17 22:28:46 +02:00
\fB openchannel_update\fR \fI channel_id\fR \fI psbt\fR
2020-09-10 21:43:40 +02:00
.SH DESCRIPTION
\fB openchannel_update\fR is a low level RPC command which continues an open
2020-09-17 22:28:46 +02:00
channel, as specified by \fI channel_id\fR \. An updated \fI psbt\fR is passed in; any
2020-09-10 21:43:40 +02:00
changes from the PSBT last returned (either from \fB openchannel_init\fR or
a previous call to \fB openchannel_update\fR ) will be communicated to the peer\.
Must be called after \fB openchannel_init\fR and before \fB openchannel_signed\fR \.
Must be called until \fI commitments_secured\fR is returned as true, at which point
\fB openchannel_signed\fR should be called with a signed version of the PSBT
returned by the last call to \fB openchannel_update\fR \.
2020-09-17 22:28:46 +02:00
\fI channel_id\fR is the id of the channel\.
2020-09-10 21:43:40 +02:00
\fI psbt\fR is the updated PSBT to be sent to the peer\. May be identical to
the PSBT last returned by either \fB openchannel_init\fR or \fB openchannel_update\fR \.
.SH RETURN VALUE
2021-06-16 03:10:17 +02:00
On success, an object is returned, containing:
2020-09-10 21:43:40 +02:00
2021-06-16 03:10:17 +02:00
.RS
.IP \[ bu]
\fB channel_id\fR (hex): the channel id of the channel (always 64 characters)
.IP \[ bu]
\fB psbt\fR (string): the PSBT of the funding transaction
.IP \[ bu]
\fB commitments_secured\fR (boolean): whether the \fI psbt\fR is complete (if true, sign \fI psbt\fR and call \fB openchannel_signed\fR to complete the channel open)
2021-07-08 23:23:16 +02:00
.IP \[ bu]
2021-07-09 18:45:50 +02:00
\fB funding_outnum\fR (u32): The index of the funding output in the psbt
.IP \[ bu]
\fB close_to\fR (hex, optional): scriptPubkey which we have to close to if we mutual close
2021-06-16 03:10:17 +02:00
.RE
2020-10-26 20:40:00 +01:00
If \fI commitments_secured\fR is true, will also return:
.RS
.IP \[ bu]
The derived \fI channel_id\fR \.
.IP \[ bu]
A \fI close_to\fR script, iff a \fB close_to\fR address was provided to
\fB openchannel_init\fR and the peer supports \fB option_upfront_shutdownscript\fR \.
.IP \[ bu]
The \fI funding_outnum\fR , the index of the funding output for this channel
in the funding transaction\.
.RE
2020-09-10 21:43:40 +02:00
.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
2020-09-17 22:28:46 +02:00
.IP \[ bu]
311: Unknown channel id\.
2021-03-11 05:32:48 +01:00
.IP \[ bu]
312: Channel in an invalid state
2020-09-10 21:43:40 +02:00
.RE
.SH SEE ALSO
2021-03-11 05:33:47 +01:00
lightning-openchannel_\fB init\fR (7), lightning-openchannel_\fB signed\fR (7),
2021-03-09 22:14:08 +01:00
lightning-openchannel_\fB bump\fR (7), lightning-openchannel_\fB abort\fR (7),
lightning-fundchannel_\fB start\fR (7), lightning-fundchannel_\fB complete\fR (7),
\fB lightning-fundchannel\fR (7), \fB lightning-fundpsbt\fR (7), \fB lightning-utxopsbt\fR (7),
\fB lightning-multifundchannel\fR (7)
2020-09-10 21:43:40 +02:00
.SH AUTHOR
@niftynei \fI <niftynei@gmail.com\fR > is mainly responsible\.
.SH RESOURCES
Main web site: \fI https://github.com/ElementsProject/lightning\fR
2021-07-09 18:45:50 +02:00
\" SHA256STAMP:4d28ceeb8b4f2052bccdc93bf2e0b08fa829a2177b1fad34b7c347e8a682845e