From 5aed2bc21215e2ae0586627f977f07fe3936a958 Mon Sep 17 00:00:00 2001 From: urza Date: Tue, 18 May 2021 21:48:09 +0200 Subject: [PATCH] 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 --- doc/lightning-fundchannel.7 | 15 ++++++++++++++- doc/lightning-fundchannel.7.md | 6 ++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/doc/lightning-fundchannel.7 b/doc/lightning-fundchannel.7 index 831999b18..73860c32a 100644 --- a/doc/lightning-fundchannel.7 +++ b/doc/lightning-fundchannel.7 @@ -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 diff --git a/doc/lightning-fundchannel.7.md b/doc/lightning-fundchannel.7.md index 5f53141b8..723914ed3 100644 --- a/doc/lightning-fundchannel.7.md +++ b/doc/lightning-fundchannel.7.md @@ -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 ------------