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:
urza
2021-05-18 21:48:09 +02:00
committed by neil saitug
parent ca3f6015ff
commit 5aed2bc212
2 changed files with 20 additions and 1 deletions

View File

@@ -71,6 +71,19 @@ unrecoverable once pushed\.
on close\. Only valid if both peers have negotiated \fBoption_upfront_shutdown_script\fR\. 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\. 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 .SH RETURN VALUE
On success, the \fItx\fR and \fItxid\fR of the transaction is returned, as well 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 Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
\" SHA256STAMP:5087905f0deecb0ac76f91e056786b3ae2782ca78f86b11562e91efc212a582d \" SHA256STAMP:6b8356d6c8f33ffa6885060386776334b6ee4eaf051362eed188541e3582e1e5

View File

@@ -64,6 +64,12 @@ unrecoverable once pushed.
on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`. on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`.
Returns `close_to` set to closing script iff is negotiated. 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 RETURN VALUE
------------ ------------