mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
This should hopefully alleviate the pain of figuring out how to properly quote utxos in fundchannel command :) It took me a while to figure it out and I would be lost without @cdecker s help on IRC.
Changelog-None: Docs change only
This commit is contained in:
15
doc/lightning-fundchannel.7
generated
15
doc/lightning-fundchannel.7
generated
@@ -71,6 +71,19 @@ unrecoverable once pushed\.
|
||||
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\.
|
||||
|
||||
|
||||
This example shows how to use lightning-cli to open new channel with peer 03f\.\.\.fc1 from one whole utxo bcc1\.\.\.39c:0
|
||||
(you can use \fBlistfunds\fR command to get txid and vout):
|
||||
|
||||
.nf
|
||||
.RS
|
||||
lightning-cli -k fundchannel id=03f...fc1 amount=all feerate=normal utxos='["bcc1...39c:0"]'
|
||||
|
||||
|
||||
|
||||
.RE
|
||||
|
||||
.fi
|
||||
.SH RETURN VALUE
|
||||
|
||||
On success, the \fItx\fR and \fItxid\fR of the transaction is returned, as well
|
||||
@@ -112,4 +125,4 @@ channel parameters (funding limits, channel reserves, fees, etc\.)\.
|
||||
|
||||
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
||||
|
||||
\" SHA256STAMP:5087905f0deecb0ac76f91e056786b3ae2782ca78f86b11562e91efc212a582d
|
||||
\" SHA256STAMP:6b8356d6c8f33ffa6885060386776334b6ee4eaf051362eed188541e3582e1e5
|
||||
|
||||
@@ -64,6 +64,12 @@ unrecoverable once pushed.
|
||||
on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`.
|
||||
Returns `close_to` set to closing script iff is negotiated.
|
||||
|
||||
This example shows how to use lightning-cli to open new channel with peer 03f...fc1 from one whole utxo bcc1...39c:0
|
||||
(you can use **listfunds** command to get txid and vout):
|
||||
|
||||
lightning-cli -k fundchannel id=03f...fc1 amount=all feerate=normal utxos='["bcc1...39c:0"]'
|
||||
|
||||
|
||||
RETURN VALUE
|
||||
------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user