|
| 1 | +'\" t |
| 2 | +.\" Title: lightning-listfunds |
| 3 | +.\" Author: [see the "AUTHOR" section] |
| 4 | +.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> |
| 5 | +.\" Date: 04/26/2018 |
| 6 | +.\" Manual: \ \& |
| 7 | +.\" Source: \ \& |
| 8 | +.\" Language: English |
| 9 | +.\" |
| 10 | +.TH "LIGHTNING\-LISTFUNDS" "7" "04/26/2018" "\ \&" "\ \&" |
| 11 | +.\" ----------------------------------------------------------------- |
| 12 | +.\" * Define some portability stuff |
| 13 | +.\" ----------------------------------------------------------------- |
| 14 | +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 | +.\" http://bugs.debian.org/507673 |
| 16 | +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 | +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 | +.ie \n(.g .ds Aq \(aq |
| 19 | +.el .ds Aq ' |
| 20 | +.\" ----------------------------------------------------------------- |
| 21 | +.\" * set default formatting |
| 22 | +.\" ----------------------------------------------------------------- |
| 23 | +.\" disable hyphenation |
| 24 | +.nh |
| 25 | +.\" disable justification (adjust text to left margin only) |
| 26 | +.ad l |
| 27 | +.\" ----------------------------------------------------------------- |
| 28 | +.\" * MAIN CONTENT STARTS HERE * |
| 29 | +.\" ----------------------------------------------------------------- |
| 30 | +.SH "NAME" |
| 31 | +lightning-listfunds \- Command showing all funds currently managed by the c\-lightning node\&. |
| 32 | +.SH "SYNOPSIS" |
| 33 | +.sp |
| 34 | +\fBlistfunds\fR |
| 35 | +.SH "DESCRIPTION" |
| 36 | +.sp |
| 37 | +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\&. |
| 38 | +.SH "RETURN VALUE" |
| 39 | +.sp |
| 40 | +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\&. |
| 41 | +.sp |
| 42 | +Each entry in \fIoutputs\fR will include: |
| 43 | +.sp |
| 44 | +.RS 4 |
| 45 | +.ie n \{\ |
| 46 | +\h'-04'\(bu\h'+03'\c |
| 47 | +.\} |
| 48 | +.el \{\ |
| 49 | +.sp -1 |
| 50 | +.IP \(bu 2.3 |
| 51 | +.\} |
| 52 | +\fItxid\fR |
| 53 | +.RE |
| 54 | +.sp |
| 55 | +.RS 4 |
| 56 | +.ie n \{\ |
| 57 | +\h'-04'\(bu\h'+03'\c |
| 58 | +.\} |
| 59 | +.el \{\ |
| 60 | +.sp -1 |
| 61 | +.IP \(bu 2.3 |
| 62 | +.\} |
| 63 | +\fIaddress\fR |
| 64 | +.RE |
| 65 | +.sp |
| 66 | +.RS 4 |
| 67 | +.ie n \{\ |
| 68 | +\h'-04'\(bu\h'+03'\c |
| 69 | +.\} |
| 70 | +.el \{\ |
| 71 | +.sp -1 |
| 72 | +.IP \(bu 2.3 |
| 73 | +.\} |
| 74 | +\fIoutput\fR |
| 75 | +.RE |
| 76 | +.sp |
| 77 | +.RS 4 |
| 78 | +.ie n \{\ |
| 79 | +\h'-04'\(bu\h'+03'\c |
| 80 | +.\} |
| 81 | +.el \{\ |
| 82 | +.sp -1 |
| 83 | +.IP \(bu 2.3 |
| 84 | +.\} |
| 85 | +\fIvalue\fR |
| 86 | +.RE |
| 87 | +.sp |
| 88 | +.RS 4 |
| 89 | +.ie n \{\ |
| 90 | +\h'-04'\(bu\h'+03'\c |
| 91 | +.\} |
| 92 | +.el \{\ |
| 93 | +.sp -1 |
| 94 | +.IP \(bu 2.3 |
| 95 | +.\} |
| 96 | +\fIstatus\fR |
| 97 | +.RE |
| 98 | +.sp |
| 99 | +Each entry in \fIchannels\fR will include: |
| 100 | +.sp |
| 101 | +.RS 4 |
| 102 | +.ie n \{\ |
| 103 | +\h'-04'\(bu\h'+03'\c |
| 104 | +.\} |
| 105 | +.el \{\ |
| 106 | +.sp -1 |
| 107 | +.IP \(bu 2.3 |
| 108 | +.\} |
| 109 | +\fIpeer_id\fR |
| 110 | +\- the peer with which the channel is opened\&. |
| 111 | +.RE |
| 112 | +.sp |
| 113 | +.RS 4 |
| 114 | +.ie n \{\ |
| 115 | +\h'-04'\(bu\h'+03'\c |
| 116 | +.\} |
| 117 | +.el \{\ |
| 118 | +.sp -1 |
| 119 | +.IP \(bu 2.3 |
| 120 | +.\} |
| 121 | +\fIshort_channel_id\fR |
| 122 | +\- as per BOLT 7 (representing the block, transaction number and output index of the channel funding transaction)\&. |
| 123 | +.RE |
| 124 | +.sp |
| 125 | +.RS 4 |
| 126 | +.ie n \{\ |
| 127 | +\h'-04'\(bu\h'+03'\c |
| 128 | +.\} |
| 129 | +.el \{\ |
| 130 | +.sp -1 |
| 131 | +.IP \(bu 2.3 |
| 132 | +.\} |
| 133 | +\fIchannel_sat\fR |
| 134 | +\- available satoshis on our node\(cqs end of the channel (values rounded to the nearest satoshi as internal storage is in milisatoshi)\&. |
| 135 | +.RE |
| 136 | +.sp |
| 137 | +.RS 4 |
| 138 | +.ie n \{\ |
| 139 | +\h'-04'\(bu\h'+03'\c |
| 140 | +.\} |
| 141 | +.el \{\ |
| 142 | +.sp -1 |
| 143 | +.IP \(bu 2.3 |
| 144 | +.\} |
| 145 | +\fIchannel_total_sat\fR |
| 146 | +\- total channel value in satoshi (values rounded to the nearest satoshi as internal storage is in milisatoshi)\&. |
| 147 | +.RE |
| 148 | +.sp |
| 149 | +.RS 4 |
| 150 | +.ie n \{\ |
| 151 | +\h'-04'\(bu\h'+03'\c |
| 152 | +.\} |
| 153 | +.el \{\ |
| 154 | +.sp -1 |
| 155 | +.IP \(bu 2.3 |
| 156 | +.\} |
| 157 | +\fIfunding_txid\fR |
| 158 | +\- funding transaction id\&. |
| 159 | +.RE |
| 160 | +.SH "AUTHOR" |
| 161 | +.sp |
| 162 | +Felix <fixone@gmail\&.com> is mainly responsible\&. |
| 163 | +.SH "SEE ALSO" |
| 164 | +.sp |
| 165 | +lightning\-newaddr(7), lightning\-fundchannel(7), lightning\-withdraw(7) |
| 166 | +.SH "RESOURCES" |
| 167 | +.sp |
| 168 | +Main web site: https://github\&.com/ElementsProject/lightning |
0 commit comments