2019-08-31 14:30:56 +02:00
|
|
|
lightning-fundchannel\_start -- Command for initiating channel establishment for a lightning channel
|
|
|
|
====================================================================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2019-10-15 03:08:33 +02:00
|
|
|
**fundchannel\_start** *id* *amount* \[*feerate* *announce* *close_to*\]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
`fundchannel_start` is a lower level RPC command. It allows a user to
|
|
|
|
initiate channel establishment with a connected peer.
|
|
|
|
|
|
|
|
*id* is the node id of the remote peer.
|
|
|
|
|
2019-09-19 09:51:07 +02:00
|
|
|
*amount* is the satoshi value that the channel will be funded at. This
|
2019-08-10 01:54:18 +02:00
|
|
|
value MUST be accurate, otherwise the negotiated commitment transactions
|
|
|
|
will not encompass the correct channel value.
|
|
|
|
|
|
|
|
*feerate* is an optional field. Sets the feerate for subsequent
|
2019-12-04 02:33:19 +01:00
|
|
|
commitment transactions: see **fundchannel**.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
2019-08-21 10:55:49 +02:00
|
|
|
*announce* whether or not to announce this channel.
|
|
|
|
|
2019-10-15 03:08:33 +02:00
|
|
|
*close_to* is a Bitcoin address to which the channel funds should be sent to
|
|
|
|
on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`.
|
|
|
|
Returns `close_to` set to closing script iff is negotiated.
|
|
|
|
|
2019-08-21 10:55:49 +02:00
|
|
|
Note that the funding transaction MUST NOT be broadcast until after
|
|
|
|
channel establishment has been successfully completed by running
|
|
|
|
`fundchannel_complete`, as the commitment transactions for this channel
|
|
|
|
are not secured until the complete command succeeds. Broadcasting
|
|
|
|
transaction before that can lead to unrecoverable loss of funds.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2019-08-28 05:33:55 +02:00
|
|
|
On success, returns the *funding\_address* and the *scriptpubkey* for the channel funding output.
|
2019-10-15 03:08:33 +02:00
|
|
|
If a `close_to` address was provided, will close to this address iff the `close_to` address is
|
|
|
|
returned in the response. Otherwise, the peer does not support `option_upfront_shutdownscript`.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
On failure, returns an error.
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Lisa Neigut <<niftynei@gmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
|
|
|
lightning-connect(7), lightning-fundchannel(7),
|
|
|
|
lightning-fundchannel\_complete(7), lightning-fundchannel\_cancel(7)
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|