2019-08-10 02:12:44 +02:00
|
|
|
|
.TH "LIGHTNING-LISTFUNDS" "7" "" "" "lightning-listfunds"
|
|
|
|
|
.SH NAME
|
2019-08-31 14:30:56 +02:00
|
|
|
|
lightning-listfunds - Command showing all funds currently managed by the c-lightning node
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
|
2020-12-22 08:03:15 +01:00
|
|
|
|
\fBlistfunds\fR [\fIspent\fR]
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
|
|
|
|
The \fBlistfunds\fR RPC command displays all funds available, either in
|
|
|
|
|
unspent outputs (UTXOs) in the internal wallet or funds locked in
|
|
|
|
|
currently open channels\.
|
|
|
|
|
|
2020-12-22 08:03:15 +01:00
|
|
|
|
|
|
|
|
|
\fIspent\fR is a boolean: if true, then the \fIoutputs\fR will include spent outputs
|
|
|
|
|
in addition to the unspent ones\. Default is false\.
|
|
|
|
|
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.SH RETURN VALUE
|
|
|
|
|
|
|
|
|
|
On success two arrays will be returned: \fIoutputs\fR with funds currently
|
|
|
|
|
locked onchain in UTXOs and \fIchannels\fR with funds readily spendable in
|
|
|
|
|
channels\.
|
|
|
|
|
|
|
|
|
|
|
2018-04-26 12:12:17 +02:00
|
|
|
|
Each entry in \fIoutputs\fR will include:
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2020-06-10 22:13:09 +02:00
|
|
|
|
.RS
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.IP \[bu]
|
2018-04-26 12:12:17 +02:00
|
|
|
|
\fItxid\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIoutput\fR (the index of the output in the transaction)
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIvalue\fR (the output value in satoshis)
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIamount_msat\fR (the same as \fIvalue\fR, but in millisatoshi with \fImsat\fR
|
2019-05-09 15:29:32 +02:00
|
|
|
|
appended)
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.IP \[bu]
|
2019-05-09 15:29:32 +02:00
|
|
|
|
\fIaddress\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.IP \[bu]
|
2020-07-07 22:50:25 +02:00
|
|
|
|
\fIscriptpubkey\fR (the ScriptPubkey of the output, in hex)
|
|
|
|
|
.IP \[bu]
|
2020-08-07 03:31:47 +02:00
|
|
|
|
\fIredeemscript\fR (the redeemscript of the output, in hex, only if it's p2sh-wrapped)
|
|
|
|
|
.IP \[bu]
|
2019-08-10 02:12:44 +02:00
|
|
|
|
\fIstatus\fR (whether \fIunconfirmed\fR, \fIconfirmed\fR, or \fIspent\fR)
|
2020-06-10 22:13:09 +02:00
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIreserved\fR (whether this is UTXO is currently reserved for an in-flight tx)
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2020-06-10 22:13:09 +02:00
|
|
|
|
.RE
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2018-04-26 12:12:17 +02:00
|
|
|
|
Each entry in \fIchannels\fR will include:
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2020-06-10 22:13:09 +02:00
|
|
|
|
.RS
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIpeer_id\fR - the peer with which the channel is opened\.
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIshort_channel_id\fR - as per BOLT 7 (representing the block,
|
|
|
|
|
transaction number and output index of the channel funding
|
|
|
|
|
transaction)\.
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIchannel_sat\fR - available satoshis on our node’s end of the channel
|
|
|
|
|
(values rounded down to satoshis as internal storage is in
|
|
|
|
|
millisatoshi)\.
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIour_amount_msat\fR - same as above, but in millisatoshis with
|
|
|
|
|
\fImsat\fR appended\.
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIchannel_total_sat\fR - total channel value in satoshi
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIamount_msat\fR - same as above, but in millisatoshis with \fImsat\fR
|
|
|
|
|
appended\.
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIfunding_txid\fR - funding transaction id\.
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIfunding_output\fR - the index of the output in the funding
|
|
|
|
|
transaction\.
|
2019-09-12 02:10:43 +02:00
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIconnected\fR - whether the channel peer is connected\.
|
|
|
|
|
.IP \[bu]
|
|
|
|
|
\fIstate\fR - the channel state, in particular \fICHANNELD_NORMAL\fR means the
|
|
|
|
|
channel can be used normally\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2020-06-10 22:13:09 +02:00
|
|
|
|
.RE
|
2019-08-10 02:12:44 +02:00
|
|
|
|
.SH AUTHOR
|
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
|
Felix \fI<fixone@gmail.com\fR> is mainly responsible\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
|
|
2020-08-13 18:19:35 +02:00
|
|
|
|
\fBlightning-newaddr\fR(7), \fBlightning-fundchannel\fR(7), \fBlightning-withdraw\fR(7), \fBlightning-listtransactions\fR(7)
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
.SH RESOURCES
|
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
2020-12-22 08:03:15 +01:00
|
|
|
|
\" SHA256STAMP:b59a2bed131c291e9650a6e330526b890f1e18182ccacd33aef60311f6ce2caa
|