2019-08-31 14:30:56 +02:00
|
|
|
|
lightning-listfunds -- Command showing all funds currently managed by the c-lightning node
|
|
|
|
|
==========================================================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
|
--------
|
|
|
|
|
|
2020-12-22 08:03:15 +01:00
|
|
|
|
**listfunds** \[*spent*\]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
The **listfunds** 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
|
|
|
|
*spent* is a boolean: if true, then the *outputs* will include spent outputs
|
|
|
|
|
in addition to the unspent ones. Default is false.
|
|
|
|
|
|
2019-08-10 01:54:18 +02:00
|
|
|
|
RETURN VALUE
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
On success two arrays will be returned: *outputs* with funds currently
|
|
|
|
|
locked onchain in UTXOs and *channels* with funds readily spendable in
|
|
|
|
|
channels.
|
|
|
|
|
|
|
|
|
|
Each entry in *outputs* will include:
|
|
|
|
|
- *txid*
|
|
|
|
|
- *output* (the index of the output in the transaction)
|
|
|
|
|
- *value* (the output value in satoshis)
|
|
|
|
|
- *amount\_msat* (the same as *value*, but in millisatoshi with *msat*
|
|
|
|
|
appended)
|
|
|
|
|
- *address*
|
2020-07-07 22:50:25 +02:00
|
|
|
|
- *scriptpubkey* (the ScriptPubkey of the output, in hex)
|
2020-08-07 03:31:47 +02:00
|
|
|
|
- *redeemscript* (the redeemscript of the output, in hex, only if it's p2sh-wrapped)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
- *status* (whether *unconfirmed*, *confirmed*, or *spent*)
|
2020-06-10 22:13:09 +02:00
|
|
|
|
- *reserved* (whether this is UTXO is currently reserved for an in-flight tx)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
Each entry in *channels* will include:
|
|
|
|
|
- *peer\_id* - the peer with which the channel is opened.
|
|
|
|
|
- *short\_channel\_id* - as per BOLT 7 (representing the block,
|
|
|
|
|
transaction number and output index of the channel funding
|
|
|
|
|
transaction).
|
|
|
|
|
- *channel\_sat* - available satoshis on our node’s end of the channel
|
|
|
|
|
(values rounded down to satoshis as internal storage is in
|
|
|
|
|
millisatoshi).
|
|
|
|
|
- *our\_amount\_msat* - same as above, but in millisatoshis with
|
|
|
|
|
*msat* appended.
|
|
|
|
|
- *channel\_total\_sat* - total channel value in satoshi
|
|
|
|
|
- *amount\_msat* - same as above, but in millisatoshis with *msat*
|
|
|
|
|
appended.
|
|
|
|
|
- *funding\_txid* - funding transaction id.
|
|
|
|
|
- *funding\_output* - the index of the output in the funding
|
|
|
|
|
transaction.
|
2019-09-12 02:10:43 +02:00
|
|
|
|
- *connected* - whether the channel peer is connected.
|
|
|
|
|
- *state* - the channel state, in particular *CHANNELD_NORMAL* means the
|
|
|
|
|
channel can be used normally.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
|
------
|
|
|
|
|
|
|
|
|
|
Felix <<fixone@gmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
|
--------
|
|
|
|
|
|
2020-08-13 18:19:35 +02:00
|
|
|
|
lightning-newaddr(7), lightning-fundchannel(7), lightning-withdraw(7), lightning-listtransactions(7)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
|
---------
|
|
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
|