2020-09-10 21:43:40 +02:00
|
|
|
lightning-openchannel\_signed -- Command to conclude a channel open
|
|
|
|
===================================================================
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-11-11 02:44:56 +01:00
|
|
|
**openchannel\_signed** *channel\_id* *signed\_psbt*
|
2020-09-10 21:43:40 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
`openchannel_signed` is a low level RPC command which concludes a channel
|
|
|
|
open with the specified peer. It uses the v2 openchannel protocol, which
|
|
|
|
allows for interactive transaction construction.
|
|
|
|
|
|
|
|
This command should be called after `openchannel_update` returns
|
2022-11-11 02:44:56 +01:00
|
|
|
*commitments\_secured* `true`.
|
2020-09-10 21:43:40 +02:00
|
|
|
|
|
|
|
This command will broadcast the finalized funding transaction,
|
|
|
|
if we receive valid signatures from the peer.
|
|
|
|
|
2022-11-11 02:44:56 +01:00
|
|
|
*channel\_id* is the id of the channel.
|
2020-09-10 21:43:40 +02:00
|
|
|
|
2022-11-11 02:44:56 +01:00
|
|
|
*signed\_psbt* is the PSBT returned from `openchannel_update` (where
|
|
|
|
*commitments\_secured* was true) with partial signatures or finalized
|
2020-09-10 21:43:40 +02:00
|
|
|
witness stacks included for every input that we contributed to the
|
|
|
|
PSBT.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2022-09-05 23:45:06 +02:00
|
|
|
- **channel\_id** (hex): the channel id of the channel (always 64 characters)
|
2021-06-16 03:10:17 +02:00
|
|
|
- **tx** (hex): the funding transaction
|
|
|
|
- **txid** (txid): The txid of the **tx**
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2020-09-10 21:43:40 +02:00
|
|
|
|
|
|
|
On error, the returned object will contain `code` and `message` properties,
|
|
|
|
with `code` being one of the following:
|
|
|
|
|
|
|
|
- -32602: If the given parameters are wrong.
|
|
|
|
- -1: Catchall nonspecific error.
|
|
|
|
- 303: Funding transaction broadcast failed.
|
2021-03-11 05:32:48 +01:00
|
|
|
- 305: Peer is not connected.
|
2020-09-10 21:43:40 +02:00
|
|
|
- 309: PSBT missing required fields.
|
2020-09-17 22:28:46 +02:00
|
|
|
- 311: Unknown channel id.
|
2021-03-11 05:32:48 +01:00
|
|
|
- 312: Channel in an invalid state
|
2020-09-10 21:43:40 +02:00
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
2021-03-11 05:33:47 +01:00
|
|
|
lightning-openchannel\_init(7), lightning-openchannel\_update(7),
|
2021-03-09 22:14:08 +01:00
|
|
|
lightning-openchannel\_abort(7), lightning-openchannel\_bump(7),
|
|
|
|
lightning-fundchannel\_start(7), lightning-fundchannel\_complete(7),
|
|
|
|
lightning-fundchannel(7), lightning-fundpsbt(7),
|
|
|
|
lightning-utxopsbt(7), lightning-multifundchannel(7)
|
2020-09-10 21:43:40 +02:00
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
@niftynei <<niftynei@gmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2022-12-09 08:10:12 +01:00
|
|
|
|
2023-01-30 07:24:16 +01:00
|
|
|
[comment]: # ( SHA256STAMP:694c288e5a49a662b2b7d01cbe46b6c0c024242bd1745b20e3a1eae123e569fe)
|