mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
4683d096dd
It has a whole *two paragraphs* on it: *feerate* is an optional feerate used for the opening transaction and as initial feerate for commitment and HTLC transactions. It can be one of the strings *urgent* (aim for next block), *normal* (next 4 blocks or so) or *slow* (next 100 blocks or so) to use lightningd’s internal estimates: *normal* is the default. Otherwise, *feerate* is a number, with an optional suffix: *perkw* means the number is interpreted as satoshi-per-kilosipa (weight), and *perkb* means it is interpreted bitcoind-style as satoshi-per-kilobyte. Omitting the suffix is equivalent to *perkb*. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
62 lines
2.1 KiB
Groff
Generated
62 lines
2.1 KiB
Groff
Generated
.TH "LIGHTNING-FUNDCHANNEL_START" "7" "" "" "lightning-fundchannel_start"
|
|
.SH NAME
|
|
lightning-fundchannel_start - Command for initiating channel establishment for a lightning channel
|
|
.SH SYNOPSIS
|
|
|
|
\fBfundchannel_start\fR \fIid\fR \fIamount\fR [\fIfeerate\fR \fIannounce\fR \fIclose_to\fR]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBfundchannel_start\fR is a lower level RPC command\. It allows a user to
|
|
initiate channel establishment with a connected peer\.
|
|
|
|
|
|
\fIid\fR is the node id of the remote peer\.
|
|
|
|
|
|
\fIamount\fR is the satoshi value that the channel will be funded at\. This
|
|
value MUST be accurate, otherwise the negotiated commitment transactions
|
|
will not encompass the correct channel value\.
|
|
|
|
|
|
\fIfeerate\fR is an optional field\. Sets the feerate for subsequent
|
|
commitment transactions: see \fBfundchannel\fR\.
|
|
|
|
|
|
\fIannounce\fR whether or not to announce this channel\.
|
|
|
|
|
|
\fIclose_to\fR is a Bitcoin address to which the channel funds should be sent to
|
|
on close\. Only valid if both peers have negotiated \fBoption_upfront_shutdown_script\fR\.
|
|
Returns \fBclose_to\fR set to closing script iff is negotiated\.
|
|
|
|
|
|
Note that the funding transaction MUST NOT be broadcast until after
|
|
channel establishment has been successfully completed by running
|
|
\fBfundchannel_complete\fR, 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\.
|
|
|
|
.SH RETURN VALUE
|
|
|
|
On success, returns the \fIfunding_address\fR and the \fIscriptpubkey\fR for the channel funding output\.
|
|
If a \fBclose_to\fR address was provided, will close to this address iff the \fBclose_to\fR address is
|
|
returned in the response\. Otherwise, the peer does not support \fBoption_upfront_shutdownscript\fR\.
|
|
|
|
|
|
On failure, returns an error\.
|
|
|
|
.SH AUTHOR
|
|
|
|
Lisa Neigut \fI<niftynei@gmail.com\fR> is mainly responsible\.
|
|
|
|
.SH SEE ALSO
|
|
|
|
\fBlightning-connect\fR(7), \fBlightning-fundchannel\fR(7),
|
|
lightning-fundchannel_\fBcomplete\fR(7), lightning-fundchannel_\fBcancel\fR(7)
|
|
|
|
.SH RESOURCES
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
|
|